forked from extern/egroupware
allow to set starttime of video
This commit is contained in:
parent
a412aa18a4
commit
bbd9a5a765
@ -24,6 +24,7 @@ var __extends = (this && this.__extends) || (function () {
|
|||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.et2_video = void 0;
|
||||||
/*egw:uses
|
/*egw:uses
|
||||||
/vendor/bower-asset/jquery/dist/jquery.js;
|
/vendor/bower-asset/jquery/dist/jquery.js;
|
||||||
et2_core_interfaces;
|
et2_core_interfaces;
|
||||||
@ -97,6 +98,9 @@ var et2_video = /** @class */ (function (_super) {
|
|||||||
if (this.options.src_type) {
|
if (this.options.src_type) {
|
||||||
source.attr('type', this.options.src_type);
|
source.attr('type', this.options.src_type);
|
||||||
}
|
}
|
||||||
|
if (this.options.starttime) {
|
||||||
|
this.seek_video(this.options.starttime);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
@ -178,11 +182,17 @@ var et2_video = /** @class */ (function (_super) {
|
|||||||
"description": "Defines that the audio output of the video should be muted"
|
"description": "Defines that the audio output of the video should be muted"
|
||||||
},
|
},
|
||||||
"autoplay": {
|
"autoplay": {
|
||||||
"name": "Autoply",
|
"name": "Autoplay",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false,
|
||||||
"description": "Defines if Video will start playing as soon as it is ready"
|
"description": "Defines if Video will start playing as soon as it is ready"
|
||||||
},
|
},
|
||||||
|
starttime: {
|
||||||
|
"name": "Inital position of video",
|
||||||
|
"type": "float",
|
||||||
|
"default": 0,
|
||||||
|
"description": "Set initial position of video"
|
||||||
|
},
|
||||||
"controls": {
|
"controls": {
|
||||||
"name": "Control buttons",
|
"name": "Control buttons",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
@ -69,11 +69,17 @@ export class et2_video extends et2_baseWidget implements et2_IDOMNode
|
|||||||
"description": "Defines that the audio output of the video should be muted"
|
"description": "Defines that the audio output of the video should be muted"
|
||||||
},
|
},
|
||||||
"autoplay": {
|
"autoplay": {
|
||||||
"name": "Autoply",
|
"name": "Autoplay",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false,
|
||||||
"description": "Defines if Video will start playing as soon as it is ready"
|
"description": "Defines if Video will start playing as soon as it is ready"
|
||||||
},
|
},
|
||||||
|
starttime: {
|
||||||
|
"name": "Inital position of video",
|
||||||
|
"type": "float",
|
||||||
|
"default": 0,
|
||||||
|
"description": "Set initial position of video"
|
||||||
|
},
|
||||||
"controls": {
|
"controls": {
|
||||||
"name": "Control buttons",
|
"name": "Control buttons",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@ -142,6 +148,11 @@ export class et2_video extends et2_baseWidget implements et2_IDOMNode
|
|||||||
{
|
{
|
||||||
source.attr('type', this.options.src_type);
|
source.attr('type', this.options.src_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.options.starttime)
|
||||||
|
{
|
||||||
|
this.seek_video(this.options.starttime);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user