Fix volume gets initiated on a wrong object becuase the youtube object is not yet ready

This commit is contained in:
Hadi Nategh 2021-08-17 12:01:53 +02:00
parent 904e6a96e1
commit 557b47b15f

View File

@ -289,7 +289,7 @@ export class et2_video extends et2_baseWidget implements et2_IDOMNode
{ {
this.youtube.setVolume(value); this.youtube.setVolume(value);
} }
else else if(!this._isYoutube())
{ {
this.video[0].volume = value/100; this.video[0].volume = value/100;
} }
@ -364,7 +364,7 @@ export class et2_video extends et2_baseWidget implements et2_IDOMNode
} }
} }
get_mute(_value) get_mute()
{ {
if (this._isYoutube() && this.youtube) if (this._isYoutube() && this.youtube)
{ {