Embed: - fixed timer issue causing player to reload after an unload

- added version numbering
This commit is contained in:
Cat 2017-03-13 13:32:00 +01:00 committed by Thulinma
parent 27b85e76d3
commit b6486878ca
13 changed files with 38 additions and 11 deletions

View file

@ -1,5 +1,6 @@
mistplayers.dashjs = {
name: 'Dash.js Player',
version: '1.1',
mimes: ['dash/video/mp4'],
priority: Object.keys(mistplayers).length + 1,
isMimeSupported: function (mimetype) {
@ -131,3 +132,11 @@ p.prototype.resize = function(size){
this.element.width = size.width;
this.element.height = size.height;
};
p.prototype.updateSrc = function(src){
if (src == '') {
this.dash.reset();
return;
}
this.dash.attachSource(src);
return true;
};