9ddef59c by David LaPalomento

Switch to using options to detect preload settings

Before the Flash runtime is available, player.preload() returns undefined. Switch to player.options().preload to find out what the "desired" setting is, instead of the current value.
1 parent 5f338d57
......@@ -45,6 +45,6 @@
"dependencies": {
"pkcs7": "^0.2.2",
"videojs-contrib-media-sources": "^1.0.0",
"videojs-swf": "^4.6.0"
"videojs-swf": "^4.7.0"
}
}
......
......@@ -556,7 +556,8 @@ videojs.Hls.prototype.fillBuffer = function(offset) {
segmentUri;
// if preload is set to "none", do not download segments until playback is requested
if (!player.hasClass('vjs-has-started') && player.preload() === "none") {
if (!player.hasClass('vjs-has-started') &&
player.options().preload === 'none') {
return;
}
......