ucservice 1.0.0 → 1.0.3
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/demo.html +10 -0
- package/dist/ucservice.common.js +31231 -0
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -0
- package/dist/ucservice.css +1 -0
- package/dist/ucservice.umd.js +31241 -0
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -0
- package/dist/ucservice.umd.min.js +26 -0
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -0
- package/index.js +6 -4
- package/package.json +3 -2
- package/src/config.js +13 -11
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@/config';
|
|
1
|
+
import { account, aduio, aduio_video, dept_ry, dept, location, meet, message, record, video } from '@/config';
|
|
2
2
|
import '@/css/scooper.video.css';
|
|
3
3
|
import sha256_digest from '@/lib/sha256';
|
|
4
4
|
import { loadJson, initCometd, initVideo } from '@/common-request';
|
|
@@ -1045,7 +1045,7 @@ export const recordOp = {
|
|
|
1045
1045
|
|
|
1046
1046
|
export const videoOp = {
|
|
1047
1047
|
call: function(param){
|
|
1048
|
-
let net =
|
|
1048
|
+
let net = video.callVideoNet;
|
|
1049
1049
|
return new Promise((resolve, reject) => {
|
|
1050
1050
|
loadJson(net.url, { ...param }, function(ret){
|
|
1051
1051
|
if(ret.code == 0) {
|
|
@@ -1058,7 +1058,7 @@ export const videoOp = {
|
|
|
1058
1058
|
});
|
|
1059
1059
|
},
|
|
1060
1060
|
tree: function(param){
|
|
1061
|
-
let net =
|
|
1061
|
+
let net = video.getNodesVideoNet;
|
|
1062
1062
|
return new Promise((resolve, reject) => {
|
|
1063
1063
|
loadJson(net.url, { ...param }, function(ret){
|
|
1064
1064
|
if(ret.code == 0) {
|
|
@@ -1070,4 +1070,6 @@ export const videoOp = {
|
|
|
1070
1070
|
}, '', net.method);
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
|
-
}
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
export { account, aduio, aduio_video, dept_ry, dept, location, meet, message, record, video } //接口相关参数以及返回值,暴露出去可以供开发者查看
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ucservice",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"description": "统一通信服务",
|
|
6
|
-
"main": "
|
|
6
|
+
"main": "dist/ucservice.common.js",
|
|
7
|
+
"style": "ucservice.css",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"serve": "vue-cli-service serve",
|
|
9
10
|
"build": "vue-cli-service build",
|
package/src/config.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import '@/net_url/account_net_url'; //账号
|
|
2
|
-
import '@/net_url/aduio_net_url'; //音频
|
|
3
|
-
import '@/net_url/aduio_video_net_url'; //音频、视频公共接口
|
|
4
|
-
import '@/net_url/dept_ry_url'; //部门成员
|
|
5
|
-
import '@/net_url/dept_url'; //部门
|
|
6
|
-
import '@/net_url/location_url'; //定位
|
|
7
|
-
import '@/net_url/meet_url'; //会议
|
|
8
|
-
import '@/net_url/message_url'; //短信
|
|
9
|
-
import '@/net_url/record_url'; //录音录像
|
|
10
|
-
import '@/net_url/video_net_url'; //视频
|
|
1
|
+
import account from '@/net_url/account_net_url'; //账号
|
|
2
|
+
import aduio from '@/net_url/aduio_net_url'; //音频
|
|
3
|
+
import aduio_video from '@/net_url/aduio_video_net_url'; //音频、视频公共接口
|
|
4
|
+
import dept_ry from '@/net_url/dept_ry_url'; //部门成员
|
|
5
|
+
import dept from '@/net_url/dept_url'; //部门
|
|
6
|
+
import location from '@/net_url/location_url'; //定位
|
|
7
|
+
import meet from '@/net_url/meet_url'; //会议
|
|
8
|
+
import message from '@/net_url/message_url'; //短信
|
|
9
|
+
import record from '@/net_url/record_url'; //录音录像
|
|
10
|
+
import video from '@/net_url/video_net_url'; //视频
|
|
11
11
|
|
|
12
12
|
export const server = 'http://10.249.4.152:8080'; //服务地址
|
|
13
|
-
export const cometd_server = '/scooper-msg-queue/cometd'; //
|
|
13
|
+
export const cometd_server = '/scooper-msg-queue/cometd'; //
|
|
14
|
+
|
|
15
|
+
export { account, aduio, aduio_video, dept_ry, dept, location, meet, message, record, video}
|