mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Fix youtube video not being played for after initiation
This commit is contained in:
parent
14dbd3d1f3
commit
925285d370
@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.et2_video = void 0;
|
||||
/*egw:uses
|
||||
/vendor/bower-asset/jquery/dist/jquery.js;
|
||||
et2_core_interfaces;
|
||||
@ -335,8 +336,7 @@ var et2_video = /** @class */ (function (_super) {
|
||||
et2_video.prototype._onStateChangeYoutube = function (_data) {
|
||||
switch (_data.data) {
|
||||
case et2_video.youtube_player_states.unstarted:
|
||||
// do not start the video on initiation
|
||||
this.pause_video();
|
||||
// do nothing
|
||||
break;
|
||||
case et2_video.youtube_player_states.playing:
|
||||
this._youtubeOntimeUpdateIntrv = window.setInterval(jQuery.proxy(this._onTimeUpdate, this), 100);
|
||||
|
@ -480,8 +480,7 @@ export class et2_video extends et2_baseWidget implements et2_IDOMNode
|
||||
switch (_data.data)
|
||||
{
|
||||
case et2_video.youtube_player_states.unstarted:
|
||||
// do not start the video on initiation
|
||||
this.pause_video();
|
||||
// do nothing
|
||||
break;
|
||||
case et2_video.youtube_player_states.playing:
|
||||
this._youtubeOntimeUpdateIntrv = window.setInterval(jQuery.proxy(this._onTimeUpdate, this), 100);
|
||||
|
Loading…
Reference in New Issue
Block a user