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/package.json
CHANGED
package/src/common-request.js
CHANGED
|
@@ -122,20 +122,20 @@ function doSubscribe(_cometd, callback) {
|
|
|
122
122
|
* @param {*} videoArea //展示视频的容器模块
|
|
123
123
|
* 使用该方法前提是videoArea等相关dom节点必须已加载完毕
|
|
124
124
|
*/
|
|
125
|
-
export const initVideo = function(token, videoArea, sip){ //读取视频服务配置初始化视频
|
|
125
|
+
export const initVideo = function(token, videoArea, videoOpts_, sip){ //读取视频服务配置初始化视频
|
|
126
126
|
let server_ = sip || server;
|
|
127
127
|
return new Promise((resolve, reject) =>{
|
|
128
128
|
let url = server_ + '/scooper-video/conf/data';
|
|
129
|
-
|
|
129
|
+
let param = {};
|
|
130
130
|
$.getJSON(url,param,function (conf) {
|
|
131
131
|
// 初始化视频播放方式
|
|
132
132
|
// initplaVideoType();
|
|
133
133
|
let janusUrl = conf['video.janus.url'];
|
|
134
|
-
|
|
134
|
+
let videoOpts = {
|
|
135
135
|
//初始化时的界面显示的分屏树
|
|
136
136
|
windows: 4,
|
|
137
137
|
//共有哪几种分屏
|
|
138
|
-
windowsArr: [1, 4, 9, 16],
|
|
138
|
+
windowsArr: [1, 2, 4, 9, 16],
|
|
139
139
|
//总的窗口数
|
|
140
140
|
windowsNum: 16,
|
|
141
141
|
conf: {
|
|
@@ -153,6 +153,7 @@ export const initVideo = function(token, videoArea, sip){ //读取视频服务
|
|
|
153
153
|
videoCapImagePath: conf['video.cap.image.path'],
|
|
154
154
|
videoInfoInBottom: false
|
|
155
155
|
};
|
|
156
|
+
if(videoOpts_) Object.assign(videoOpts, videoOpts_);
|
|
156
157
|
conf['video.poll.time'] && (videoOpts.pollInterval = conf['video.poll.time']);
|
|
157
158
|
let videoController = new Video($(videoArea), videoOpts);
|
|
158
159
|
resolve(videoController);
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
-
html, body{
|
|
3
|
-
padding:0;
|
|
4
|
-
margin:0;
|
|
5
|
-
height:100%;
|
|
6
|
-
width:100%;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
2
|
.video-main{
|
|
11
3
|
position: absolute;
|
|
12
4
|
top: 0px;
|
|
@@ -106,7 +98,7 @@ html, body{
|
|
|
106
98
|
color: #fff;
|
|
107
99
|
font-size: 16px;
|
|
108
100
|
padding-left: 30px;
|
|
109
|
-
/* background: transparent url(
|
|
101
|
+
/* background: transparent url("~@/img/loading.gif") no-repeat 10px center; */
|
|
110
102
|
}
|
|
111
103
|
.info{
|
|
112
104
|
position: absolute;
|
|
@@ -140,7 +132,7 @@ html, body{
|
|
|
140
132
|
width: 48px;
|
|
141
133
|
height: 48px;
|
|
142
134
|
float: left;
|
|
143
|
-
/* background:url(
|
|
135
|
+
/* background:url("~@/img/yy.png"); */
|
|
144
136
|
background-size: 100% 100%;
|
|
145
137
|
background-color: rgba(0,0,0,0);
|
|
146
138
|
}
|
|
@@ -153,7 +145,7 @@ html, body{
|
|
|
153
145
|
width: 48px;
|
|
154
146
|
height: 48px;
|
|
155
147
|
float: left;
|
|
156
|
-
/* background-image: url(
|
|
148
|
+
/* background-image: url("~@/img/yy_gb.png"); */
|
|
157
149
|
background-size: 100% 100%;
|
|
158
150
|
background-color: rgba(0,0,0,0);
|
|
159
151
|
}
|
|
@@ -165,7 +157,7 @@ html, body{
|
|
|
165
157
|
width: 48px;
|
|
166
158
|
height: 48px;
|
|
167
159
|
float: left;
|
|
168
|
-
/* background:url(
|
|
160
|
+
/* background:url("~@/img/hm_shengyin_sel.png"); */
|
|
169
161
|
background-size: 100% 100%;
|
|
170
162
|
background-color: rgba(0,0,0,0);
|
|
171
163
|
}
|
|
@@ -178,7 +170,7 @@ html, body{
|
|
|
178
170
|
width: 48px;
|
|
179
171
|
height: 48px;
|
|
180
172
|
float: left;
|
|
181
|
-
/* background-image: url(
|
|
173
|
+
/* background-image: url("~@/img/hm_jingyin_sel.png"); */
|
|
182
174
|
background-size: 100% 100%;
|
|
183
175
|
background-color: rgba(0,0,0,0);
|
|
184
176
|
}
|
|
@@ -191,7 +183,7 @@ html, body{
|
|
|
191
183
|
width: 20px;
|
|
192
184
|
height: 20px;
|
|
193
185
|
float: left;
|
|
194
|
-
/* background-image: url("
|
|
186
|
+
/* background-image: url("~@/img/close.png"); */
|
|
195
187
|
background-size: 100% 100%;
|
|
196
188
|
background-color: rgba(0,0,0,0);
|
|
197
189
|
}
|
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);
|