Skip to content

Commit e18cfa2

Browse files
committed
添加IoT BroadCast sdk及demo入口
Change-Id: Ibc0d767f02c8d99e45837929a9f81c12826425ad
1 parent 6ec37d7 commit e18cfa2

29 files changed

+3548
-1
lines changed

explorer/device-android-demo/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ dependencies {
102102
implementation project(':explorer:explorer-device-face')
103103
implementation project(':explorer:explorer-device-rtc')
104104
implementation project(':explorer:explorer-device-central')
105+
implementation project(':explorer:explorer-device-broadcast')
105106
api project(':explorer:explorer-device-video')
106107
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
107108
implementation 'androidx.recyclerview:recyclerview:1.2.0'

explorer/device-android-demo/src/main/AndroidManifest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
<activity android:name="com.tencent.iot.explorer.device.face.AuthActivity" />
5959
<activity android:name="com.tencent.iot.explorer.device.face.RetrieveWithAndroidCameraActivity" />
6060
<activity android:name="com.tencent.iot.explorer.device.rtc.TRTCMainActivity" />
61+
<activity android:name="com.tencent.iot.explorer.device.broadcast.BroadCastMainActivity" />
6162
<activity android:name="com.tencent.iot.explorer.device.video.call.MainActivity" />
6263
<activity
6364
android:name="com.tencent.iot.explorer.device.video.call.RecordVideoActivity"
@@ -77,6 +78,10 @@
7778
<activity
7879
android:name="com.tencent.iot.explorer.device.rtc.ui.audiocall.TRTCAudioCallActivity"
7980
android:theme="@style/Theme.AppCompat.NoActionBar" />
81+
82+
<activity
83+
android:name="com.tencent.iot.explorer.device.broadcast.ui.broadcastcall.BroadcastAudioCallActivity"
84+
android:theme="@style/Theme.AppCompat.NoActionBar" />
8085
</application>
8186

8287
</manifest>
Lines changed: 365 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,365 @@
1-
{"version":"1.0","profile":{"ProductId":"PJRWOV6FDV","CategoryId":"1"},"properties":[{"id":"_sys_video_call_status","name":"视频呼叫","desc":"","mode":"rw","define":{"type":"enum","mapping":{"0":"空闲或拒绝","1":"呼叫中","2":"通话中"}},"required":false},{"id":"_sys_userid","name":"呼叫的手机用户","desc":"","mode":"rw","define":{"type":"string","min":"0","max":"2048"},"required":false},{"id":"_sys_call_userlist","name":"呼叫的用户列表","desc":"","mode":"rw","define":{"type":"string","min":"0","max":"2048"},"required":false},{"id":"_sys_audio_call_status","name":"语音呼叫","desc":"","mode":"rw","define":{"type":"enum","mapping":{"0":"空闲或拒绝","1":"呼叫中","2":"通话中"}},"required":false}],"events":[],"actions":[{"id":"_sys_trtc_join_room","name":"设备加房间","desc":"http://tapd.oa.com/NEW_IOT/markdown_wikis/show/#1220393192001751795","input":[{"id":"SdkAppId","name":"SdkAppId","define":{"type":"int","min":"0","max":"4300000000","start":"0","step":"1","unit":""}},{"id":"UserId","name":"UserId","define":{"type":"string","min":"0","max":"128"}},{"id":"UserSig","name":"UserSig","define":{"type":"string","min":"0","max":"256"}},{"id":"StrRoomId","name":"StrRoomId","define":{"type":"string","min":"0","max":"2048"}},{"id":"PrivateMapKey","name":"PrivateMapKey","define":{"type":"string","min":"0","max":"2048"}}],"output":[{"id":"Code","name":"Code","define":{"type":"int","min":"-100","max":"100","start":"0","step":"1","unit":""}}],"required":false}]}
1+
{
2+
"version": "1.0",
3+
"properties": [
4+
{
5+
"id": "Cell_Info",
6+
"name": "蜂窝定位",
7+
"desc": "LAC代码为基站小区号;cellId为基站ID;signal为基站信号强度;采集时间为设备采集基站信息时间",
8+
"mode": "rw",
9+
"define": {
10+
"type": "struct",
11+
"specs": [
12+
{
13+
"id": "mcc",
14+
"name": "国家代码",
15+
"dataType": {
16+
"type": "int",
17+
"min": "0",
18+
"max": "999",
19+
"start": "460",
20+
"step": "1",
21+
"unit": ""
22+
}
23+
},
24+
{
25+
"id": "mnc",
26+
"name": "基站网络码",
27+
"dataType": {
28+
"type": "int",
29+
"min": "0",
30+
"max": "9999999",
31+
"start": "460",
32+
"step": "1",
33+
"unit": ""
34+
}
35+
},
36+
{
37+
"id": "lac",
38+
"name": "LAC代码",
39+
"dataType": {
40+
"type": "int",
41+
"min": "0",
42+
"max": "9999999",
43+
"start": "0",
44+
"step": "1",
45+
"unit": ""
46+
}
47+
},
48+
{
49+
"id": "cid",
50+
"name": "cellId",
51+
"dataType": {
52+
"type": "int",
53+
"min": "0",
54+
"max": "999999999",
55+
"start": "0",
56+
"step": "1",
57+
"unit": ""
58+
}
59+
},
60+
{
61+
"id": "rss",
62+
"name": "signal",
63+
"dataType": {
64+
"type": "int",
65+
"min": "-99999",
66+
"max": "99999",
67+
"start": "0",
68+
"step": "1",
69+
"unit": "dbm"
70+
}
71+
},
72+
{
73+
"id": "networkType",
74+
"name": "设备网络制式",
75+
"dataType": {
76+
"type": "enum",
77+
"mapping": {
78+
"1": "GSM",
79+
"2": "CDMA",
80+
"3": "WCDMA",
81+
"4": "TD_CDMA",
82+
"5": "LTE"
83+
}
84+
}
85+
},
86+
{
87+
"id": "collect_time",
88+
"name": "采集时间",
89+
"dataType": {
90+
"type": "timestamp"
91+
}
92+
}
93+
]
94+
},
95+
"required": false
96+
},
97+
{
98+
"id": "talk_user",
99+
"name": "当前通话中的userid",
100+
"desc": "当前与用户通话的用户信息,目前置UserId",
101+
"mode": "rw",
102+
"define": {
103+
"max": "2048",
104+
"min": "0",
105+
"type": "string"
106+
},
107+
"required": false
108+
},
109+
{
110+
"id": "call_picurl",
111+
"name": "呼叫抓拍图片",
112+
"desc": "设备端呼叫时的抓拍图片,呼叫时可间隔5秒进行抓拍上传",
113+
"mode": "rw",
114+
"define": {
115+
"max": "2048",
116+
"min": "0",
117+
"type": "string"
118+
},
119+
"required": false
120+
},
121+
{
122+
"id": "call_target",
123+
"name": "房间号",
124+
"desc": "",
125+
"mode": "rw",
126+
"define": {
127+
"max": "128",
128+
"min": "0",
129+
"type": "string"
130+
},
131+
"required": false
132+
},
133+
{
134+
"id": "unlock",
135+
"name": "远程开锁",
136+
"desc": "1:开门",
137+
"mode": "rw",
138+
"define": {
139+
"max": "1",
140+
"min": "0",
141+
"start": "0",
142+
"step": "1",
143+
"type": "int",
144+
"unit": ""
145+
},
146+
"required": false
147+
},
148+
{
149+
"id": "call_target_project",
150+
"name": "目标项目",
151+
"desc": "呼叫目标所在项目ID(小区ID)",
152+
"mode": "rw",
153+
"define": {
154+
"max": "64",
155+
"min": "0",
156+
"type": "string"
157+
},
158+
"required": false
159+
},
160+
{
161+
"id": "call_state",
162+
"name": "呼叫业务状态",
163+
"desc": "描述最后一次呼叫业务的结果状态",
164+
"mode": "rw",
165+
"define": {
166+
"mapping": {
167+
"0": "初始状态",
168+
"1": "呼叫超时",
169+
"2": "已接听",
170+
"3": "拒绝接听"
171+
},
172+
"type": "enum"
173+
},
174+
"required": false
175+
},
176+
{
177+
"id": "call_result",
178+
"name": "呼叫结果情况描述",
179+
"desc": "业务终止后需置此值为空闲",
180+
"mode": "rw",
181+
"define": {
182+
"mapping": {
183+
"0": "业务空闲状态",
184+
"1": "呼叫振铃成功",
185+
"2": "房间欠费",
186+
"3": "查无此房",
187+
"4": "房间没有开通trtc功能",
188+
"5": "房间没有入住",
189+
"6": "呼叫忙"
190+
},
191+
"type": "enum"
192+
},
193+
"required": false
194+
},
195+
{
196+
"id": "talk_time",
197+
"name": "通话时长",
198+
"desc": "当前通话时长",
199+
"mode": "rw",
200+
"define": {
201+
"max": "1000",
202+
"min": "0",
203+
"start": "0",
204+
"step": "1",
205+
"type": "int",
206+
"unit": ""
207+
},
208+
"required": false
209+
},
210+
{
211+
"id": "call_userlist",
212+
"name": "呼叫用户列表",
213+
"desc": "当前呼叫的用户列表信息",
214+
"mode": "rw",
215+
"define": {
216+
"arrayInfo": {
217+
"max": "2048",
218+
"min": "0",
219+
"type": "string"
220+
},
221+
"type": "array"
222+
},
223+
"required": false
224+
},
225+
{
226+
"id": "sessionid",
227+
"name": "会话id",
228+
"desc": "会话id,由平台产生(保证唯一),给设备第一次回应时带给设备,以后设备按此sessionid 发上来",
229+
"mode": "rw",
230+
"define": {
231+
"max": "64",
232+
"min": "0",
233+
"type": "string"
234+
},
235+
"required": false
236+
}
237+
],
238+
"events": [],
239+
"actions": [
240+
{
241+
"id": "unlock_door",
242+
"name": "远程开锁暂不用",
243+
"desc": "1:开门;result:0;成功;其他值失败",
244+
"input": [
245+
{
246+
"id": "action",
247+
"name": "开门动作",
248+
"define": {
249+
"type": "enum",
250+
"mapping": {
251+
"1": "开门"
252+
}
253+
}
254+
},
255+
{
256+
"id": "userid",
257+
"name": "开门用户ID",
258+
"define": {
259+
"type": "string",
260+
"min": "0",
261+
"max": "64"
262+
}
263+
},
264+
{
265+
"id": "roomid",
266+
"name": "房号",
267+
"define": {
268+
"type": "string",
269+
"min": "0",
270+
"max": "128"
271+
}
272+
}
273+
],
274+
"output": [
275+
{
276+
"id": "result",
277+
"name": "开门结果",
278+
"define": {
279+
"type": "int",
280+
"min": "0",
281+
"max": "100",
282+
"start": "0",
283+
"step": "1",
284+
"unit": ""
285+
}
286+
}
287+
],
288+
"required": false
289+
},
290+
{
291+
"id": "trtc_join_broadcast",
292+
"name": "trtc_join_broadcast",
293+
"desc": "",
294+
"input": [
295+
{
296+
"id": "SdkAppId",
297+
"name": "SdkAppId",
298+
"define": {
299+
"type": "int",
300+
"min": "0",
301+
"max": "4300000000",
302+
"start": "0",
303+
"step": "1",
304+
"unit": ""
305+
}
306+
},
307+
{
308+
"id": "UserId",
309+
"name": "UserId",
310+
"define": {
311+
"type": "string",
312+
"min": "0",
313+
"max": "128"
314+
}
315+
},
316+
{
317+
"id": "UserSig",
318+
"name": "UserSig",
319+
"define": {
320+
"type": "string",
321+
"min": "0",
322+
"max": "1280"
323+
}
324+
},
325+
{
326+
"id": "StrRoomId",
327+
"name": "StrRoomId",
328+
"define": {
329+
"type": "string",
330+
"min": "0",
331+
"max": "128"
332+
}
333+
},
334+
{
335+
"id": "PrivateMapKey",
336+
"name": "PrivateMapKey",
337+
"define": {
338+
"type": "string",
339+
"min": "0",
340+
"max": "1280"
341+
}
342+
}
343+
],
344+
"output": [
345+
{
346+
"id": "Code",
347+
"name": "Code",
348+
"define": {
349+
"type": "int",
350+
"min": "-100",
351+
"max": "100",
352+
"start": "0",
353+
"step": "1",
354+
"unit": ""
355+
}
356+
}
357+
],
358+
"required": false
359+
}
360+
],
361+
"profile": {
362+
"ProductId": "7I7PNT6O2G",
363+
"CategoryId": "1"
364+
}
365+
}

0 commit comments

Comments
 (0)