ucservice 1.1.8 → 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 +8 -5
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.css +1 -1
- package/dist/ucservice.umd.js +8 -5
- 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/common-request.js +5 -4
- package/src/css/scooper.video.css +6 -14
- package/src/scooper.video.js +3 -1
package/dist/ucservice.common.js
CHANGED
|
@@ -14233,7 +14233,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14233
14233
|
let janusUrl = me._opts.conf.janusUrl;
|
|
14234
14234
|
checkIsHttps() && (janusUrl = janusUrl.replace('ws:', 'wss:'));
|
|
14235
14235
|
me._opts.janus = new Janus({
|
|
14236
|
-
server: janusUrl.indexOf("127.0.0.1") == -1 ? janusUrl : janusUrl.split("//")[0] + "//" + location.hostname
|
|
14236
|
+
// server: janusUrl.indexOf("127.0.0.1") == -1 ? janusUrl : janusUrl.split("//")[0] + "//" + (location.hostname)+":"+janusUrl.split(":")[2],
|
|
14237
|
+
//使用项目必须定义window.janusHttpsHost来适应https
|
|
14238
|
+
server: location.protocol == "https:" ? janusUrl.split("//")[0] + "//" + window.janusHttpsHost + "/janus/" : janusUrl,
|
|
14237
14239
|
success: function () {
|
|
14238
14240
|
console.log("Janus服务连接成功!");
|
|
14239
14241
|
|
|
@@ -30158,21 +30160,21 @@ function doSubscribe(_cometd, callback) {
|
|
|
30158
30160
|
*/
|
|
30159
30161
|
|
|
30160
30162
|
|
|
30161
|
-
const initVideo = function (token, videoArea, sip) {
|
|
30163
|
+
const initVideo = function (token, videoArea, videoOpts_, sip) {
|
|
30162
30164
|
//读取视频服务配置初始化视频
|
|
30163
30165
|
let server_ = sip || server;
|
|
30164
30166
|
return new Promise((resolve, reject) => {
|
|
30165
30167
|
let url = server_ + '/scooper-video/conf/data';
|
|
30166
|
-
|
|
30168
|
+
let param = {};
|
|
30167
30169
|
$.getJSON(url, param, function (conf) {
|
|
30168
30170
|
// 初始化视频播放方式
|
|
30169
30171
|
// initplaVideoType();
|
|
30170
30172
|
let janusUrl = conf['video.janus.url'];
|
|
30171
|
-
|
|
30173
|
+
let videoOpts = {
|
|
30172
30174
|
//初始化时的界面显示的分屏树
|
|
30173
30175
|
windows: 4,
|
|
30174
30176
|
//共有哪几种分屏
|
|
30175
|
-
windowsArr: [1, 4, 9, 16],
|
|
30177
|
+
windowsArr: [1, 2, 4, 9, 16],
|
|
30176
30178
|
//总的窗口数
|
|
30177
30179
|
windowsNum: 16,
|
|
30178
30180
|
conf: {
|
|
@@ -30190,6 +30192,7 @@ const initVideo = function (token, videoArea, sip) {
|
|
|
30190
30192
|
videoCapImagePath: conf['video.cap.image.path'],
|
|
30191
30193
|
videoInfoInBottom: false
|
|
30192
30194
|
};
|
|
30195
|
+
if (videoOpts_) Object.assign(videoOpts, videoOpts_);
|
|
30193
30196
|
conf['video.poll.time'] && (videoOpts.pollInterval = conf['video.poll.time']);
|
|
30194
30197
|
let videoController = new Video($(videoArea), videoOpts);
|
|
30195
30198
|
resolve(videoController);
|
|
Binary file
|