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 94c98718ef
commit 96e960226f

View File

@ -289,7 +289,7 @@ export class et2_video extends et2_baseWidget implements et2_IDOMNode
{
this.youtube.setVolume(value);
}
else
else if(!this._isYoutube())
{
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)
{