ucservice 2.5.9 → 2.6.0

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.
@@ -31752,9 +31752,10 @@ const initVideo = function (token, videoArea, videoOpts_, sip) {
31752
31752
  //读取视频服务配置初始化视频
31753
31753
  let server_ = sip || server;
31754
31754
  return new Promise((resolve, reject) => {
31755
- let url = server_ + '/scooper-video/conf/data';
31756
- let param = {};
31757
- $.getJSON(url, param, function (conf) {
31755
+ let url = server_ + '/scooper-video/conf/data?token=' + token;
31756
+ let param = {}; // $.getJSON(url,param,function (conf) {
31757
+
31758
+ $.post(url, param, function (conf) {
31758
31759
  // 初始化视频播放方式
31759
31760
  // initplaVideoType();
31760
31761
  let janusUrl = conf['video.janus.url'];
@@ -31784,7 +31785,7 @@ const initVideo = function (token, videoArea, videoOpts_, sip) {
31784
31785
  conf['video.poll.time'] && (videoOpts.pollInterval = conf['video.poll.time']);
31785
31786
  let videoController = new Video($(videoArea), videoOpts);
31786
31787
  resolve(videoController);
31787
- });
31788
+ }, 'json');
31788
31789
  });
31789
31790
  };
31790
31791
  // CONCATENATED MODULE: ./index.js
Binary file