ucservice 1.1.6 → 1.1.9

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.
@@ -11794,6 +11794,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
11794
11794
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
11795
11795
  } else {}
11796
11796
  })(this, function ($, Janus, adapter) {
11797
+ console.log(Janus);
11798
+ console.log(adapter);
11799
+ Janus = Janus.default;
11800
+ adapter = adapter.default;
11801
+ console.log("=====after default====");
11797
11802
  console.log(Janus);
11798
11803
  console.log(adapter);
11799
11804
  "use strict";
@@ -30153,17 +30158,17 @@ function doSubscribe(_cometd, callback) {
30153
30158
  */
30154
30159
 
30155
30160
 
30156
- const initVideo = function (token, videoArea, sip) {
30161
+ const initVideo = function (token, videoArea, videoOpts_, sip) {
30157
30162
  //读取视频服务配置初始化视频
30158
30163
  let server_ = sip || server;
30159
30164
  return new Promise((resolve, reject) => {
30160
30165
  let url = server_ + '/scooper-video/conf/data';
30161
- var param = {};
30166
+ let param = {};
30162
30167
  $.getJSON(url, param, function (conf) {
30163
30168
  // 初始化视频播放方式
30164
30169
  // initplaVideoType();
30165
30170
  let janusUrl = conf['video.janus.url'];
30166
- var videoOpts = {
30171
+ let videoOpts = {
30167
30172
  //初始化时的界面显示的分屏树
30168
30173
  windows: 4,
30169
30174
  //共有哪几种分屏
@@ -30185,6 +30190,7 @@ const initVideo = function (token, videoArea, sip) {
30185
30190
  videoCapImagePath: conf['video.cap.image.path'],
30186
30191
  videoInfoInBottom: false
30187
30192
  };
30193
+ if (videoOpts_) Object.assign(videoOpts, videoOpts_);
30188
30194
  conf['video.poll.time'] && (videoOpts.pollInterval = conf['video.poll.time']);
30189
30195
  let videoController = new Video($(videoArea), videoOpts);
30190
30196
  resolve(videoController);
Binary file