Embed: webrtc: api.pause() may now send {type:"hold"} to backend and it should always pause instead of toggling pause/play

This commit is contained in:
Cat 2021-08-02 11:17:40 +02:00 committed by Thulinma
parent a73a3f4ecd
commit 94af64caa0
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -383,7 +383,7 @@ p.prototype.build = function (MistVideo,callback) {
};
this.pause = function(){
if (!this.isConnected) { throw "Not connected, cannot pause." }
this.signaling.send({type: "pause"});
this.signaling.send({type: "hold"});
};
this.setTrack = function(obj){
if (!this.isConnected) { throw "Not connected, cannot set track." }