Embed: allow webrtc to change playback rate

This commit is contained in:
Cat 2019-06-27 13:54:46 +02:00
parent 7557cacc17
commit 8a68738995
4 changed files with 41 additions and 4 deletions

View file

@ -420,7 +420,9 @@ var MistUtil = {
},
sanitizeHost: function(host){
var split = MistUtil.http.url.split(host);
return split.protocol + "//" + split.host + (split.port && (split.port != "") ? ":"+split.port : "") + (split.hash && (split.hash != "") ? "#"+split.hash : "") + (split.path ? split.path : "");
var out = split.protocol + "//" + split.host + (split.port && (split.port != "") ? ":"+split.port : "") + (split.hash && (split.hash != "") ? "#"+split.hash : "") + (split.path ? (split.path.charAt(0) == "/" ? split.path : "/"+split.path) : "");
console.log("converted",host,"to",out);
return out;
}
}
},