Skip to content

Commit

Permalink
Merge pull request #799 from jwplayer/bugfix/preload-flash-fix
Browse files Browse the repository at this point in the history
JW7-842 Treat preload metadata as auto in flash provider
  • Loading branch information
donato committed Oct 6, 2015
2 parents 3c584f5 + 9f03bd5 commit 87df206
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/flash/com/longtailvideo/jwplayer/media/VideoMediaProvider.as
Expand Up @@ -90,11 +90,8 @@ public class VideoMediaProvider extends MediaProvider {

override public function init(itm:PlaylistItem):void {
setupVideo(itm);
// start loading the content only if preload is 'auto'
if (itm.preload === "auto") {
loadQuality();
_stream.pause();
}
loadQuality();
_stream.pause();
}

/** Load new media file; only requested once per item. **/
Expand All @@ -103,9 +100,7 @@ public class VideoMediaProvider extends MediaProvider {
if (_item !== itm) {
setupVideo(itm);
loadQuality();
} else if (itm.preload === "metadata") {
loadQuality();
} else {
} else if (itm.preload !== "none") {
play();
}

Expand Down

0 comments on commit 87df206

Please sign in to comment.