Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
Order manifest events chronologically for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
phloxic committed May 22, 2017
1 parent 12f63bf commit 140af23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flowplayer.hlsjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,6 @@
src = updatedVideo.src;

switch (key) {
case "MEDIA_ATTACHED":
hls.loadSource(src);
break;

case "MANIFEST_PARSED":
if (hlsQualitiesSupport(conf) &&
!(!coreV6 && player.pluginQualitySelectorEnabled)) {
Expand All @@ -682,6 +678,10 @@
}
break;

case "MEDIA_ATTACHED":
hls.loadSource(src);
break;

case "FRAG_LOADED":
if (hlsUpdatedConf.bufferWhilePaused && !player.live &&
hls.autoLevelEnabled && hls.nextLoadLevel > maxLevel) {
Expand Down

0 comments on commit 140af23

Please sign in to comment.