mirror of
https://github.com/videojs/video.js.git
synced 2025-07-03 00:57:02 +02:00
@toloudis fixed an issue with checking for an existing source on the video element. closes #1651
This commit is contained in:
@ -3,6 +3,7 @@ CHANGELOG
|
||||
|
||||
## HEAD (Unreleased)
|
||||
* @rutkat updated sliders to use keydown instead of keyup for more responsive key control ([view](https://github.com/videojs/video.js/pull/1616))
|
||||
* @toloudis fixed an issue with checking for an existing source on the video element ([view](https://github.com/videojs/video.js/pull/1651))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -36,7 +36,7 @@ vjs.Html5 = vjs.MediaTechController.extend({
|
||||
// 1) Check if the source is new (if not, we want to keep the original so playback isn't interrupted)
|
||||
// 2) Check to see if the network state of the tag was failed at init, and if so, reset the source
|
||||
// anyway so the error gets fired.
|
||||
if (source && (this.el_.currentSrc !== source.src) || (player.tag && player.tag.initNetworkState_ === 3)) {
|
||||
if (source && ((this.el_.currentSrc !== source.src) || (player.tag && player.tag.initNetworkState_ === 3))) {
|
||||
this.el_.src = source.src;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user