Skip to content

Commit

Permalink
Merge pull request #1519 from avalonmediasystem/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
carrickr authored Jan 9, 2017
2 parents 6f887e6 + 8e0f36e commit af8b3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/playlists/_player.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Unless required by applicable law or agreed to in writing, software distributed
// if player's new currenttime is >= end of playlist item or equal to mf duration, advance to next playlist item
if (t > Math.round(avalonPlayer.stream_info.t[1]*10) || t == Math.round(avalonPlayer.player.media.duration*10)) {
// advance only if player media duration matches stream_info duration (it might not when switching sections)
if (avalonPlayer.player.media.duration - avalonPlayer.stream_info.duration < 0.5) {
if (Math.round(avalonPlayer.player.media.duration) == Math.round(avalonPlayer.stream_info.duration)) {
avalonPlayer.player.media.stop();
advancePlaylist();
}
Expand Down

0 comments on commit af8b3da

Please sign in to comment.