ucservice 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ucservice.common.js +3 -1
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +3 -1
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +1 -1
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/scooper.video.js +3 -1
package/package.json
CHANGED
package/src/scooper.video.js
CHANGED
|
@@ -2354,7 +2354,9 @@
|
|
|
2354
2354
|
let janusUrl = me._opts.conf.janusUrl;
|
|
2355
2355
|
checkIsHttps() && (janusUrl = janusUrl.replace('ws:','wss:'));
|
|
2356
2356
|
me._opts.janus = new Janus({
|
|
2357
|
-
server: janusUrl.indexOf("127.0.0.1") == -1 ? janusUrl : janusUrl.split("//")[0] + "//" + (location.hostname)+":"+janusUrl.split(":")[2],
|
|
2357
|
+
// server: janusUrl.indexOf("127.0.0.1") == -1 ? janusUrl : janusUrl.split("//")[0] + "//" + (location.hostname)+":"+janusUrl.split(":")[2],
|
|
2358
|
+
//使用项目必须定义window.janusHttpsHost来适应https
|
|
2359
|
+
server: location.protocol == "https:" ? janusUrl.split("//")[0] + "//" + (window.janusHttpsHost) + "/janus/" : janusUrl,
|
|
2358
2360
|
success: function(){
|
|
2359
2361
|
console.log("Janus服务连接成功!");
|
|
2360
2362
|
me._initSVideo(me._opts.janus);
|