Embed: https and fixes

This commit is contained in:
Cat 2016-11-11 10:08:45 +01:00 committed by Thulinma
parent 08e6102440
commit 8a467567e2
3 changed files with 4 additions and 2 deletions

View file

@ -776,6 +776,7 @@ function mistPlay(streamName,options) {
//build the player
player.options = playerOpts;
var element = player.build(playerOpts);
options.target.innerHTML = '';
options.target.appendChild(element);
element.setAttribute('data-player',mistPlayer);
element.setAttribute('data-mime',source.type);

View file

@ -15,7 +15,7 @@
<script>
// global options can be set here
var mistoptions = {
host: 'http://cattop:8080'
host: 'https://cat.mistserver.org:4433'
};
</script>

View file

@ -135,8 +135,9 @@ p.prototype.build = function (options,callback) {
ele.addEventListener('progress',nolongerdced);
}
//ele.addEventListener('stalled',dced,true);
ele.addEventListener('stalled',dced,true);
ele.addEventListener('ended',dced,true);
ele.addEventListener('pause',dced,true);
}
this.addlog('Built html');