ucservice 1.2.1 → 1.2.4
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 +9 -4
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +9 -4
- 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 +2 -2
- package/src/lib/cometd.js +3 -1
- package/src/scooper.video.js +5 -2
package/dist/ucservice.umd.js
CHANGED
|
@@ -14239,10 +14239,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14239
14239
|
return;
|
|
14240
14240
|
}
|
|
14241
14241
|
|
|
14242
|
-
let janusUrl = me._opts.conf.janusUrl;
|
|
14243
|
-
checkIsHttps() && (janusUrl = janusUrl.replace('ws:',
|
|
14242
|
+
let janusUrl = me._opts.conf.janusUrl; //没有证书,项目需要不使用wss
|
|
14243
|
+
// checkIsHttps() && (janusUrl = janusUrl.replace('ws:','wss:'));
|
|
14244
|
+
|
|
14244
14245
|
me._opts.janus = new Janus({
|
|
14245
|
-
server: janusUrl.indexOf("127.0.0.1") == -1 ? janusUrl : janusUrl.split("//")[0] + "//" + location.hostname
|
|
14246
|
+
// server: janusUrl.indexOf("127.0.0.1") == -1 ? janusUrl : janusUrl.split("//")[0] + "//" + (location.hostname)+":"+janusUrl.split(":")[2],
|
|
14247
|
+
//使用项目必须定义window.janusHttpsHost来适应https
|
|
14248
|
+
server: location.protocol == "https:" ? janusUrl.split("//")[0] + "//" + "szh.rfb.zj.gov.cn/tytx" + "/janus/" : janusUrl,
|
|
14246
14249
|
success: function () {
|
|
14247
14250
|
console.log("Janus服务连接成功!");
|
|
14248
14251
|
|
|
@@ -16039,9 +16042,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
16039
16042
|
if (_connecting) {
|
|
16040
16043
|
return;
|
|
16041
16044
|
} // Mangle the URL, changing the scheme from 'http' to 'ws'.
|
|
16045
|
+
// var url = _cometd.getURL().replace(/^http/, 'ws');
|
|
16046
|
+
//因证书问题,暂时将https和http都改成ws
|
|
16042
16047
|
|
|
16043
16048
|
|
|
16044
|
-
var url = _cometd.getURL().replace(/^http/, 'ws');
|
|
16049
|
+
var url = _cometd.getURL().replace(/^https/, 'ws').replace(/^http/, 'ws');
|
|
16045
16050
|
|
|
16046
16051
|
this._debug('Transport', this.getType(), 'connecting to URL', url);
|
|
16047
16052
|
|
package/dist/ucservice.umd.js.gz
CHANGED
|
Binary file
|