ucservice 1.2.4 → 1.2.7
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 +5 -7
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +5 -7
- 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/lib/cometd.js +1 -3
- package/src/scooper.video.js +3 -3
package/package.json
CHANGED
package/src/lib/cometd.js
CHANGED
|
@@ -877,9 +877,7 @@
|
|
|
877
877
|
}
|
|
878
878
|
|
|
879
879
|
// Mangle the URL, changing the scheme from 'http' to 'ws'.
|
|
880
|
-
|
|
881
|
-
//因证书问题,暂时将https和http都改成ws
|
|
882
|
-
var url = _cometd.getURL().replace(/^https/, 'ws').replace(/^http/, 'ws');
|
|
880
|
+
var url = _cometd.getURL().replace(/^http/, 'ws');
|
|
883
881
|
this._debug('Transport', this.getType(), 'connecting to URL', url);
|
|
884
882
|
|
|
885
883
|
try {
|
package/src/scooper.video.js
CHANGED
|
@@ -2352,12 +2352,12 @@
|
|
|
2352
2352
|
}
|
|
2353
2353
|
|
|
2354
2354
|
let janusUrl = me._opts.conf.janusUrl;
|
|
2355
|
-
|
|
2356
|
-
// checkIsHttps() && (janusUrl = janusUrl.replace('ws:','wss:'));
|
|
2355
|
+
checkIsHttps() && (janusUrl = janusUrl.replace('ws:','wss:'));
|
|
2357
2356
|
me._opts.janus = new Janus({
|
|
2358
2357
|
// server: janusUrl.indexOf("127.0.0.1") == -1 ? janusUrl : janusUrl.split("//")[0] + "//" + (location.hostname)+":"+janusUrl.split(":")[2],
|
|
2359
2358
|
//使用项目必须定义window.janusHttpsHost来适应https
|
|
2360
|
-
server: location.protocol == "https:" ? janusUrl.split("//")[0] + "//" + "szh.rfb.zj.gov.cn/tytx" + "/janus/" : janusUrl,
|
|
2359
|
+
// server: location.protocol == "https:" ? janusUrl.split("//")[0] + "//" + "szh.rfb.zj.gov.cn/tytx" + "/janus/" : janusUrl,
|
|
2360
|
+
server: 'wss://112.124.244.179:9999/janus/',
|
|
2361
2361
|
success: function(){
|
|
2362
2362
|
console.log("Janus服务连接成功!");
|
|
2363
2363
|
me._initSVideo(me._opts.janus);
|