@signageos/front-applet 8.5.3 → 8.7.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 (59) hide show
  1. package/dist/bundle.js +7 -7
  2. package/dist/bundle.js.map +1 -1
  3. package/docs/fpath/index.md +0 -270
  4. package/docs/sos/browser.md +0 -14
  5. package/docs/sos/command.md +0 -18
  6. package/docs/sos/deviceInfo.md +0 -17
  7. package/docs/sos/display.md +0 -8
  8. package/docs/sos/fileSystem.md +0 -488
  9. package/docs/sos/hardware/index.md +2 -49
  10. package/docs/sos/input.md +0 -12
  11. package/docs/sos/native/mdc.md +1 -35
  12. package/docs/sos/native/nmc.md +127 -0
  13. package/docs/sos/offline/cache.md +0 -6
  14. package/docs/sos/offline/index.md +0 -27
  15. package/docs/sos/proofOfPlay.md +0 -10
  16. package/docs/sos/stream.md +11 -781
  17. package/docs/sos/sync.md +5 -21
  18. package/docs/sos/video.md +0 -86
  19. package/docs/sos_management/app.md +32 -29
  20. package/docs/sos_management/index.md +0 -8
  21. package/docs/sos_management/network.md +0 -19
  22. package/docs/sos_management/os.md +0 -11
  23. package/docs/sos_management/power.md +50 -30
  24. package/docs/sos_management/screen.md +0 -7
  25. package/docs/sos_management/time.md +0 -3
  26. package/docs/sos_management/wifi.md +0 -101
  27. package/es6/FrontApplet/Management/App/App.d.ts +34 -24
  28. package/es6/FrontApplet/Management/App/App.js.map +1 -1
  29. package/es6/FrontApplet/Management/Power/IPower.d.ts +32 -10
  30. package/es6/FrontApplet/Management/Power/IPower.js +3 -0
  31. package/es6/FrontApplet/Management/Power/IPower.js.map +1 -1
  32. package/es6/FrontApplet/Management/Power/Power.d.ts +12 -8
  33. package/es6/FrontApplet/Management/Power/Power.js +23 -32
  34. package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
  35. package/es6/FrontApplet/Management/Power/PowerHelper.d.ts +8 -3
  36. package/es6/FrontApplet/Management/Power/PowerHelper.js +32 -0
  37. package/es6/FrontApplet/Management/Power/PowerHelper.js.map +1 -1
  38. package/es6/FrontApplet/Management/helpers/ProprietaryTimerHelper.d.ts +2 -1
  39. package/es6/FrontApplet/Management/helpers/TimerHelper.d.ts +3 -1
  40. package/es6/FrontApplet/Management/helpers/TimerHelper.js +2 -0
  41. package/es6/FrontApplet/Management/helpers/TimerHelper.js.map +1 -1
  42. package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.d.ts +4 -0
  43. package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.js +66 -0
  44. package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.js.map +1 -0
  45. package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.d.ts +21 -0
  46. package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.js +3 -0
  47. package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.js.map +1 -0
  48. package/es6/FrontApplet/NativeCommands/NMC/Nmc.d.ts +50 -0
  49. package/es6/FrontApplet/NativeCommands/NMC/Nmc.js +77 -0
  50. package/es6/FrontApplet/NativeCommands/NMC/Nmc.js.map +1 -0
  51. package/es6/FrontApplet/NativeCommands/NativeCommands.d.ts +2 -0
  52. package/es6/FrontApplet/NativeCommands/NativeCommands.js +3 -0
  53. package/es6/FrontApplet/NativeCommands/NativeCommands.js.map +1 -1
  54. package/es6/FrontApplet/Sync/Sync.d.ts +6 -0
  55. package/es6/FrontApplet/Sync/Sync.js +3 -1
  56. package/es6/FrontApplet/Sync/Sync.js.map +1 -1
  57. package/es6/FrontApplet/Video/IOptions.d.ts +5 -0
  58. package/es6/Monitoring/Management/Power/powerCommands.d.ts +3 -3
  59. package/package.json +1 -1
@@ -40,63 +40,26 @@ interface ITrackVideoInfo extends ITrack<'VIDEO'> {
40
40
  };
41
41
  }
42
42
 
43
- /**
44
- * Interface representing stream track information.
45
- */
46
43
  interface ITrack<T extends TrackType> {
47
- /**
48
- * Type of the track, e.g., "VIDEO", "AUDIO", "TEXT".
49
- */
50
44
  trackType: T;
51
- /**
52
- * MIME type of the track, e.g., "video/mp4", "audio/mp3", "text/vtt".
53
- */
54
45
  mimeType: string;
55
- /**
56
- * Unique identifier for the track group.
57
- * This is used to group tracks of the same type (e.g., multiple audio tracks).
58
- */
59
46
  groupId: string;
60
- /**
61
- * Unique identifier for the track.
62
- */
63
47
  trackIndex: number;
64
- /**
65
- * If the track is selected for playback.
66
- */
67
48
  selected: boolean;
68
- /**
69
- * Selected language of subtitles or captions.
70
- */
71
49
  language: string | null;
72
- /**
73
- * If the track is supported by the device.
74
- */
75
50
  supported: boolean;
76
51
  }
77
52
 
78
- /**
79
- * Available track types for media streams.
80
- */
81
53
  type TrackType = 'TEXT' | 'AUDIO' | 'VIDEO';
82
54
 
83
55
  interface ITrackAudioInfo extends ITrack<'AUDIO'> {
84
- /**
85
- * Number of audio channels.
86
- */
87
56
  channelCount: number;
88
57
  }
89
58
 
90
59
  interface ITrackTextInfo extends ITrack<'TEXT'> {
91
- /**
92
- * Selected subtitles or captions.
93
- */
94
60
  selection: string[];
95
61
  }
96
62
 
97
- /**
98
- * Video properties interface for defining the properties of a played video.
99
- */
100
63
  interface IVideoProperties {
101
64
  uri: string;
102
65
  x: number;
@@ -135,31 +98,13 @@ The `onConnected()` method sets up a listener, which is called whenever a stream
135
98
  ```ts expandable
136
99
  onConnected(listener: (event: IStreamEvent<'connected'>) => void): void;
137
100
  // show-more
138
- /**
139
- * Generic interface for stream events.
140
- */
141
101
  interface IStreamEvent<T extends StreamEventType> {
142
- /**
143
- * Type of the event.
144
- * @see {@link StreamEventType}
145
- */
146
102
  type: T;
147
- /**
148
- * Additional stream properties that are relevant to the event.
149
- * If there is more than one stream active, this will contain the properties of the stream that emitted the event.
150
- */
151
103
  srcArguments: IStreamEventProperties;
152
104
  }
153
105
 
154
- /**
155
- * List of all possible stream event types.
156
- */
157
106
  type StreamEventType = 'connected' | 'disconnected' | 'error' | 'stop' | 'play' | 'prepare' | 'pause' | 'resume' | 'tracks_changed';
158
107
 
159
- /**
160
- * Returned properties of stream events that occur on stream events:
161
- * connected, disconnected, error, stop, tracks_changed
162
- */
163
108
  interface IStreamEventProperties {
164
109
  uri: string;
165
110
  x: number;
@@ -167,88 +112,39 @@ interface IStreamEventProperties {
167
112
  width: number;
168
113
  height: number;
169
114
  protocol?: keyof typeof StreamProtocol | string;
170
- /**
171
- * @deprecated Events should not return options objects. Instead, they should return protocol {@link protocol}
172
- */
173
115
  options?: IStreamOptions | IStreamPrepareOptions;
174
116
  }
175
117
 
176
- /**
177
- * Available options for stream function `play()`.
178
- */
179
118
  interface IStreamOptions extends IOptions {
180
- /**
181
- * Protocol that the stream is using.
182
- *
183
- * Note: Not all protocols are supported by all devices.
184
- *
185
- * Allowed values are: HLS, RTP, HTTP, UDP, RTMP, RTSP
186
- */
187
119
  protocol?: keyof typeof StreamProtocol | string;
188
- /**
189
- * Automatically reconnect stream when it disconnects.
190
- * @default false
191
- */
192
120
  autoReconnect?: boolean;
193
- /**
194
- * Interval in milliseconds between reconnect attempts.
195
- * @default 30000
196
- */
197
121
  autoReconnectInterval?: number;
122
+ lowLatency?: boolean;
198
123
  }
199
124
 
200
125
  interface IOptions {
201
- /** @deprecated */
202
126
  '4k'?: boolean;
203
- /**
204
- * Prepare stream or video in background.
205
- * @default false
206
- */
207
127
  background?: boolean;
208
- /**
209
- * Initial volume value of the stream.
210
- * @default 100
211
- */
212
128
  volume?: number;
213
129
  }
214
130
 
215
- /**
216
- * Available options for stream function `prepare()`.
217
- */
218
131
  interface IStreamPrepareOptions extends IStreamOptions {
219
- /**
220
- * Track selection for subtitles, audio, and video.
221
- */
222
132
  trackSelection?: {
223
- /** Maximum number of audio channels to play */
224
133
  maxAudioChannelCount?: number;
225
- /** Minimum video size to play */
226
134
  minVideoSize?: {
227
135
  width: number;
228
136
  height: number;
229
137
  };
230
- /** Maximum video size to play */
231
138
  maxVideoSize?: {
232
139
  width: number;
233
140
  height: number;
234
141
  };
235
- /** Preferred audio languages to play */
236
142
  preferredAudioLanguages?: string[];
237
- /** Preferred text languages to play */
238
143
  preferredTextLanguages?: string[];
239
144
  };
240
- /**
241
- * DRM (Digital Rights Management) options for the stream.
242
- */
243
145
  drm?: {
244
146
  scheme: DrmScheme;
245
- /**
246
- * URI to the license server.
247
- */
248
147
  licenseUri: string;
249
- /**
250
- * Additional headers to include in the license request.
251
- */
252
148
  licenseRequestHeaders: {
253
149
  [key: string]: string;
254
150
  };
@@ -291,31 +187,13 @@ Usually when source URI is not available anymore or when the stream is stopped.
291
187
  ```ts expandable
292
188
  onDisconnected(listener: (event: IStreamEvent<'disconnected'>) => void): void;
293
189
  // show-more
294
- /**
295
- * Generic interface for stream events.
296
- */
297
190
  interface IStreamEvent<T extends StreamEventType> {
298
- /**
299
- * Type of the event.
300
- * @see {@link StreamEventType}
301
- */
302
191
  type: T;
303
- /**
304
- * Additional stream properties that are relevant to the event.
305
- * If there is more than one stream active, this will contain the properties of the stream that emitted the event.
306
- */
307
192
  srcArguments: IStreamEventProperties;
308
193
  }
309
194
 
310
- /**
311
- * List of all possible stream event types.
312
- */
313
195
  type StreamEventType = 'connected' | 'disconnected' | 'error' | 'stop' | 'play' | 'prepare' | 'pause' | 'resume' | 'tracks_changed';
314
196
 
315
- /**
316
- * Returned properties of stream events that occur on stream events:
317
- * connected, disconnected, error, stop, tracks_changed
318
- */
319
197
  interface IStreamEventProperties {
320
198
  uri: string;
321
199
  x: number;
@@ -323,88 +201,39 @@ interface IStreamEventProperties {
323
201
  width: number;
324
202
  height: number;
325
203
  protocol?: keyof typeof StreamProtocol | string;
326
- /**
327
- * @deprecated Events should not return options objects. Instead, they should return protocol {@link protocol}
328
- */
329
204
  options?: IStreamOptions | IStreamPrepareOptions;
330
205
  }
331
206
 
332
- /**
333
- * Available options for stream function `play()`.
334
- */
335
207
  interface IStreamOptions extends IOptions {
336
- /**
337
- * Protocol that the stream is using.
338
- *
339
- * Note: Not all protocols are supported by all devices.
340
- *
341
- * Allowed values are: HLS, RTP, HTTP, UDP, RTMP, RTSP
342
- */
343
208
  protocol?: keyof typeof StreamProtocol | string;
344
- /**
345
- * Automatically reconnect stream when it disconnects.
346
- * @default false
347
- */
348
209
  autoReconnect?: boolean;
349
- /**
350
- * Interval in milliseconds between reconnect attempts.
351
- * @default 30000
352
- */
353
210
  autoReconnectInterval?: number;
211
+ lowLatency?: boolean;
354
212
  }
355
213
 
356
214
  interface IOptions {
357
- /** @deprecated */
358
215
  '4k'?: boolean;
359
- /**
360
- * Prepare stream or video in background.
361
- * @default false
362
- */
363
216
  background?: boolean;
364
- /**
365
- * Initial volume value of the stream.
366
- * @default 100
367
- */
368
217
  volume?: number;
369
218
  }
370
219
 
371
- /**
372
- * Available options for stream function `prepare()`.
373
- */
374
220
  interface IStreamPrepareOptions extends IStreamOptions {
375
- /**
376
- * Track selection for subtitles, audio, and video.
377
- */
378
221
  trackSelection?: {
379
- /** Maximum number of audio channels to play */
380
222
  maxAudioChannelCount?: number;
381
- /** Minimum video size to play */
382
223
  minVideoSize?: {
383
224
  width: number;
384
225
  height: number;
385
226
  };
386
- /** Maximum video size to play */
387
227
  maxVideoSize?: {
388
228
  width: number;
389
229
  height: number;
390
230
  };
391
- /** Preferred audio languages to play */
392
231
  preferredAudioLanguages?: string[];
393
- /** Preferred text languages to play */
394
232
  preferredTextLanguages?: string[];
395
233
  };
396
- /**
397
- * DRM (Digital Rights Management) options for the stream.
398
- */
399
234
  drm?: {
400
235
  scheme: DrmScheme;
401
- /**
402
- * URI to the license server.
403
- */
404
236
  licenseUri: string;
405
- /**
406
- * Additional headers to include in the license request.
407
- */
408
237
  licenseRequestHeaders: {
409
238
  [key: string]: string;
410
239
  };
@@ -446,41 +275,17 @@ The `onError()` method sets up a listener, which is called whenever an unexpecte
446
275
  ```ts expandable
447
276
  onError(listener: (event: IStreamErrorEvent) => void): void;
448
277
  // show-more
449
- /**
450
- * Stream Error Event, which is emitted when an error occurs during stream operations.
451
- */
452
278
  interface IStreamErrorEvent extends IStreamEvent<'error'> {
453
- /**
454
- * Additional info about the error that occurred, if any info is available.
455
- */
456
279
  errorMessage?: string | undefined;
457
280
  }
458
281
 
459
- /**
460
- * Generic interface for stream events.
461
- */
462
282
  interface IStreamEvent<T extends StreamEventType> {
463
- /**
464
- * Type of the event.
465
- * @see {@link StreamEventType}
466
- */
467
283
  type: T;
468
- /**
469
- * Additional stream properties that are relevant to the event.
470
- * If there is more than one stream active, this will contain the properties of the stream that emitted the event.
471
- */
472
284
  srcArguments: IStreamEventProperties;
473
285
  }
474
286
 
475
- /**
476
- * List of all possible stream event types.
477
- */
478
287
  type StreamEventType = 'connected' | 'disconnected' | 'error' | 'stop' | 'play' | 'prepare' | 'pause' | 'resume' | 'tracks_changed';
479
288
 
480
- /**
481
- * Returned properties of stream events that occur on stream events:
482
- * connected, disconnected, error, stop, tracks_changed
483
- */
484
289
  interface IStreamEventProperties {
485
290
  uri: string;
486
291
  x: number;
@@ -488,88 +293,39 @@ interface IStreamEventProperties {
488
293
  width: number;
489
294
  height: number;
490
295
  protocol?: keyof typeof StreamProtocol | string;
491
- /**
492
- * @deprecated Events should not return options objects. Instead, they should return protocol {@link protocol}
493
- */
494
296
  options?: IStreamOptions | IStreamPrepareOptions;
495
297
  }
496
298
 
497
- /**
498
- * Available options for stream function `play()`.
499
- */
500
299
  interface IStreamOptions extends IOptions {
501
- /**
502
- * Protocol that the stream is using.
503
- *
504
- * Note: Not all protocols are supported by all devices.
505
- *
506
- * Allowed values are: HLS, RTP, HTTP, UDP, RTMP, RTSP
507
- */
508
300
  protocol?: keyof typeof StreamProtocol | string;
509
- /**
510
- * Automatically reconnect stream when it disconnects.
511
- * @default false
512
- */
513
301
  autoReconnect?: boolean;
514
- /**
515
- * Interval in milliseconds between reconnect attempts.
516
- * @default 30000
517
- */
518
302
  autoReconnectInterval?: number;
303
+ lowLatency?: boolean;
519
304
  }
520
305
 
521
306
  interface IOptions {
522
- /** @deprecated */
523
307
  '4k'?: boolean;
524
- /**
525
- * Prepare stream or video in background.
526
- * @default false
527
- */
528
308
  background?: boolean;
529
- /**
530
- * Initial volume value of the stream.
531
- * @default 100
532
- */
533
309
  volume?: number;
534
310
  }
535
311
 
536
- /**
537
- * Available options for stream function `prepare()`.
538
- */
539
312
  interface IStreamPrepareOptions extends IStreamOptions {
540
- /**
541
- * Track selection for subtitles, audio, and video.
542
- */
543
313
  trackSelection?: {
544
- /** Maximum number of audio channels to play */
545
314
  maxAudioChannelCount?: number;
546
- /** Minimum video size to play */
547
315
  minVideoSize?: {
548
316
  width: number;
549
317
  height: number;
550
318
  };
551
- /** Maximum video size to play */
552
319
  maxVideoSize?: {
553
320
  width: number;
554
321
  height: number;
555
322
  };
556
- /** Preferred audio languages to play */
557
323
  preferredAudioLanguages?: string[];
558
- /** Preferred text languages to play */
559
324
  preferredTextLanguages?: string[];
560
325
  };
561
- /**
562
- * DRM (Digital Rights Management) options for the stream.
563
- */
564
326
  drm?: {
565
327
  scheme: DrmScheme;
566
- /**
567
- * URI to the license server.
568
- */
569
328
  licenseUri: string;
570
- /**
571
- * Additional headers to include in the license request.
572
- */
573
329
  licenseRequestHeaders: {
574
330
  [key: string]: string;
575
331
  };
@@ -611,31 +367,13 @@ The `onPause()` method sets up a listener, which is called whenever a stream is
611
367
  ```ts expandable
612
368
  onPause(listener: (event: IStreamEvent<'pause'>) => void): void;
613
369
  // show-more
614
- /**
615
- * Generic interface for stream events.
616
- */
617
370
  interface IStreamEvent<T extends StreamEventType> {
618
- /**
619
- * Type of the event.
620
- * @see {@link StreamEventType}
621
- */
622
371
  type: T;
623
- /**
624
- * Additional stream properties that are relevant to the event.
625
- * If there is more than one stream active, this will contain the properties of the stream that emitted the event.
626
- */
627
372
  srcArguments: IStreamEventProperties;
628
373
  }
629
374
 
630
- /**
631
- * List of all possible stream event types.
632
- */
633
375
  type StreamEventType = 'connected' | 'disconnected' | 'error' | 'stop' | 'play' | 'prepare' | 'pause' | 'resume' | 'tracks_changed';
634
376
 
635
- /**
636
- * Returned properties of stream events that occur on stream events:
637
- * connected, disconnected, error, stop, tracks_changed
638
- */
639
377
  interface IStreamEventProperties {
640
378
  uri: string;
641
379
  x: number;
@@ -643,88 +381,39 @@ interface IStreamEventProperties {
643
381
  width: number;
644
382
  height: number;
645
383
  protocol?: keyof typeof StreamProtocol | string;
646
- /**
647
- * @deprecated Events should not return options objects. Instead, they should return protocol {@link protocol}
648
- */
649
384
  options?: IStreamOptions | IStreamPrepareOptions;
650
385
  }
651
386
 
652
- /**
653
- * Available options for stream function `play()`.
654
- */
655
387
  interface IStreamOptions extends IOptions {
656
- /**
657
- * Protocol that the stream is using.
658
- *
659
- * Note: Not all protocols are supported by all devices.
660
- *
661
- * Allowed values are: HLS, RTP, HTTP, UDP, RTMP, RTSP
662
- */
663
388
  protocol?: keyof typeof StreamProtocol | string;
664
- /**
665
- * Automatically reconnect stream when it disconnects.
666
- * @default false
667
- */
668
389
  autoReconnect?: boolean;
669
- /**
670
- * Interval in milliseconds between reconnect attempts.
671
- * @default 30000
672
- */
673
390
  autoReconnectInterval?: number;
391
+ lowLatency?: boolean;
674
392
  }
675
393
 
676
394
  interface IOptions {
677
- /** @deprecated */
678
395
  '4k'?: boolean;
679
- /**
680
- * Prepare stream or video in background.
681
- * @default false
682
- */
683
396
  background?: boolean;
684
- /**
685
- * Initial volume value of the stream.
686
- * @default 100
687
- */
688
397
  volume?: number;
689
398
  }
690
399
 
691
- /**
692
- * Available options for stream function `prepare()`.
693
- */
694
400
  interface IStreamPrepareOptions extends IStreamOptions {
695
- /**
696
- * Track selection for subtitles, audio, and video.
697
- */
698
401
  trackSelection?: {
699
- /** Maximum number of audio channels to play */
700
402
  maxAudioChannelCount?: number;
701
- /** Minimum video size to play */
702
403
  minVideoSize?: {
703
404
  width: number;
704
405
  height: number;
705
406
  };
706
- /** Maximum video size to play */
707
407
  maxVideoSize?: {
708
408
  width: number;
709
409
  height: number;
710
410
  };
711
- /** Preferred audio languages to play */
712
411
  preferredAudioLanguages?: string[];
713
- /** Preferred text languages to play */
714
412
  preferredTextLanguages?: string[];
715
413
  };
716
- /**
717
- * DRM (Digital Rights Management) options for the stream.
718
- */
719
414
  drm?: {
720
415
  scheme: DrmScheme;
721
- /**
722
- * URI to the license server.
723
- */
724
416
  licenseUri: string;
725
- /**
726
- * Additional headers to include in the license request.
727
- */
728
417
  licenseRequestHeaders: {
729
418
  [key: string]: string;
730
419
  };
@@ -766,31 +455,13 @@ The `onPlay()` method sets up a listener, which is called whenever a stream star
766
455
  ```ts expandable
767
456
  onPlay(listener: (event: IStreamEvent<'play'>) => void): void;
768
457
  // show-more
769
- /**
770
- * Generic interface for stream events.
771
- */
772
458
  interface IStreamEvent<T extends StreamEventType> {
773
- /**
774
- * Type of the event.
775
- * @see {@link StreamEventType}
776
- */
777
459
  type: T;
778
- /**
779
- * Additional stream properties that are relevant to the event.
780
- * If there is more than one stream active, this will contain the properties of the stream that emitted the event.
781
- */
782
460
  srcArguments: IStreamEventProperties;
783
461
  }
784
462
 
785
- /**
786
- * List of all possible stream event types.
787
- */
788
463
  type StreamEventType = 'connected' | 'disconnected' | 'error' | 'stop' | 'play' | 'prepare' | 'pause' | 'resume' | 'tracks_changed';
789
464
 
790
- /**
791
- * Returned properties of stream events that occur on stream events:
792
- * connected, disconnected, error, stop, tracks_changed
793
- */
794
465
  interface IStreamEventProperties {
795
466
  uri: string;
796
467
  x: number;
@@ -798,88 +469,39 @@ interface IStreamEventProperties {
798
469
  width: number;
799
470
  height: number;
800
471
  protocol?: keyof typeof StreamProtocol | string;
801
- /**
802
- * @deprecated Events should not return options objects. Instead, they should return protocol {@link protocol}
803
- */
804
472
  options?: IStreamOptions | IStreamPrepareOptions;
805
473
  }
806
474
 
807
- /**
808
- * Available options for stream function `play()`.
809
- */
810
475
  interface IStreamOptions extends IOptions {
811
- /**
812
- * Protocol that the stream is using.
813
- *
814
- * Note: Not all protocols are supported by all devices.
815
- *
816
- * Allowed values are: HLS, RTP, HTTP, UDP, RTMP, RTSP
817
- */
818
476
  protocol?: keyof typeof StreamProtocol | string;
819
- /**
820
- * Automatically reconnect stream when it disconnects.
821
- * @default false
822
- */
823
477
  autoReconnect?: boolean;
824
- /**
825
- * Interval in milliseconds between reconnect attempts.
826
- * @default 30000
827
- */
828
478
  autoReconnectInterval?: number;
479
+ lowLatency?: boolean;
829
480
  }
830
481
 
831
482
  interface IOptions {
832
- /** @deprecated */
833
483
  '4k'?: boolean;
834
- /**
835
- * Prepare stream or video in background.
836
- * @default false
837
- */
838
484
  background?: boolean;
839
- /**
840
- * Initial volume value of the stream.
841
- * @default 100
842
- */
843
485
  volume?: number;
844
486
  }
845
487
 
846
- /**
847
- * Available options for stream function `prepare()`.
848
- */
849
488
  interface IStreamPrepareOptions extends IStreamOptions {
850
- /**
851
- * Track selection for subtitles, audio, and video.
852
- */
853
489
  trackSelection?: {
854
- /** Maximum number of audio channels to play */
855
490
  maxAudioChannelCount?: number;
856
- /** Minimum video size to play */
857
491
  minVideoSize?: {
858
492
  width: number;
859
493
  height: number;
860
494
  };
861
- /** Maximum video size to play */
862
495
  maxVideoSize?: {
863
496
  width: number;
864
497
  height: number;
865
498
  };
866
- /** Preferred audio languages to play */
867
499
  preferredAudioLanguages?: string[];
868
- /** Preferred text languages to play */
869
500
  preferredTextLanguages?: string[];
870
501
  };
871
- /**
872
- * DRM (Digital Rights Management) options for the stream.
873
- */
874
502
  drm?: {
875
503
  scheme: DrmScheme;
876
- /**
877
- * URI to the license server.
878
- */
879
504
  licenseUri: string;
880
- /**
881
- * Additional headers to include in the license request.
882
- */
883
505
  licenseRequestHeaders: {
884
506
  [key: string]: string;
885
507
  };
@@ -921,31 +543,13 @@ The `onPrepare()` method sets up a listener, which is called whenever a stream g
921
543
  ```ts expandable
922
544
  onPrepare(listener: (event: IStreamEvent<'prepare'>) => void): void;
923
545
  // show-more
924
- /**
925
- * Generic interface for stream events.
926
- */
927
546
  interface IStreamEvent<T extends StreamEventType> {
928
- /**
929
- * Type of the event.
930
- * @see {@link StreamEventType}
931
- */
932
547
  type: T;
933
- /**
934
- * Additional stream properties that are relevant to the event.
935
- * If there is more than one stream active, this will contain the properties of the stream that emitted the event.
936
- */
937
548
  srcArguments: IStreamEventProperties;
938
549
  }
939
550
 
940
- /**
941
- * List of all possible stream event types.
942
- */
943
551
  type StreamEventType = 'connected' | 'disconnected' | 'error' | 'stop' | 'play' | 'prepare' | 'pause' | 'resume' | 'tracks_changed';
944
552
 
945
- /**
946
- * Returned properties of stream events that occur on stream events:
947
- * connected, disconnected, error, stop, tracks_changed
948
- */
949
553
  interface IStreamEventProperties {
950
554
  uri: string;
951
555
  x: number;
@@ -953,88 +557,39 @@ interface IStreamEventProperties {
953
557
  width: number;
954
558
  height: number;
955
559
  protocol?: keyof typeof StreamProtocol | string;
956
- /**
957
- * @deprecated Events should not return options objects. Instead, they should return protocol {@link protocol}
958
- */
959
560
  options?: IStreamOptions | IStreamPrepareOptions;
960
561
  }
961
562
 
962
- /**
963
- * Available options for stream function `play()`.
964
- */
965
563
  interface IStreamOptions extends IOptions {
966
- /**
967
- * Protocol that the stream is using.
968
- *
969
- * Note: Not all protocols are supported by all devices.
970
- *
971
- * Allowed values are: HLS, RTP, HTTP, UDP, RTMP, RTSP
972
- */
973
564
  protocol?: keyof typeof StreamProtocol | string;
974
- /**
975
- * Automatically reconnect stream when it disconnects.
976
- * @default false
977
- */
978
565
  autoReconnect?: boolean;
979
- /**
980
- * Interval in milliseconds between reconnect attempts.
981
- * @default 30000
982
- */
983
566
  autoReconnectInterval?: number;
567
+ lowLatency?: boolean;
984
568
  }
985
569
 
986
570
  interface IOptions {
987
- /** @deprecated */
988
571
  '4k'?: boolean;
989
- /**
990
- * Prepare stream or video in background.
991
- * @default false
992
- */
993
572
  background?: boolean;
994
- /**
995
- * Initial volume value of the stream.
996
- * @default 100
997
- */
998
573
  volume?: number;
999
574
  }
1000
575
 
1001
- /**
1002
- * Available options for stream function `prepare()`.
1003
- */
1004
576
  interface IStreamPrepareOptions extends IStreamOptions {
1005
- /**
1006
- * Track selection for subtitles, audio, and video.
1007
- */
1008
577
  trackSelection?: {
1009
- /** Maximum number of audio channels to play */
1010
578
  maxAudioChannelCount?: number;
1011
- /** Minimum video size to play */
1012
579
  minVideoSize?: {
1013
580
  width: number;
1014
581
  height: number;
1015
582
  };
1016
- /** Maximum video size to play */
1017
583
  maxVideoSize?: {
1018
584
  width: number;
1019
585
  height: number;
1020
586
  };
1021
- /** Preferred audio languages to play */
1022
587
  preferredAudioLanguages?: string[];
1023
- /** Preferred text languages to play */
1024
588
  preferredTextLanguages?: string[];
1025
589
  };
1026
- /**
1027
- * DRM (Digital Rights Management) options for the stream.
1028
- */
1029
590
  drm?: {
1030
591
  scheme: DrmScheme;
1031
- /**
1032
- * URI to the license server.
1033
- */
1034
592
  licenseUri: string;
1035
- /**
1036
- * Additional headers to include in the license request.
1037
- */
1038
593
  licenseRequestHeaders: {
1039
594
  [key: string]: string;
1040
595
  };
@@ -1076,31 +631,13 @@ The `onResume()` method sets up a listener, which is called whenever a stream is
1076
631
  ```ts expandable
1077
632
  onResume(listener: (event: IStreamEvent<'resume'>) => void): void;
1078
633
  // show-more
1079
- /**
1080
- * Generic interface for stream events.
1081
- */
1082
634
  interface IStreamEvent<T extends StreamEventType> {
1083
- /**
1084
- * Type of the event.
1085
- * @see {@link StreamEventType}
1086
- */
1087
635
  type: T;
1088
- /**
1089
- * Additional stream properties that are relevant to the event.
1090
- * If there is more than one stream active, this will contain the properties of the stream that emitted the event.
1091
- */
1092
636
  srcArguments: IStreamEventProperties;
1093
637
  }
1094
638
 
1095
- /**
1096
- * List of all possible stream event types.
1097
- */
1098
639
  type StreamEventType = 'connected' | 'disconnected' | 'error' | 'stop' | 'play' | 'prepare' | 'pause' | 'resume' | 'tracks_changed';
1099
640
 
1100
- /**
1101
- * Returned properties of stream events that occur on stream events:
1102
- * connected, disconnected, error, stop, tracks_changed
1103
- */
1104
641
  interface IStreamEventProperties {
1105
642
  uri: string;
1106
643
  x: number;
@@ -1108,88 +645,39 @@ interface IStreamEventProperties {
1108
645
  width: number;
1109
646
  height: number;
1110
647
  protocol?: keyof typeof StreamProtocol | string;
1111
- /**
1112
- * @deprecated Events should not return options objects. Instead, they should return protocol {@link protocol}
1113
- */
1114
648
  options?: IStreamOptions | IStreamPrepareOptions;
1115
649
  }
1116
650
 
1117
- /**
1118
- * Available options for stream function `play()`.
1119
- */
1120
651
  interface IStreamOptions extends IOptions {
1121
- /**
1122
- * Protocol that the stream is using.
1123
- *
1124
- * Note: Not all protocols are supported by all devices.
1125
- *
1126
- * Allowed values are: HLS, RTP, HTTP, UDP, RTMP, RTSP
1127
- */
1128
652
  protocol?: keyof typeof StreamProtocol | string;
1129
- /**
1130
- * Automatically reconnect stream when it disconnects.
1131
- * @default false
1132
- */
1133
653
  autoReconnect?: boolean;
1134
- /**
1135
- * Interval in milliseconds between reconnect attempts.
1136
- * @default 30000
1137
- */
1138
654
  autoReconnectInterval?: number;
655
+ lowLatency?: boolean;
1139
656
  }
1140
657
 
1141
658
  interface IOptions {
1142
- /** @deprecated */
1143
659
  '4k'?: boolean;
1144
- /**
1145
- * Prepare stream or video in background.
1146
- * @default false
1147
- */
1148
660
  background?: boolean;
1149
- /**
1150
- * Initial volume value of the stream.
1151
- * @default 100
1152
- */
1153
661
  volume?: number;
1154
662
  }
1155
663
 
1156
- /**
1157
- * Available options for stream function `prepare()`.
1158
- */
1159
664
  interface IStreamPrepareOptions extends IStreamOptions {
1160
- /**
1161
- * Track selection for subtitles, audio, and video.
1162
- */
1163
665
  trackSelection?: {
1164
- /** Maximum number of audio channels to play */
1165
666
  maxAudioChannelCount?: number;
1166
- /** Minimum video size to play */
1167
667
  minVideoSize?: {
1168
668
  width: number;
1169
669
  height: number;
1170
670
  };
1171
- /** Maximum video size to play */
1172
671
  maxVideoSize?: {
1173
672
  width: number;
1174
673
  height: number;
1175
674
  };
1176
- /** Preferred audio languages to play */
1177
675
  preferredAudioLanguages?: string[];
1178
- /** Preferred text languages to play */
1179
676
  preferredTextLanguages?: string[];
1180
677
  };
1181
- /**
1182
- * DRM (Digital Rights Management) options for the stream.
1183
- */
1184
678
  drm?: {
1185
679
  scheme: DrmScheme;
1186
- /**
1187
- * URI to the license server.
1188
- */
1189
680
  licenseUri: string;
1190
- /**
1191
- * Additional headers to include in the license request.
1192
- */
1193
681
  licenseRequestHeaders: {
1194
682
  [key: string]: string;
1195
683
  };
@@ -1233,31 +721,13 @@ The `onStop()` method sets up a listener, which is called whenever a stream stop
1233
721
  ```ts expandable
1234
722
  onStop(listener: (event: IStreamEvent<'stop'>) => void): void;
1235
723
  // show-more
1236
- /**
1237
- * Generic interface for stream events.
1238
- */
1239
724
  interface IStreamEvent<T extends StreamEventType> {
1240
- /**
1241
- * Type of the event.
1242
- * @see {@link StreamEventType}
1243
- */
1244
725
  type: T;
1245
- /**
1246
- * Additional stream properties that are relevant to the event.
1247
- * If there is more than one stream active, this will contain the properties of the stream that emitted the event.
1248
- */
1249
726
  srcArguments: IStreamEventProperties;
1250
727
  }
1251
728
 
1252
- /**
1253
- * List of all possible stream event types.
1254
- */
1255
729
  type StreamEventType = 'connected' | 'disconnected' | 'error' | 'stop' | 'play' | 'prepare' | 'pause' | 'resume' | 'tracks_changed';
1256
730
 
1257
- /**
1258
- * Returned properties of stream events that occur on stream events:
1259
- * connected, disconnected, error, stop, tracks_changed
1260
- */
1261
731
  interface IStreamEventProperties {
1262
732
  uri: string;
1263
733
  x: number;
@@ -1265,88 +735,39 @@ interface IStreamEventProperties {
1265
735
  width: number;
1266
736
  height: number;
1267
737
  protocol?: keyof typeof StreamProtocol | string;
1268
- /**
1269
- * @deprecated Events should not return options objects. Instead, they should return protocol {@link protocol}
1270
- */
1271
738
  options?: IStreamOptions | IStreamPrepareOptions;
1272
739
  }
1273
740
 
1274
- /**
1275
- * Available options for stream function `play()`.
1276
- */
1277
741
  interface IStreamOptions extends IOptions {
1278
- /**
1279
- * Protocol that the stream is using.
1280
- *
1281
- * Note: Not all protocols are supported by all devices.
1282
- *
1283
- * Allowed values are: HLS, RTP, HTTP, UDP, RTMP, RTSP
1284
- */
1285
742
  protocol?: keyof typeof StreamProtocol | string;
1286
- /**
1287
- * Automatically reconnect stream when it disconnects.
1288
- * @default false
1289
- */
1290
743
  autoReconnect?: boolean;
1291
- /**
1292
- * Interval in milliseconds between reconnect attempts.
1293
- * @default 30000
1294
- */
1295
744
  autoReconnectInterval?: number;
745
+ lowLatency?: boolean;
1296
746
  }
1297
747
 
1298
748
  interface IOptions {
1299
- /** @deprecated */
1300
749
  '4k'?: boolean;
1301
- /**
1302
- * Prepare stream or video in background.
1303
- * @default false
1304
- */
1305
750
  background?: boolean;
1306
- /**
1307
- * Initial volume value of the stream.
1308
- * @default 100
1309
- */
1310
751
  volume?: number;
1311
752
  }
1312
753
 
1313
- /**
1314
- * Available options for stream function `prepare()`.
1315
- */
1316
754
  interface IStreamPrepareOptions extends IStreamOptions {
1317
- /**
1318
- * Track selection for subtitles, audio, and video.
1319
- */
1320
755
  trackSelection?: {
1321
- /** Maximum number of audio channels to play */
1322
756
  maxAudioChannelCount?: number;
1323
- /** Minimum video size to play */
1324
757
  minVideoSize?: {
1325
758
  width: number;
1326
759
  height: number;
1327
760
  };
1328
- /** Maximum video size to play */
1329
761
  maxVideoSize?: {
1330
762
  width: number;
1331
763
  height: number;
1332
764
  };
1333
- /** Preferred audio languages to play */
1334
765
  preferredAudioLanguages?: string[];
1335
- /** Preferred text languages to play */
1336
766
  preferredTextLanguages?: string[];
1337
767
  };
1338
- /**
1339
- * DRM (Digital Rights Management) options for the stream.
1340
- */
1341
768
  drm?: {
1342
769
  scheme: DrmScheme;
1343
- /**
1344
- * URI to the license server.
1345
- */
1346
770
  licenseUri: string;
1347
- /**
1348
- * Additional headers to include in the license request.
1349
- */
1350
771
  licenseRequestHeaders: {
1351
772
  [key: string]: string;
1352
773
  };
@@ -1389,13 +810,7 @@ from functions `selectTrack()` or `resetTrack()`.
1389
810
  ```ts expandable
1390
811
  onTracksChanged(listener: (event: IStreamTracksChangedEvent) => void): void;
1391
812
  // show-more
1392
- /**
1393
- * Stream Tracks Changed Event which is emitted when new track is selected or active track resets.
1394
- */
1395
813
  interface IStreamTracksChangedEvent extends IStreamEvent<'tracks_changed'> {
1396
- /**
1397
- * Additional info about the track which has occurred the event.
1398
- */
1399
814
  tracks: ITrackInfo[] | undefined;
1400
815
  }
1401
816
 
@@ -1408,85 +823,33 @@ interface ITrackVideoInfo extends ITrack<'VIDEO'> {
1408
823
  };
1409
824
  }
1410
825
 
1411
- /**
1412
- * Interface representing stream track information.
1413
- */
1414
826
  interface ITrack<T extends TrackType> {
1415
- /**
1416
- * Type of the track, e.g., "VIDEO", "AUDIO", "TEXT".
1417
- */
1418
827
  trackType: T;
1419
- /**
1420
- * MIME type of the track, e.g., "video/mp4", "audio/mp3", "text/vtt".
1421
- */
1422
828
  mimeType: string;
1423
- /**
1424
- * Unique identifier for the track group.
1425
- * This is used to group tracks of the same type (e.g., multiple audio tracks).
1426
- */
1427
829
  groupId: string;
1428
- /**
1429
- * Unique identifier for the track.
1430
- */
1431
830
  trackIndex: number;
1432
- /**
1433
- * If the track is selected for playback.
1434
- */
1435
831
  selected: boolean;
1436
- /**
1437
- * Selected language of subtitles or captions.
1438
- */
1439
832
  language: string | null;
1440
- /**
1441
- * If the track is supported by the device.
1442
- */
1443
833
  supported: boolean;
1444
834
  }
1445
835
 
1446
- /**
1447
- * Available track types for media streams.
1448
- */
1449
836
  type TrackType = 'TEXT' | 'AUDIO' | 'VIDEO';
1450
837
 
1451
838
  interface ITrackAudioInfo extends ITrack<'AUDIO'> {
1452
- /**
1453
- * Number of audio channels.
1454
- */
1455
839
  channelCount: number;
1456
840
  }
1457
841
 
1458
842
  interface ITrackTextInfo extends ITrack<'TEXT'> {
1459
- /**
1460
- * Selected subtitles or captions.
1461
- */
1462
843
  selection: string[];
1463
844
  }
1464
845
 
1465
- /**
1466
- * Generic interface for stream events.
1467
- */
1468
846
  interface IStreamEvent<T extends StreamEventType> {
1469
- /**
1470
- * Type of the event.
1471
- * @see {@link StreamEventType}
1472
- */
1473
847
  type: T;
1474
- /**
1475
- * Additional stream properties that are relevant to the event.
1476
- * If there is more than one stream active, this will contain the properties of the stream that emitted the event.
1477
- */
1478
848
  srcArguments: IStreamEventProperties;
1479
849
  }
1480
850
 
1481
- /**
1482
- * List of all possible stream event types.
1483
- */
1484
851
  type StreamEventType = 'connected' | 'disconnected' | 'error' | 'stop' | 'play' | 'prepare' | 'pause' | 'resume' | 'tracks_changed';
1485
852
 
1486
- /**
1487
- * Returned properties of stream events that occur on stream events:
1488
- * connected, disconnected, error, stop, tracks_changed
1489
- */
1490
853
  interface IStreamEventProperties {
1491
854
  uri: string;
1492
855
  x: number;
@@ -1494,88 +857,39 @@ interface IStreamEventProperties {
1494
857
  width: number;
1495
858
  height: number;
1496
859
  protocol?: keyof typeof StreamProtocol | string;
1497
- /**
1498
- * @deprecated Events should not return options objects. Instead, they should return protocol {@link protocol}
1499
- */
1500
860
  options?: IStreamOptions | IStreamPrepareOptions;
1501
861
  }
1502
862
 
1503
- /**
1504
- * Available options for stream function `play()`.
1505
- */
1506
863
  interface IStreamOptions extends IOptions {
1507
- /**
1508
- * Protocol that the stream is using.
1509
- *
1510
- * Note: Not all protocols are supported by all devices.
1511
- *
1512
- * Allowed values are: HLS, RTP, HTTP, UDP, RTMP, RTSP
1513
- */
1514
864
  protocol?: keyof typeof StreamProtocol | string;
1515
- /**
1516
- * Automatically reconnect stream when it disconnects.
1517
- * @default false
1518
- */
1519
865
  autoReconnect?: boolean;
1520
- /**
1521
- * Interval in milliseconds between reconnect attempts.
1522
- * @default 30000
1523
- */
1524
866
  autoReconnectInterval?: number;
867
+ lowLatency?: boolean;
1525
868
  }
1526
869
 
1527
870
  interface IOptions {
1528
- /** @deprecated */
1529
871
  '4k'?: boolean;
1530
- /**
1531
- * Prepare stream or video in background.
1532
- * @default false
1533
- */
1534
872
  background?: boolean;
1535
- /**
1536
- * Initial volume value of the stream.
1537
- * @default 100
1538
- */
1539
873
  volume?: number;
1540
874
  }
1541
875
 
1542
- /**
1543
- * Available options for stream function `prepare()`.
1544
- */
1545
876
  interface IStreamPrepareOptions extends IStreamOptions {
1546
- /**
1547
- * Track selection for subtitles, audio, and video.
1548
- */
1549
877
  trackSelection?: {
1550
- /** Maximum number of audio channels to play */
1551
878
  maxAudioChannelCount?: number;
1552
- /** Minimum video size to play */
1553
879
  minVideoSize?: {
1554
880
  width: number;
1555
881
  height: number;
1556
882
  };
1557
- /** Maximum video size to play */
1558
883
  maxVideoSize?: {
1559
884
  width: number;
1560
885
  height: number;
1561
886
  };
1562
- /** Preferred audio languages to play */
1563
887
  preferredAudioLanguages?: string[];
1564
- /** Preferred text languages to play */
1565
888
  preferredTextLanguages?: string[];
1566
889
  };
1567
- /**
1568
- * DRM (Digital Rights Management) options for the stream.
1569
- */
1570
890
  drm?: {
1571
891
  scheme: DrmScheme;
1572
- /**
1573
- * URI to the license server.
1574
- */
1575
892
  licenseUri: string;
1576
- /**
1577
- * Additional headers to include in the license request.
1578
- */
1579
893
  licenseRequestHeaders: {
1580
894
  [key: string]: string;
1581
895
  };
@@ -1672,42 +986,16 @@ This method use same functionality, instead of URL (for stream), specify a URI o
1672
986
  ```ts expandable
1673
987
  play(uri: string, x: number, y: number, width: number, height: number, options?: IStreamOptions | keyof typeof StreamProtocol): Promise<void>;
1674
988
  // show-more
1675
- /**
1676
- * Available options for stream function `play()`.
1677
- */
1678
989
  interface IStreamOptions extends IOptions {
1679
- /**
1680
- * Protocol that the stream is using.
1681
- *
1682
- * Note: Not all protocols are supported by all devices.
1683
- *
1684
- * Allowed values are: HLS, RTP, HTTP, UDP, RTMP, RTSP
1685
- */
1686
990
  protocol?: keyof typeof StreamProtocol | string;
1687
- /**
1688
- * Automatically reconnect stream when it disconnects.
1689
- * @default false
1690
- */
1691
991
  autoReconnect?: boolean;
1692
- /**
1693
- * Interval in milliseconds between reconnect attempts.
1694
- * @default 30000
1695
- */
1696
992
  autoReconnectInterval?: number;
993
+ lowLatency?: boolean;
1697
994
  }
1698
995
 
1699
996
  interface IOptions {
1700
- /** @deprecated */
1701
997
  '4k'?: boolean;
1702
- /**
1703
- * Prepare stream or video in background.
1704
- * @default false
1705
- */
1706
998
  background?: boolean;
1707
- /**
1708
- * Initial volume value of the stream.
1709
- * @default 100
1710
- */
1711
999
  volume?: number;
1712
1000
  }
1713
1001
 
@@ -1768,43 +1056,23 @@ If you want to play a video stream in full screen mode, use x = y = 0 and width
1768
1056
  ```ts expandable
1769
1057
  prepare(uri: string, x: number, y: number, width: number, height: number, options?: IStreamPrepareOptions | keyof typeof StreamProtocol): Promise<void>;
1770
1058
  // show-more
1771
- /**
1772
- * Available options for stream function `prepare()`.
1773
- */
1774
1059
  interface IStreamPrepareOptions extends IStreamOptions {
1775
- /**
1776
- * Track selection for subtitles, audio, and video.
1777
- */
1778
1060
  trackSelection?: {
1779
- /** Maximum number of audio channels to play */
1780
1061
  maxAudioChannelCount?: number;
1781
- /** Minimum video size to play */
1782
1062
  minVideoSize?: {
1783
1063
  width: number;
1784
1064
  height: number;
1785
1065
  };
1786
- /** Maximum video size to play */
1787
1066
  maxVideoSize?: {
1788
1067
  width: number;
1789
1068
  height: number;
1790
1069
  };
1791
- /** Preferred audio languages to play */
1792
1070
  preferredAudioLanguages?: string[];
1793
- /** Preferred text languages to play */
1794
1071
  preferredTextLanguages?: string[];
1795
1072
  };
1796
- /**
1797
- * DRM (Digital Rights Management) options for the stream.
1798
- */
1799
1073
  drm?: {
1800
1074
  scheme: DrmScheme;
1801
- /**
1802
- * URI to the license server.
1803
- */
1804
1075
  licenseUri: string;
1805
- /**
1806
- * Additional headers to include in the license request.
1807
- */
1808
1076
  licenseRequestHeaders: {
1809
1077
  [key: string]: string;
1810
1078
  };
@@ -1815,42 +1083,16 @@ type DrmScheme = 'CommonPSSH' | 'ClearKey' | 'Widevine' | 'PlayReady' | AnyStrin
1815
1083
 
1816
1084
  type AnyString = string & {};
1817
1085
 
1818
- /**
1819
- * Available options for stream function `play()`.
1820
- */
1821
1086
  interface IStreamOptions extends IOptions {
1822
- /**
1823
- * Protocol that the stream is using.
1824
- *
1825
- * Note: Not all protocols are supported by all devices.
1826
- *
1827
- * Allowed values are: HLS, RTP, HTTP, UDP, RTMP, RTSP
1828
- */
1829
1087
  protocol?: keyof typeof StreamProtocol | string;
1830
- /**
1831
- * Automatically reconnect stream when it disconnects.
1832
- * @default false
1833
- */
1834
1088
  autoReconnect?: boolean;
1835
- /**
1836
- * Interval in milliseconds between reconnect attempts.
1837
- * @default 30000
1838
- */
1839
1089
  autoReconnectInterval?: number;
1090
+ lowLatency?: boolean;
1840
1091
  }
1841
1092
 
1842
1093
  interface IOptions {
1843
- /** @deprecated */
1844
1094
  '4k'?: boolean;
1845
- /**
1846
- * Prepare stream or video in background.
1847
- * @default false
1848
- */
1849
1095
  background?: boolean;
1850
- /**
1851
- * Initial volume value of the stream.
1852
- * @default 100
1853
- */
1854
1096
  volume?: number;
1855
1097
  }
1856
1098
 
@@ -1916,9 +1158,6 @@ The `resetTrack()` method resets a selected track of a stream.
1916
1158
  ```ts expandable
1917
1159
  resetTrack(videoId: IVideoProperties, trackType: TrackType, groupId?: string): Promise<void>;
1918
1160
  // show-more
1919
- /**
1920
- * Video properties interface for defining the properties of a played video.
1921
- */
1922
1161
  interface IVideoProperties {
1923
1162
  uri: string;
1924
1163
  x: number;
@@ -1927,9 +1166,6 @@ interface IVideoProperties {
1927
1166
  height: number;
1928
1167
  }
1929
1168
 
1930
- /**
1931
- * Available track types for media streams.
1932
- */
1933
1169
  type TrackType = 'TEXT' | 'AUDIO' | 'VIDEO';
1934
1170
 
1935
1171
  ```
@@ -2006,9 +1242,6 @@ The `selectTrack()` method selects a text (subtitles), video or audio track of a
2006
1242
  ```ts expandable
2007
1243
  selectTrack(videoId: IVideoProperties, trackType: TrackType, groupId: string, trackIndex: number): Promise<void>;
2008
1244
  // show-more
2009
- /**
2010
- * Video properties interface for defining the properties of a played video.
2011
- */
2012
1245
  interface IVideoProperties {
2013
1246
  uri: string;
2014
1247
  x: number;
@@ -2017,9 +1250,6 @@ interface IVideoProperties {
2017
1250
  height: number;
2018
1251
  }
2019
1252
 
2020
- /**
2021
- * Available track types for media streams.
2022
- */
2023
1253
  type TrackType = 'TEXT' | 'AUDIO' | 'VIDEO';
2024
1254
 
2025
1255
  ```