@signageos/front-applet 8.1.3 → 8.2.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.
Files changed (85) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/bundle.js.map +1 -1
  3. package/docs/sos/browser.md +17 -17
  4. package/docs/sos/command.md +6 -6
  5. package/docs/sos/debug.md +7 -3
  6. package/docs/sos/deviceInfo.md +6 -2
  7. package/docs/sos/display.md +3 -3
  8. package/docs/sos/fileSystem.md +67 -67
  9. package/docs/sos/hardware/barcodeScanner.md +58 -15
  10. package/docs/sos/hardware/index.md +72 -15
  11. package/docs/sos/hardware/led.md +32 -3
  12. package/docs/sos/index.md +3 -3
  13. package/docs/sos/input.md +7 -7
  14. package/docs/sos/monitors.md +8 -0
  15. package/docs/sos/native/mdc.md +9 -9
  16. package/docs/sos/offline/cache.md +368 -28
  17. package/docs/sos/offline/index.md +127 -24
  18. package/docs/sos/osd.md +8 -1
  19. package/docs/sos/proofOfPlay.md +28 -0
  20. package/docs/sos/stream.md +78 -78
  21. package/docs/sos/sync.md +228 -21
  22. package/docs/sos/video.md +73 -73
  23. package/docs/sos_management/app.md +11 -11
  24. package/docs/sos_management/audio.md +3 -3
  25. package/docs/sos_management/firmware.md +11 -11
  26. package/docs/sos_management/index.md +10 -10
  27. package/docs/sos_management/network.md +10 -10
  28. package/docs/sos_management/package.md +28 -7
  29. package/docs/sos_management/power.md +27 -27
  30. package/docs/sos_management/screen.md +17 -17
  31. package/docs/sos_management/security.md +3 -3
  32. package/docs/sos_management/time.md +8 -8
  33. package/docs/sos_management/wifi.md +12 -12
  34. package/es6/FrontApplet/Debug/Debug.d.ts +1 -1
  35. package/es6/FrontApplet/Debug/Debug.js +1 -1
  36. package/es6/FrontApplet/DeviceInfo/DeviceInfo.d.ts +6 -2
  37. package/es6/FrontApplet/DeviceInfo/DeviceInfo.js +6 -2
  38. package/es6/FrontApplet/DeviceInfo/DeviceInfo.js.map +1 -1
  39. package/es6/FrontApplet/Display/Display.d.ts +1 -1
  40. package/es6/FrontApplet/Display/Display.js +1 -1
  41. package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.d.ts +36 -8
  42. package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js +34 -2
  43. package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js.map +1 -1
  44. package/es6/FrontApplet/Hardware/BarcodeScanner/IBarcodeScanner.d.ts +5 -0
  45. package/es6/FrontApplet/Hardware/Hardware.d.ts +34 -5
  46. package/es6/FrontApplet/Hardware/Hardware.js +33 -5
  47. package/es6/FrontApplet/Hardware/Hardware.js.map +1 -1
  48. package/es6/FrontApplet/Hardware/ISerialPort.d.ts +17 -1
  49. package/es6/FrontApplet/Hardware/ISerialPortDataMessage.d.ts +3 -0
  50. package/es6/FrontApplet/Hardware/ISerialPortOptions.d.ts +6 -0
  51. package/es6/FrontApplet/Hardware/ISerialPortOptions.js +3 -0
  52. package/es6/FrontApplet/Hardware/ISerialPortOptions.js.map +1 -1
  53. package/es6/FrontApplet/Hardware/Led/Led.d.ts +19 -3
  54. package/es6/FrontApplet/Hardware/Led/Led.js +19 -3
  55. package/es6/FrontApplet/Hardware/Led/Led.js.map +1 -1
  56. package/es6/FrontApplet/Management/IManagement.d.ts +1 -1
  57. package/es6/FrontApplet/Management/Package/IPackage.d.ts +1 -0
  58. package/es6/FrontApplet/Management/Package/Package.d.ts +10 -1
  59. package/es6/FrontApplet/Management/Package/Package.js +17 -1
  60. package/es6/FrontApplet/Management/Package/Package.js.map +1 -1
  61. package/es6/FrontApplet/Monitors/Monitors.d.ts +5 -0
  62. package/es6/FrontApplet/Monitors/Monitors.js +5 -0
  63. package/es6/FrontApplet/Monitors/Monitors.js.map +1 -1
  64. package/es6/FrontApplet/NativeCommands/MDC/INativeMdcCommands.d.ts +1 -0
  65. package/es6/FrontApplet/OSD/OSD.d.ts +5 -1
  66. package/es6/FrontApplet/OSD/OSD.js +5 -1
  67. package/es6/FrontApplet/OSD/OSD.js.map +1 -1
  68. package/es6/FrontApplet/Offline/Cache/Cache.d.ts +205 -28
  69. package/es6/FrontApplet/Offline/Cache/Cache.js +205 -28
  70. package/es6/FrontApplet/Offline/Cache/Cache.js.map +1 -1
  71. package/es6/FrontApplet/Offline/IAddFont.js.map +1 -1
  72. package/es6/FrontApplet/Offline/IFileType.js.map +1 -1
  73. package/es6/FrontApplet/Offline/ISaveFile.d.ts +3 -0
  74. package/es6/FrontApplet/Offline/ISaveFile.js.map +1 -1
  75. package/es6/FrontApplet/Offline/Offline.d.ts +58 -15
  76. package/es6/FrontApplet/Offline/Offline.js +56 -13
  77. package/es6/FrontApplet/Offline/Offline.js.map +1 -1
  78. package/es6/FrontApplet/ProofOfPlay/IRecordItemOptions.d.ts +3 -0
  79. package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.d.ts +15 -1
  80. package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js +15 -1
  81. package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js.map +1 -1
  82. package/es6/FrontApplet/Sync/Sync.d.ts +101 -18
  83. package/es6/FrontApplet/Sync/Sync.js +84 -10
  84. package/es6/FrontApplet/Sync/Sync.js.map +1 -1
  85. package/package.json +1 -1
@@ -4,16 +4,22 @@ sidebar_position: 0
4
4
 
5
5
  # offline
6
6
 
7
- <Admonition type="info" icon="" title="">
8
- Learn more about using this API [here](https://developers.signageos.io/docs/applets/api-guides/offline-content#caching-css--javascript-sosoffline)
9
- </Admonition>
7
+ Web-based applications often require additional assets to function, but downloading them every time is undesirable. The JS Applet SDK offers a wide range of APIs for storing different kinds of assets.
10
8
 
11
- The `sos.offline` API groups together methods for storing and using JS, CSS and font files.
9
+ Generally, there are four types of assets:
10
+ - CSS & JavaScript files
11
+ - Fonts
12
+ - Audio-visual content (image, video, and audio files)
13
+ - Arbitrary data (e.g., JSON files, plain text, binary data)
12
14
 
13
- :::warning
15
+ And the SDK also provides two different APIs:
16
+ - `sos.offline` & `sos.offline.cache`: A file system abstraction for caching files that are removed when the applet configuration is changed or the applet is reloaded. This method is usually preferred if the files can be re-downloaded.
17
+ - `sos.fileSystem`: Direct access to the file system. All files are stored permanently and are not removed when the applet configuration changes.
14
18
 
15
- Emulator has certain limitations while handling offline files. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405238997138)
19
+ Using the `sos.offline` and `sos.offline.cache` APIs allows you to ship an applet without content, including only basic bootstrapping code, and load the content dynamically. The content will then be available even when the device is offline.
16
20
 
21
+ :::warning
22
+ Emulator has certain limitations while handling offline files. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405238997138)
17
23
  :::
18
24
 
19
25
  ## Methods
@@ -22,9 +28,18 @@ Emulator has certain limitations while handling offline files. [Read more here](
22
28
 
23
29
  The `addFile()` method downloads the specified file and stores it locally.
24
30
 
31
+ CSS and JavaScript files are specific because they must be loaded with an HTML tag. The `sos.offline` API methods download, save, and append the resource to the web page. When adding a file, choose a unique identifier (`uid`) that should not change for the resource. The file will be overwritten if another file is added with the same `uid`.
32
+
33
+ :::info
34
+ The file URL must point to a file. If your URI leads to a redirect (e.g. from http to https), the API will not work.
35
+ :::
36
+
25
37
  ```ts expandable
26
38
  addFile(file: ISaveFile): Promise<void>;
27
39
  // show-more
40
+ /**
41
+ * Interface represents a file that can be saved to cache and loaded into applet resources.
42
+ */
28
43
  interface ISaveFile {
29
44
  uid: string;
30
45
  uri: string;
@@ -48,17 +63,33 @@ interface IElement {
48
63
 
49
64
  ```
50
65
 
66
+ #### Params
67
+
68
+ | Name | Type | Required | Description |
69
+ |----------------|------------------------------|------------------|-----------------------------------------------------------------------------------------------|
70
+ | `file` | `ISaveFile` | <div>Yes</div> | URI of the file to be downloaded. |
71
+ | `file.uid` | `string` | <div>Yes</div> | Unique file identifier is used for later file retrieval, must contain a-z,A-Z,0-9 characters. |
72
+ | `file.type` | `IFileType` | <div>Yes</div> | Type of the file, e.g. 'javascript', 'css', etc. |
73
+ | `file.headers` | `{ [key: string]: string; }` | <div>No</div> | HTTP headers to be sent with the request for the file. |
74
+ | `file.flags` | `IFlag[]` | <div>No</div> | Additional flags for appending stored files to the DOM or other operations |
75
+
76
+ #### Return value
77
+
78
+ Resolves when the file is added and the file is appended to the document when flags are used.
79
+
80
+ #### Possible errors
81
+
82
+
83
+ - If the `file` parameter is not an object.
84
+ - If the `file` parameter does not contain a valid parameters.
85
+
51
86
  #### Example
52
87
 
53
88
  ```ts
54
89
  await sos.offline.addFile({
55
- // Source URL
56
90
  uri: 'https://code.jquery.com/jquery-3.7.1.slim.min.js',
57
- // Unique identifier of the resource
58
91
  uid: 'jquery-3.7.1.slim.min.js',
59
- // Indicate that the downloaded file is a JavaScript file
60
92
  type: sos.offline.types.javascript,
61
- // After the file is downloaded, it will be appended to document.body
62
93
  flags: [sos.offline.flags.append(document.body)],
63
94
  });
64
95
  ```
@@ -67,11 +98,17 @@ await sos.offline.addFile({
67
98
 
68
99
  ### addFiles()
69
100
 
70
- The `addFiles()` method downloads the specified files and stores them locally. The order in which the files are downloaded and stored is **not** guaranteed.
101
+ The `addFiles()` method downloads the specified files and stores them locally.
102
+ The order in which the files are downloaded and stored is **not** guaranteed.
103
+
104
+ CSS and JavaScript files are specific because they must be loaded with an HTML tag. The `sos.offline` API methods download, save, and append the resource to the web page. When adding a file, choose a unique identifier (`uid`) that should not change for the resource. The file will be overwritten if another file is added with the same `uid`.
71
105
 
72
106
  ```ts expandable
73
- addFiles(files: ISaveFile[]): Promise<void[]>;
107
+ addFiles(files: ISaveFile[]): Promise<Awaited<void>[]>;
74
108
  // show-more
109
+ /**
110
+ * Interface represents a file that can be saved to cache and loaded into applet resources.
111
+ */
75
112
  interface ISaveFile {
76
113
  uid: string;
77
114
  uri: string;
@@ -95,6 +132,20 @@ interface IElement {
95
132
 
96
133
  ```
97
134
 
135
+ #### Params
136
+
137
+ | Name | Type | Required | Description |
138
+ |---------|---------------|------------------|-----------------------------------------------------|
139
+ | `files` | `ISaveFile[]` | <div>Yes</div> | Array of files to be downloaded and stored locally. |
140
+
141
+ #### Return value
142
+
143
+ Resolves when all files are added.
144
+
145
+ #### Possible errors
146
+
147
+ If the `files` parameter is not an array of objects.
148
+
98
149
  #### Example
99
150
 
100
151
  ```ts
@@ -111,15 +162,26 @@ await sos.offline.addFile([{
111
162
  }]);
112
163
  ```
113
164
 
165
+ :::note[GitHub Example]
166
+
167
+ - [ Example of Applet that save files and load them in one file](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/offline-resources)
168
+
169
+ :::
170
+
114
171
  <Separator />
115
172
 
116
173
  ### addFilesSync()
117
174
 
118
- The `addFilesSync()` method downloads the specified files and stores them locally. The order in which the files are downloaded and stored **is** guaranteed.
175
+ Method `addFile()` will allow you to load single resource into applet. If you want to load more resource, use `addFiles()`.
176
+
177
+ The order in which the files are downloaded and stored **is** guaranteed.
119
178
 
120
179
  ```ts expandable
121
180
  addFilesSync(files: ISaveFile[]): Promise<void>;
122
181
  // show-more
182
+ /**
183
+ * Interface represents a file that can be saved to cache and loaded into applet resources.
184
+ */
123
185
  interface ISaveFile {
124
186
  uid: string;
125
187
  uri: string;
@@ -143,6 +205,33 @@ interface IElement {
143
205
 
144
206
  ```
145
207
 
208
+ #### Params
209
+
210
+ | Name | Type | Required | Description |
211
+ |---------|---------------|------------------|-----------------------------------------------------|
212
+ | `files` | `ISaveFile[]` | <div>Yes</div> | Array of files to be downloaded and stored locally. |
213
+
214
+ #### Return value
215
+
216
+ Resolves when all files are added and the files are appended to the document when flags are used.
217
+
218
+ #### Possible errors
219
+
220
+ If the `files` parameter is not an array of objects
221
+
222
+ #### Example
223
+
224
+ ```ts
225
+ const file = { // File that will be loaded into an applet
226
+ "uri": "https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js",
227
+ "uid": "jquery-2.2.4.min.js",
228
+ "type": sos.offline.types.javascript,
229
+ "flags": [sos.offline.flags.append(document.body)]
230
+ }
231
+
232
+ await sos.offline.addFile(file); // And finally load file
233
+ ```
234
+
146
235
  <Separator />
147
236
 
148
237
  ### addFont()
@@ -183,14 +272,28 @@ type AnyString = string & {};
183
272
 
184
273
  #### Params
185
274
 
186
- | Name | Type | Description |
187
- |----------------------------------|----------------|-----------------------------------------------------------------------------------------------------|
188
- | `font.uid` | `string` | Unique file identifier is used for later file retrieval, must contain a-z,A-Z,0-9 and . characters. |
189
- | `font.append` | `HTMLElement` | Reference to HTMLElement where the generated font-face will resist. |
190
- | `font.fontFamily` | `string` | Font family that can be referenced from your CSS. |
191
- | `font.formats` | `IFontFormats` | URI where these formats will be downloaded from. |
192
- | `font.fontStretch` *(optional)* | `string` | Allows you to make text wider or narrower. |
193
- | `font.fontStyle` *(optional)* | `IFontStyle` | Specifies the font style for a text. (Either `normal`, `italic`, `oblique`, `initial` or `inherit`) |
194
- | `font.fontWeight` *(optional)* | `string` | Sets how thick or thin characters in text should be displayed |
195
- | `font.unicodeRange` *(optional)* | `string` | Defines the range of unicode characters the font supports, default value is "U+0-10FFFF" |
196
- | `font.formats` | `IFontFormats` | Dictionary of supported formats with its files |
275
+ | Name | Type | Required | Description |
276
+ |---------------------|----------------|------------------|-----------------------------------------------------------------------------------------------------|
277
+ | `font.uid` | `string` | <div>Yes</div> | Unique file identifier is used for later file retrieval, must contain a-z,A-Z,0-9 and . characters. |
278
+ | `font.append` | `HTMLElement` | <div>Yes</div> | Reference to HTMLElement where the generated font-face will resist. |
279
+ | `font.fontFamily` | `string` | <div>Yes</div> | Font family that can be referenced from your CSS. |
280
+ | `font.formats` | `IFontFormats` | <div>Yes</div> | URI where these formats will be downloaded from. |
281
+ | `font.fontStretch` | `string` | <div>No</div> | Allows you to make text wider or narrower. |
282
+ | `font.fontStyle` | `IFontStyle` | <div>No</div> | Specifies the font style for a text. (Either `normal`, `italic`, `oblique`, `initial` or `inherit`) |
283
+ | `font.fontWeight` | `string` | <div>No</div> | Sets how thick or thin characters in text should be displayed |
284
+ | `font.unicodeRange` | `string` | <div>No</div> | Defines the range of Unicode characters the font supports, default value is "U+0-10FFFF" |
285
+ | `font.formats` | `IFontFormats` | <div>Yes</div> | Dictionary of supported formats with its files |
286
+
287
+ #### Return value
288
+
289
+ Resolves when the font is added and the style element is appended to the document.
290
+
291
+ #### Possible errors
292
+
293
+ If the `font` parameter is not an object.
294
+
295
+ :::note[GitHub Example]
296
+
297
+ - [ Example of Applet that loads custom font](https://github.com/signageos/applet-examples/tree/master/examples/content-js-api/fonts)
298
+
299
+ :::
package/docs/sos/osd.md CHANGED
@@ -4,18 +4,25 @@ sidebar_position: 0
4
4
 
5
5
  # osd
6
6
 
7
- The `sos.osd` API groups together methods for working with the OSD (On Screen Display).
7
+ The `sos.osd` API groups together methods for working with the signageOS OSD (On Screen Display).
8
+
9
+ More information about the OSD can be found in the [OSD Introduction](https://docs.signageos.io/hc/en-us/articles/4405231839890-OSD-menu-by-signageOS)
8
10
 
9
11
  ## Methods
10
12
 
11
13
  ### showOSD()
12
14
 
13
15
  The `showOSD()` method opens the OSD without typing the pin.
16
+ Note: The OSD will be opened after 6 seconds.
14
17
 
15
18
  ```ts expandable
16
19
  showOSD(): Promise<void>;
17
20
  ```
18
21
 
22
+ #### Return value
23
+
24
+ A promise that resolves when the OSD is shown.
25
+
19
26
  ## API Example
20
27
 
21
28
  ```ts
@@ -4,6 +4,10 @@ sidebar_position: 0
4
4
 
5
5
  # proofOfPlay
6
6
 
7
+ The `sos.proofOfPlay` API provides methods for recording information about played content on the device.
8
+
9
+ Can be useful for tracking the playback of content, which can be used for analytics, reporting, or debugging purposes.
10
+
7
11
  ## Methods
8
12
 
9
13
  ### recordItemPlayed()
@@ -14,6 +18,9 @@ with additional metadata about current applet and device to signageOS.
14
18
  ```ts expandable
15
19
  recordItemPlayed(options: IRecordItemOptions): Promise<void>;
16
20
  // show-more
21
+ /**
22
+ * Interface representing options for a record item in the Proof of Play applet.
23
+ */
17
24
  interface IRecordItemOptions {
18
25
  name: string;
19
26
  customId?: string;
@@ -26,6 +33,27 @@ interface IRecordItemOptions {
26
33
 
27
34
  ```
28
35
 
36
+ #### Params
37
+
38
+ | Name | Type | Required | Description |
39
+ |---------------------------|--------------------------------------------|------------------|--------------------------------------------------------------------------------------------------------------|
40
+ | `options` | `IRecordItemOptions` | <div>Yes</div> | The options for recording the played item. |
41
+ | `options.name` | `string` | <div>Yes</div> | The name of the item that was played. |
42
+ | `options.customId` | `string` | <div>No</div> | An optional custom identifier for the item. |
43
+ | `options.type` | `"video" \| "image" \| "html" \| "custom"` | <div>No</div> | The type of the item that was played. It can be one of the following: `video`, `image`, `html`, or `custom`. |
44
+ | `options.tags` | `string[]` | <div>No</div> | An array of tags associated with the item. |
45
+ | `options.fileName` | `string` | <div>No</div> | The name of the file that was played. |
46
+ | `options.playbackSuccess` | `boolean` | <div>No</div> | A boolean indicating whether the playback was successful. |
47
+ | `options.errorMessage` | `string` | <div>No</div> | An optional error message if the playback was not successful. |
48
+
49
+ #### Return value
50
+
51
+ A promise that resolves when the item has been recorded.
52
+
53
+ #### Possible errors
54
+
55
+ If any of the provided options are invalid.
56
+
29
57
  ## API Example
30
58
 
31
59
  ```ts
@@ -109,9 +109,9 @@ interface IVideoProperties {
109
109
 
110
110
  #### Params
111
111
 
112
- | Name | Type | Description |
113
- |-----------|--------------------|-------------------------------------------------------|
114
- | `videoId` | `IVideoProperties` | The video properties of the stream to get tracks for. |
112
+ | Name | Type | Required | Description |
113
+ |-----------|--------------------|------------------|-------------------------------------------------------|
114
+ | `videoId` | `IVideoProperties` | <div>Yes</div> | The video properties of the stream to get tracks for. |
115
115
 
116
116
  #### Return value
117
117
 
@@ -263,9 +263,9 @@ type AnyString = string & {};
263
263
 
264
264
  #### Params
265
265
 
266
- | Name | Type | Description |
267
- |------------|----------------------------------------------|-----------------------------------------------------------|
268
- | `listener` | `(event: IStreamEvent<"connected">) => void` | The listener function to be called when the event occurs. |
266
+ | Name | Type | Required | Description |
267
+ |------------|----------------------------------------------|------------------|-----------------------------------------------------------|
268
+ | `listener` | `(event: IStreamEvent<"connected">) => void` | <div>Yes</div> | The listener function to be called when the event occurs. |
269
269
 
270
270
  #### Return value
271
271
 
@@ -419,9 +419,9 @@ type AnyString = string & {};
419
419
 
420
420
  #### Params
421
421
 
422
- | Name | Type | Description |
423
- |------------|-------------------------------------------------|-----------------------------------------------------------|
424
- | `listener` | `(event: IStreamEvent<"disconnected">) => void` | The listener function to be called when the event occurs. |
422
+ | Name | Type | Required | Description |
423
+ |------------|-------------------------------------------------|------------------|-----------------------------------------------------------|
424
+ | `listener` | `(event: IStreamEvent<"disconnected">) => void` | <div>Yes</div> | The listener function to be called when the event occurs. |
425
425
 
426
426
  #### Return value
427
427
 
@@ -584,9 +584,9 @@ type AnyString = string & {};
584
584
 
585
585
  #### Params
586
586
 
587
- | Name | Type | Description |
588
- |------------|--------------------------------------|-----------------------------------------------------------|
589
- | `listener` | `(event: IStreamErrorEvent) => void` | The listener function to be called when the event occurs. |
587
+ | Name | Type | Required | Description |
588
+ |------------|--------------------------------------|------------------|-----------------------------------------------------------|
589
+ | `listener` | `(event: IStreamErrorEvent) => void` | <div>Yes</div> | The listener function to be called when the event occurs. |
590
590
 
591
591
  #### Return value
592
592
 
@@ -739,9 +739,9 @@ type AnyString = string & {};
739
739
 
740
740
  #### Params
741
741
 
742
- | Name | Type | Description |
743
- |------------|------------------------------------------|-----------------------------------------------------------|
744
- | `listener` | `(event: IStreamEvent<"pause">) => void` | The listener function to be called when the event occurs. |
742
+ | Name | Type | Required | Description |
743
+ |------------|------------------------------------------|------------------|-----------------------------------------------------------|
744
+ | `listener` | `(event: IStreamEvent<"pause">) => void` | <div>Yes</div> | The listener function to be called when the event occurs. |
745
745
 
746
746
  #### Return value
747
747
 
@@ -894,9 +894,9 @@ type AnyString = string & {};
894
894
 
895
895
  #### Params
896
896
 
897
- | Name | Type | Description |
898
- |------------|-----------------------------------------|-----------------------------------------------------------|
899
- | `listener` | `(event: IStreamEvent<"play">) => void` | The listener function to be called when the event occurs. |
897
+ | Name | Type | Required | Description |
898
+ |------------|-----------------------------------------|------------------|-----------------------------------------------------------|
899
+ | `listener` | `(event: IStreamEvent<"play">) => void` | <div>Yes</div> | The listener function to be called when the event occurs. |
900
900
 
901
901
  #### Return value
902
902
 
@@ -1049,9 +1049,9 @@ type AnyString = string & {};
1049
1049
 
1050
1050
  #### Params
1051
1051
 
1052
- | Name | Type | Description |
1053
- |------------|--------------------------------------------|-----------------------------------------------------------|
1054
- | `listener` | `(event: IStreamEvent<"prepare">) => void` | The listener function to be called when the event occurs. |
1052
+ | Name | Type | Required | Description |
1053
+ |------------|--------------------------------------------|------------------|-----------------------------------------------------------|
1054
+ | `listener` | `(event: IStreamEvent<"prepare">) => void` | <div>Yes</div> | The listener function to be called when the event occurs. |
1055
1055
 
1056
1056
  #### Return value
1057
1057
 
@@ -1204,9 +1204,9 @@ type AnyString = string & {};
1204
1204
 
1205
1205
  #### Params
1206
1206
 
1207
- | Name | Type | Description |
1208
- |------------|-------------------------------------------|-----------------------------------------------------------|
1209
- | `listener` | `(event: IStreamEvent<"resume">) => void` | The listener function to be called when the event occurs. |
1207
+ | Name | Type | Required | Description |
1208
+ |------------|-------------------------------------------|------------------|-----------------------------------------------------------|
1209
+ | `listener` | `(event: IStreamEvent<"resume">) => void` | <div>Yes</div> | The listener function to be called when the event occurs. |
1210
1210
 
1211
1211
  #### Return value
1212
1212
 
@@ -1361,9 +1361,9 @@ type AnyString = string & {};
1361
1361
 
1362
1362
  #### Params
1363
1363
 
1364
- | Name | Type | Description |
1365
- |------------|-----------------------------------------|-----------------------------------------------------------|
1366
- | `listener` | `(event: IStreamEvent<"stop">) => void` | The listener function to be called when the event occurs. |
1364
+ | Name | Type | Required | Description |
1365
+ |------------|-----------------------------------------|------------------|-----------------------------------------------------------|
1366
+ | `listener` | `(event: IStreamEvent<"stop">) => void` | <div>Yes</div> | The listener function to be called when the event occurs. |
1367
1367
 
1368
1368
  #### Return value
1369
1369
 
@@ -1590,9 +1590,9 @@ type AnyString = string & {};
1590
1590
 
1591
1591
  #### Params
1592
1592
 
1593
- | Name | Type | Description |
1594
- |------------|----------------------------------------------|-----------------------------------------------------------|
1595
- | `listener` | `(event: IStreamTracksChangedEvent) => void` | The listener function to be called when the event occurs. |
1593
+ | Name | Type | Required | Description |
1594
+ |------------|----------------------------------------------|------------------|-----------------------------------------------------------|
1595
+ | `listener` | `(event: IStreamTracksChangedEvent) => void` | <div>Yes</div> | The listener function to be called when the event occurs. |
1596
1596
 
1597
1597
  #### Return value
1598
1598
 
@@ -1625,13 +1625,13 @@ pause(uri: string, x: number, y: number, width: number, height: number): Promise
1625
1625
 
1626
1626
  #### Params
1627
1627
 
1628
- | Name | Type | Description |
1629
- |----------|----------|------------------------------------------------|
1630
- | `uri` | `string` | Network address where the stream is available. |
1631
- | `x` | `number` | Stream x-position on the screen |
1632
- | `y` | `number` | Stream y-position on the screen |
1633
- | `width` | `number` | Stream width on the screen |
1634
- | `height` | `number` | Stream height on the screen |
1628
+ | Name | Type | Required | Description |
1629
+ |----------|----------|------------------|------------------------------------------------|
1630
+ | `uri` | `string` | <div>Yes</div> | Network address where the stream is available. |
1631
+ | `x` | `number` | <div>Yes</div> | Stream x-position on the screen |
1632
+ | `y` | `number` | <div>Yes</div> | Stream y-position on the screen |
1633
+ | `width` | `number` | <div>Yes</div> | Stream width on the screen |
1634
+ | `height` | `number` | <div>Yes</div> | Stream height on the screen |
1635
1635
 
1636
1636
  #### Return value
1637
1637
 
@@ -1715,14 +1715,14 @@ interface IOptions {
1715
1715
 
1716
1716
  #### Params
1717
1717
 
1718
- | Name | Type | Description |
1719
- |------------------------|---------------------------------------------------------------------------|------------------------------------------------|
1720
- | `uri` | `string` | Network address where the stream is available. |
1721
- | `x` | `number` | Stream x-position on the screen |
1722
- | `y` | `number` | Stream y-position on the screen |
1723
- | `width` | `number` | Stream width on the screen |
1724
- | `height` | `number` | Stream height on the screen |
1725
- | `options` *(optional)* | `IStreamOptions \| "HLS" \| "RTP" \| "HTTP" \| "UDP" \| "RTMP" \| "RTSP"` | Additional options for the stream |
1718
+ | Name | Type | Required | Description |
1719
+ |-----------|---------------------------------------------------------------------------|------------------|------------------------------------------------|
1720
+ | `uri` | `string` | <div>Yes</div> | Network address where the stream is available. |
1721
+ | `x` | `number` | <div>Yes</div> | Stream x-position on the screen |
1722
+ | `y` | `number` | <div>Yes</div> | Stream y-position on the screen |
1723
+ | `width` | `number` | <div>Yes</div> | Stream width on the screen |
1724
+ | `height` | `number` | <div>Yes</div> | Stream height on the screen |
1725
+ | `options` | `IStreamOptions \| "HLS" \| "RTP" \| "HTTP" \| "UDP" \| "RTMP" \| "RTSP"` | <div>No</div> | Additional options for the stream |
1726
1726
 
1727
1727
  #### Return value
1728
1728
 
@@ -1858,14 +1858,14 @@ interface IOptions {
1858
1858
 
1859
1859
  #### Params
1860
1860
 
1861
- | Name | Type | Description |
1862
- |------------------------|----------------------------------------------------------------------------------|------------------------------------------------|
1863
- | `uri` | `string` | Network address where the stream is available. |
1864
- | `x` | `number` | Stream x-position on the screen |
1865
- | `y` | `number` | Stream y-position on the screen |
1866
- | `width` | `number` | Stream width on the screen |
1867
- | `height` | `number` | Stream height on the screen |
1868
- | `options` *(optional)* | `IStreamPrepareOptions \| "HLS" \| "RTP" \| "HTTP" \| "UDP" \| "RTMP" \| "RTSP"` | Additional options for the stream |
1861
+ | Name | Type | Required | Description |
1862
+ |-----------|----------------------------------------------------------------------------------|------------------|------------------------------------------------|
1863
+ | `uri` | `string` | <div>Yes</div> | Network address where the stream is available. |
1864
+ | `x` | `number` | <div>Yes</div> | Stream x-position on the screen |
1865
+ | `y` | `number` | <div>Yes</div> | Stream y-position on the screen |
1866
+ | `width` | `number` | <div>Yes</div> | Stream width on the screen |
1867
+ | `height` | `number` | <div>Yes</div> | Stream height on the screen |
1868
+ | `options` | `IStreamPrepareOptions \| "HLS" \| "RTP" \| "HTTP" \| "UDP" \| "RTMP" \| "RTSP"` | <div>No</div> | Additional options for the stream |
1869
1869
 
1870
1870
  #### Return value
1871
1871
 
@@ -1936,11 +1936,11 @@ type TrackType = 'TEXT' | 'AUDIO' | 'VIDEO';
1936
1936
 
1937
1937
  #### Params
1938
1938
 
1939
- | Name | Type | Description |
1940
- |------------------------|--------------------|--------------------------------------------------------------------------------------------------|
1941
- | `videoId` | `IVideoProperties` | The video properties of the stream to reset track for. |
1942
- | `trackType` | `TrackType` | The type of the track to reset (e.g., 'TEXT', 'AUDIO', 'VIDEO'). |
1943
- | `groupId` *(optional)* | `string` | The group ID of the track to reset. If not provided, the first track in the group will be reset. |
1939
+ | Name | Type | Required | Description |
1940
+ |-------------|--------------------|------------------|--------------------------------------------------------------------------------------------------|
1941
+ | `videoId` | `IVideoProperties` | <div>Yes</div> | The video properties of the stream to reset track for. |
1942
+ | `trackType` | `TrackType` | <div>Yes</div> | The type of the track to reset (e.g., 'TEXT', 'AUDIO', 'VIDEO'). |
1943
+ | `groupId` | `string` | <div>No</div> | The group ID of the track to reset. If not provided, the first track in the group will be reset. |
1944
1944
 
1945
1945
  #### Return value
1946
1946
 
@@ -1971,13 +1971,13 @@ resume(uri: string, x: number, y: number, width: number, height: number): Promis
1971
1971
 
1972
1972
  #### Params
1973
1973
 
1974
- | Name | Type | Description |
1975
- |----------|----------|------------------------------------------------|
1976
- | `uri` | `string` | Network address where the stream is available. |
1977
- | `x` | `number` | Stream x-position on the screen |
1978
- | `y` | `number` | Stream y-position on the screen |
1979
- | `width` | `number` | Stream width on the screen |
1980
- | `height` | `number` | Stream height on the screen |
1974
+ | Name | Type | Required | Description |
1975
+ |----------|----------|------------------|------------------------------------------------|
1976
+ | `uri` | `string` | <div>Yes</div> | Network address where the stream is available. |
1977
+ | `x` | `number` | <div>Yes</div> | Stream x-position on the screen |
1978
+ | `y` | `number` | <div>Yes</div> | Stream y-position on the screen |
1979
+ | `width` | `number` | <div>Yes</div> | Stream width on the screen |
1980
+ | `height` | `number` | <div>Yes</div> | Stream height on the screen |
1981
1981
 
1982
1982
  #### Return value
1983
1983
 
@@ -2026,12 +2026,12 @@ type TrackType = 'TEXT' | 'AUDIO' | 'VIDEO';
2026
2026
 
2027
2027
  #### Params
2028
2028
 
2029
- | Name | Type | Description |
2030
- |--------------|--------------------|-------------------------------------------------------------------|
2031
- | `videoId` | `IVideoProperties` | The video properties of the stream to select track for. |
2032
- | `trackType` | `TrackType` | The type of the track to select (e.g., 'TEXT', 'AUDIO', 'VIDEO'). |
2033
- | `groupId` | `string` | The group ID of the track to select. |
2034
- | `trackIndex` | `number` | The index of the track to select within the group. |
2029
+ | Name | Type | Required | Description |
2030
+ |--------------|--------------------|------------------|-------------------------------------------------------------------|
2031
+ | `videoId` | `IVideoProperties` | <div>Yes</div> | The video properties of the stream to select track for. |
2032
+ | `trackType` | `TrackType` | <div>Yes</div> | The type of the track to select (e.g., 'TEXT', 'AUDIO', 'VIDEO'). |
2033
+ | `groupId` | `string` | <div>Yes</div> | The group ID of the track to select. |
2034
+ | `trackIndex` | `number` | <div>Yes</div> | The index of the track to select within the group. |
2035
2035
 
2036
2036
  #### Return value
2037
2037
 
@@ -2073,13 +2073,13 @@ stop(uri: string, x: number, y: number, width: number, height: number): Promise<
2073
2073
 
2074
2074
  #### Params
2075
2075
 
2076
- | Name | Type | Description |
2077
- |----------|----------|------------------------------------------------|
2078
- | `uri` | `string` | Network address where the stream is available. |
2079
- | `x` | `number` | Stream x-position on the screen |
2080
- | `y` | `number` | Stream y-position on the screen |
2081
- | `width` | `number` | Stream width on the screen |
2082
- | `height` | `number` | Stream height on the screen |
2076
+ | Name | Type | Required | Description |
2077
+ |----------|----------|------------------|------------------------------------------------|
2078
+ | `uri` | `string` | <div>Yes</div> | Network address where the stream is available. |
2079
+ | `x` | `number` | <div>Yes</div> | Stream x-position on the screen |
2080
+ | `y` | `number` | <div>Yes</div> | Stream y-position on the screen |
2081
+ | `width` | `number` | <div>Yes</div> | Stream width on the screen |
2082
+ | `height` | `number` | <div>Yes</div> | Stream height on the screen |
2083
2083
 
2084
2084
  #### Return value
2085
2085