ucservice 2.5.9 → 2.6.1

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.
@@ -31743,9 +31743,10 @@ const initVideo = function (token, videoArea, videoOpts_, sip) {
31743
31743
  //读取视频服务配置初始化视频
31744
31744
  let server_ = sip || server;
31745
31745
  return new Promise((resolve, reject) => {
31746
- let url = server_ + '/scooper-video/conf/data';
31747
- let param = {};
31748
- $.getJSON(url, param, function (conf) {
31746
+ let url = server_ + '/scooper-video/conf/data?token=' + token;
31747
+ let param = {}; // $.getJSON(url,param,function (conf) {
31748
+
31749
+ $.post(url, param, function (conf) {
31749
31750
  // 初始化视频播放方式
31750
31751
  // initplaVideoType();
31751
31752
  let janusUrl = conf['video.janus.url'];
@@ -31775,7 +31776,7 @@ const initVideo = function (token, videoArea, videoOpts_, sip) {
31775
31776
  conf['video.poll.time'] && (videoOpts.pollInterval = conf['video.poll.time']);
31776
31777
  let videoController = new Video($(videoArea), videoOpts);
31777
31778
  resolve(videoController);
31778
- });
31779
+ }, 'json');
31779
31780
  });
31780
31781
  };
31781
31782
  // CONCATENATED MODULE: ./index.js
Binary file