hy-rtc-sdk-components 0.0.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/README.md ADDED
@@ -0,0 +1,152 @@
1
+ ## npm包信息
2
+ ##### 包名:hy-rtc
3
+ 安装方式 yarn add hy-rtc
4
+
5
+ ## 样式引入
6
+ <style src="hy-rtc/lib/hy-rtc.css"></style>
7
+
8
+ ## 更新内容
9
+ 【0.7.3】20211104
10
+ <br>
11
+ - 优化 - 放大云台控制按钮,移除斜方向的按钮。
12
+
13
+ 【0.7.2】20211013
14
+ <br>
15
+ - 修复 - 新建会议房间或重新进入会议房间,在设备端未操作的情况下显示该设备已加入房间
16
+ - 修复 - 优化平板网页端直播时球机云台控制问题
17
+ - 优化 - 球机上传的经纬度信息转换成地址信息 并显示在布控球列表中
18
+
19
+
20
+ 【0.7.1】20210902
21
+ <br>
22
+ - 优化 - 添加布控球时列表排序,在线设备往前排序
23
+ - 优化 - 会议成员列表中,可移除未加入的会议成员
24
+
25
+ 【0.7.0】20210830
26
+ <br>
27
+ - 开发 - 新增拉入、移除会议成员
28
+ - 开发 - 新增拉入、移除布控球设备
29
+
30
+ 【0.6.3】20210816
31
+ <br>
32
+ - 修复 - 设备退出时的逻辑处理
33
+
34
+ 【0.6.1】20210813
35
+ <br>
36
+ - 开发 - 会议中拉入新成员
37
+
38
+
39
+ 20210811
40
+ <br>
41
+ - 开发 - 视频会议拉摄像头
42
+ - 优化 - 摄像头拉流失败的提示
43
+ - 优化 - 退出视频会议时,关闭摄像头、麦克风采流。
44
+
45
+ 20210804
46
+ <br>
47
+ - 修复云台控制图标显示
48
+ - 修复荣耀平板上部分浏览器不支持H264解码
49
+
50
+ 20210729
51
+ <br>
52
+ - 修复退出会议BUG。
53
+ - 新增videoConferencingPlayerV2组件。
54
+ - 弃用旧版会议组件,移除旧版文档。
55
+
56
+ 20210615
57
+ <br>
58
+ - 视频会议组件新增deviceItemStyle属性,用于控制视频会议设备框的样式。
59
+ - 优化直播与视频会议同时发起时的逻辑。
60
+ - 修改视频会议设备框显示用户名称。
61
+
62
+ ## 组件按需引入
63
+
64
+ ## 【直播播放器组件】
65
+ ##### 支持功能
66
+ - 设备视频点播
67
+ - 云台控制
68
+ ##### 引入方式
69
+ import { monitorPlayer } from 'hy-rtc'
70
+
71
+ ### props参数
72
+ 名称 | 类型 | 用途 | 示例 | 必填
73
+ ---|---|---|---|---
74
+ serverInfo|Object|【服务器连接信息】<br>host: MQTT服务器地址<br>clientId:客户ID<br>username:用户名<br>密码:password<br>port:服务端口|按实际情况填写,可参考Demo|是
75
+ controlMenus | Array |【播放器中的按钮】 <br>云台控制:"controller"<br>停止播放:"stop"<br>全屏:"fullScreen"<br>静音:"muted"<br>|controlMenus: ['stop','fullScreen', 'muted' ]|否
76
+ screenCount | Number |分屏数量(目前支持1、4、9)|1 (默认值:4)|否
77
+ width|String|播放器宽度|960px (默认值:800px)|否
78
+ height|String|播放器高度|640px (默认值:600px)|否
79
+
80
+ ### 发起直播 (callMonitor)
81
+ #### 调用示例
82
+ ```javascript
83
+ const monitorList = [
84
+ {
85
+ deviceId: '44030700001320000001', // 设备名称
86
+ deviceObj: {
87
+ name: '人员1', // 设备人员名称
88
+ companyNameStr: '部门1' // 部门名称
89
+ }
90
+ }
91
+ ]
92
+ this.$refs.monitorPlayer.callMonitor(monitorList)
93
+ ```
94
+
95
+ ### 关闭直播(closeMonitor)
96
+ #### 调用示例
97
+ ```javascript
98
+ this.$refs.monitorPlayer.closeMonitor()
99
+ ```
100
+
101
+ ## 【视频会议播放器组件】
102
+ ##### 支持功能
103
+ - 加入房间
104
+ - 退出房间
105
+ - 关闭 | 开启 本地摄像头
106
+ - 关闭 | 开启 本地麦克风
107
+ - 设置主持人
108
+ ##### 开发说明
109
+ - 请使用https环境进行开发,本地调试时,可将vue.config.js中devServer -> https设置为true
110
+ - 调试时,请确保当前浏览页 网站设置 -> 权限 -> 摄像头 为开启状态
111
+ - 谷歌浏览器进入设置白名单 chrome://flags/#unsafely-treat-insecure-origin-as-secure
112
+
113
+ ##### 引入方式
114
+ import { videoConferencingPlayerV2 } from 'hy-rtc'
115
+
116
+ ### props参数
117
+ 名称 | 类型 | 用途 | 示例 | 必填
118
+ ---|---|---|---|---
119
+ serverInfo|Object|【服务器连接信息】<br>host: MQTT服务器地址<br>clientId:客户ID<br>username:用户名<br>密码:password<br>port:服务端口|按实际情况填写,可参考Demo|是
120
+ width|String|播放器宽度|960px (默认值:800px)|否
121
+ height|String|播放器高度|640px (默认值:600px)|否
122
+
123
+ ### 加入会议 (joinChannel)
124
+ <br>
125
+ 先使用服务端api获取会议列表
126
+ <br>
127
+ 获取后将会议id传入
128
+ <br>
129
+
130
+ ```javascript
131
+ joinChannel () {
132
+ const channel = {
133
+ id: 16
134
+ }
135
+ this.$refs.videoConferencingPlayerV2.joinChannel(channel)
136
+ }
137
+ ```
138
+
139
+ ### 退出会议
140
+ 方法名(outChannel)
141
+ ```javascript
142
+ outChannel () {
143
+ this.$refs.videoConferencingPlayerV2.outChannel()
144
+ }
145
+ ```
146
+
147
+ ### 退出会议事件
148
+ 事件名称:on-outChannel
149
+ 点击退出会议时触发
150
+ ```html
151
+ <videoConferencingPlayerV2 @on-outChannel="onOutChannel" ······></videoConferencingPlayerV2>
152
+ ```
package/lib/demo.html ADDED
@@ -0,0 +1,10 @@
1
+ <meta charset="utf-8">
2
+ <title>hy-rtc-sdkComponents demo</title>
3
+ <script src="./hy-rtc-sdkComponents.umd.js"></script>
4
+
5
+ <link rel="stylesheet" href="./hy-rtc-sdkComponents.css">
6
+
7
+
8
+ <script>
9
+ console.log(hy-rtc-sdkComponents)
10
+ </script>