зеркало из https://github.com/mozilla/pjs.git
Bug 489025 - Strict Warning: reference to undefined property this.video.HAVE_META_DATA. r=chris.double
This commit is contained in:
Родитель
ac63ff2477
Коммит
4e45d67d0d
|
@ -199,7 +199,7 @@
|
||||||
this.showPosition(currentTime, duration);
|
this.showPosition(currentTime, duration);
|
||||||
|
|
||||||
// If we have metadata, check if this is a <video> without video data.
|
// If we have metadata, check if this is a <video> without video data.
|
||||||
if (this.video.readyState >= this.video.HAVE_META_DATA) {
|
if (this.video.readyState >= this.video.HAVE_METADATA) {
|
||||||
if (this.video instanceof HTMLVideoElement &&
|
if (this.video instanceof HTMLVideoElement &&
|
||||||
(this.video.videoWidth == 0 || this.videoHeight == 0))
|
(this.video.videoWidth == 0 || this.videoHeight == 0))
|
||||||
this.isAudioOnly = true;
|
this.isAudioOnly = true;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче