Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions scripts/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,15 @@ SC.Player.prototype = {
this.isPlaying = true;
$("body").addClass("playing");
}
else {
//ensure that at least a track plays
//similar to itunes default behaviour
$(".selected").dblclick();//try to play a highlighted track
if(!this.audio) {
//no selected track, play first track in the playlist
$("tbody").find("tr:first").dblclick();
}
}
},
stop: function() {
if(this.audio) {
Expand Down