Emit loadstart since the swf will no longer do so
Showing
1 changed file
with
2 additions
and
6 deletions
... | @@ -134,12 +134,8 @@ videojs.Hls.prototype.src = function(src) { | ... | @@ -134,12 +134,8 @@ videojs.Hls.prototype.src = function(src) { |
134 | // We need to trigger this asynchronously to give others the chance | 134 | // We need to trigger this asynchronously to give others the chance |
135 | // to bind to the event when a source is set at player creation | 135 | // to bind to the event when a source is set at player creation |
136 | setTimeout(function() { | 136 | setTimeout(function() { |
137 | // Be careful since the player could have been disposed immediately after | 137 | this.tech_.trigger('loadstart'); |
138 | // setting the src | 138 | }.bind(this), 1); |
139 | if (player && player.el()) { | ||
140 | player.trigger('loadstart'); | ||
141 | } | ||
142 | }, 1); | ||
143 | 139 | ||
144 | // The index of the next segment to be downloaded in the current | 140 | // The index of the next segment to be downloaded in the current |
145 | // media playlist. When the current media playlist is live with | 141 | // media playlist. When the current media playlist is live with | ... | ... |
-
Please register or sign in to post a comment