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/dist/ucservice.common.js
CHANGED
|
@@ -14230,13 +14230,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14230
14230
|
return;
|
|
14231
14231
|
}
|
|
14232
14232
|
|
|
14233
|
-
let janusUrl = me._opts.conf.janusUrl;
|
|
14234
|
-
|
|
14235
|
-
|
|
14233
|
+
let janusUrl = me._opts.conf.janusUrl;
|
|
14234
|
+
checkIsHttps() && (janusUrl = janusUrl.replace('ws:', 'wss:'));
|
|
14236
14235
|
me._opts.janus = new Janus({
|
|
14237
14236
|
// server: janusUrl.indexOf("127.0.0.1") == -1 ? janusUrl : janusUrl.split("//")[0] + "//" + (location.hostname)+":"+janusUrl.split(":")[2],
|
|
14238
14237
|
//使用项目必须定义window.janusHttpsHost来适应https
|
|
14239
|
-
server: location.protocol == "https:" ? janusUrl.split("//")[0] + "//" + "szh.rfb.zj.gov.cn/tytx" + "/janus/" : janusUrl,
|
|
14238
|
+
// server: location.protocol == "https:" ? janusUrl.split("//")[0] + "//" + "szh.rfb.zj.gov.cn/tytx" + "/janus/" : janusUrl,
|
|
14239
|
+
server: 'wss://112.124.244.179:9999/janus/',
|
|
14240
14240
|
success: function () {
|
|
14241
14241
|
console.log("Janus服务连接成功!");
|
|
14242
14242
|
|
|
@@ -16033,11 +16033,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
16033
16033
|
if (_connecting) {
|
|
16034
16034
|
return;
|
|
16035
16035
|
} // Mangle the URL, changing the scheme from 'http' to 'ws'.
|
|
16036
|
-
// var url = _cometd.getURL().replace(/^http/, 'ws');
|
|
16037
|
-
//因证书问题,暂时将https和http都改成ws
|
|
16038
16036
|
|
|
16039
16037
|
|
|
16040
|
-
var url = _cometd.getURL().replace(/^
|
|
16038
|
+
var url = _cometd.getURL().replace(/^http/, 'ws');
|
|
16041
16039
|
|
|
16042
16040
|
this._debug('Transport', this.getType(), 'connecting to URL', url);
|
|
16043
16041
|
|
|
Binary file
|