larksr_websdk 3.3.113 → 3.3.114

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.
@@ -1,115 +1,115 @@
1
- # LarkSR WebClient SDK
2
-
3
- Develop webclient for LarkSR cloudrending or LarkSR VR monitor client. Free design UI and define operate.
4
-
5
- Links:
6
-
7
- [Paraverse](https://www.paraverse.cc/)
8
-
9
- [LarkSR Doc](https://www.pingxingyun.com/devCenter.html)
10
-
11
- [Experience](https://www.paraverse.cc/)
12
-
13
- SDK include:
14
-
15
- * LarkSR restful request.
16
- * CloudRending Video.
17
- * Handle input, keyboard, gamepad, touchscreen.
18
- * Scale mode.
19
- * Fullscreen mode.
20
- * Landscap mode.
21
-
22
- ### Notice
23
-
24
- > SDK V3.2.30 only support server version above [V3.2.3.1](https://www.pingxingyun.com/devCenter.html)
25
- > [Old verion SDK Demo](https://github.com/ParaverseTechnology/lark_sr_websdk_demos/releases/tag/V3.2.10)
26
- > V3.2.314 server and datachannel above 3.2.5.1
27
-
28
- ## Quick Start
29
-
30
- ### install
31
-
32
- 1. npm
33
-
34
- ```cmd
35
- npm i larksr_websdk
36
- ```
37
-
38
- 2. plain html
39
-
40
- ```html
41
- <script src="larksr-web-sdk.min.js"></script>
42
- ```
43
-
44
- ### Use
45
-
46
- Import websdk with plain html SDK under global object larksr_websdk.
47
-
48
- Connect cloud resource and all event access with new LarkSR object.
49
-
50
- > SDK default config html 100% height 100% width viewport. Auto handle input.
51
-
52
- > SDK mainly contain loading page and cloud video page no other ui.efore start:
53
-
54
- 1. Lark SR server address, exp:http://222.128.6.137:8181/
55
- 2. SDK auth code,connect business@pingxingyun.com or register https://www.pingxingyun.com/console/#/
56
- 3. App id from Lark SR admin server applist.
57
-
58
- ```javascript
59
- var client = new LarkSR({
60
- // root html element
61
- // WARNING not document.documentElement
62
- rootElement: document.getElementById('container'),
63
- // Sever address
64
- serverAddress: "Lark Sever address",
65
- // SDK ID or set by call initSDKAuthCode
66
- // authCode: 'your SDK ID',
67
- // test backgroud url
68
- // loadingBgUrl: 'https://home-obs.pingxingyun.com/homePage_4_0/bg.jpg',
69
- });
70
- ```
71
-
72
- Set sdk auth code.
73
-
74
- ```javascript
75
- client.initSDKAuthCode('Your SDK ID')
76
- .then(() => {
77
- // start connect;
78
- client.connect({
79
- // LarkSR cloud appid from LarkSR admin server.
80
- // doc
81
- // https://www.pingxingyun.com/online/api3_2.html?id=476
82
- appliId: "appid from LarkSR admin"
83
- })
84
- .then(() => {
85
- console.log('enter success');
86
- })
87
- .catch((e) => {
88
- console.error(e);
89
- });
90
- })
91
- .catch((e) => {
92
- console.error(e);
93
- });
94
- // ...
95
- // close connection.
96
- // client.close();
97
- // release DOM element.
98
- // client.destroy();
99
- ```
100
-
101
- ### Doc
102
-
103
- [LarkSR WebClient SDK](https://pingxingyun.github.io/en/webclient_sdk/)
104
-
105
-
106
- ## Index
107
-
108
- ### [Config](./config.md)
109
- ### [LarkSR functions](./functions.md)
110
- ### [LarkSR events](./events.md)
111
- ### [LarkSR event codes](./event_codes.md)
112
- ### [LarkSR member varibales](./member_variables.md)
113
- ### [SDK ID encryption](./sdkid_encryption.md)
114
- ### [Multi media share](./multi_media_3_2_401.md)
115
- ### [SDK Update](./update.md)
1
+ # LarkSR WebClient SDK
2
+
3
+ Develop webclient for LarkSR cloudrending or LarkSR VR monitor client. Free design UI and define operate.
4
+
5
+ Links:
6
+
7
+ [Paraverse](https://www.paraverse.cc/)
8
+
9
+ [LarkSR Doc](https://www.pingxingyun.com/devCenter.html)
10
+
11
+ [Experience](https://www.paraverse.cc/)
12
+
13
+ SDK include:
14
+
15
+ * LarkSR restful request.
16
+ * CloudRending Video.
17
+ * Handle input, keyboard, gamepad, touchscreen.
18
+ * Scale mode.
19
+ * Fullscreen mode.
20
+ * Landscap mode.
21
+
22
+ ### Notice
23
+
24
+ > SDK V3.2.30 only support server version above [V3.2.3.1](https://www.pingxingyun.com/devCenter.html)
25
+ > [Old verion SDK Demo](https://github.com/ParaverseTechnology/lark_sr_websdk_demos/releases/tag/V3.2.10)
26
+ > V3.2.314 server and datachannel above 3.2.5.1
27
+
28
+ ## Quick Start
29
+
30
+ ### install
31
+
32
+ 1. npm
33
+
34
+ ```cmd
35
+ npm i larksr_websdk
36
+ ```
37
+
38
+ 2. plain html
39
+
40
+ ```html
41
+ <script src="larksr-web-sdk.min.js"></script>
42
+ ```
43
+
44
+ ### Use
45
+
46
+ Import websdk with plain html SDK under global object larksr_websdk.
47
+
48
+ Connect cloud resource and all event access with new LarkSR object.
49
+
50
+ > SDK default config html 100% height 100% width viewport. Auto handle input.
51
+
52
+ > SDK mainly contain loading page and cloud video page no other ui.efore start:
53
+
54
+ 1. Lark SR server address, exp:http://222.128.6.137:8181/
55
+ 2. SDK auth code,connect business@pingxingyun.com or register https://www.pingxingyun.com/console/#/
56
+ 3. App id from Lark SR admin server applist.
57
+
58
+ ```javascript
59
+ var client = new LarkSR({
60
+ // root html element
61
+ // WARNING not document.documentElement
62
+ rootElement: document.getElementById('container'),
63
+ // Sever address
64
+ serverAddress: "Lark Sever address",
65
+ // SDK ID or set by call initSDKAuthCode
66
+ // authCode: 'your SDK ID',
67
+ // test backgroud url
68
+ // loadingBgUrl: 'https://home-obs.pingxingyun.com/homePage_4_0/bg.jpg',
69
+ });
70
+ ```
71
+
72
+ Set sdk auth code.
73
+
74
+ ```javascript
75
+ client.initSDKAuthCode('Your SDK ID')
76
+ .then(() => {
77
+ // start connect;
78
+ client.connect({
79
+ // LarkSR cloud appid from LarkSR admin server.
80
+ // doc
81
+ // https://www.pingxingyun.com/online/api3_2.html?id=476
82
+ appliId: "appid from LarkSR admin"
83
+ })
84
+ .then(() => {
85
+ console.log('enter success');
86
+ })
87
+ .catch((e) => {
88
+ console.error(e);
89
+ });
90
+ })
91
+ .catch((e) => {
92
+ console.error(e);
93
+ });
94
+ // ...
95
+ // close connection.
96
+ // client.close();
97
+ // release DOM element.
98
+ // client.destroy();
99
+ ```
100
+
101
+ ### Doc
102
+
103
+ [LarkSR WebClient SDK](https://pingxingyun.github.io/en/webclient_sdk/)
104
+
105
+
106
+ ## Index
107
+
108
+ ### [Config](./config.md)
109
+ ### [LarkSR functions](./functions.md)
110
+ ### [LarkSR events](./events.md)
111
+ ### [LarkSR event codes](./event_codes.md)
112
+ ### [LarkSR member varibales](./member_variables.md)
113
+ ### [SDK ID encryption](./sdkid_encryption.md)
114
+ ### [Multi media share](./multi_media_3_2_401.md)
115
+ ### [SDK Update](./update.md)