mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 21:32:46 +02:00
Fix youtube video starts to play automatically after being seeked to a time
This commit is contained in:
parent
3e0f302bb5
commit
3adec01e58
@ -156,6 +156,7 @@ export class et2_video extends et2_baseWidget implements et2_IDOMNode
|
|||||||
super(_parent, _attrs, ClassWithAttributes.extendAttributes(et2_video._attributes, _child || {}));
|
super(_parent, _attrs, ClassWithAttributes.extendAttributes(et2_video._attributes, _child || {}));
|
||||||
|
|
||||||
this.set_src_type(this.options.src_type);
|
this.set_src_type(this.options.src_type);
|
||||||
|
this.options.starttime = isNaN(this.options.starttime) ? 0 : this.options.starttime;
|
||||||
}
|
}
|
||||||
|
|
||||||
set_src_type(_type)
|
set_src_type(_type)
|
||||||
@ -285,7 +286,7 @@ export class et2_video extends et2_baseWidget implements et2_IDOMNode
|
|||||||
let value = _value>100?100:_value;
|
let value = _value>100?100:_value;
|
||||||
if (value>= 0)
|
if (value>= 0)
|
||||||
{
|
{
|
||||||
if (this._isYoutube() && this.youtube)
|
if (this._isYoutube() && this.youtube && typeof this.youtube.setVolume === 'function')
|
||||||
{
|
{
|
||||||
this.youtube.setVolume(value);
|
this.youtube.setVolume(value);
|
||||||
}
|
}
|
||||||
@ -569,7 +570,7 @@ export class et2_video extends et2_baseWidget implements et2_IDOMNode
|
|||||||
|
|
||||||
public videoLoadnigIsFinished()
|
public videoLoadnigIsFinished()
|
||||||
{
|
{
|
||||||
if (this.options.starttime)
|
if (this.options.starttime >= 0)
|
||||||
{
|
{
|
||||||
this.seek_video(this.options.starttime);
|
this.seek_video(this.options.starttime);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user