@livedigital/client 2.31.0 → 2.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engine/media/tracks/PeerTrack.d.ts +2 -2
- package/dist/errors/LivedigitalSDKError.d.ts +5 -0
- package/dist/errors/UnsupportedError.d.ts +7 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -1
- package/src/engine/Peer.ts +2 -2
- package/src/engine/index.ts +10 -0
- package/src/engine/media/tracks/BaseTrack.ts +13 -0
- package/src/engine/media/tracks/PeerTrack.ts +63 -46
- package/src/errors/LivedigitalSDKError.ts +10 -0
- package/src/errors/UnsupportedError.ts +13 -0
|
@@ -25,8 +25,8 @@ declare class PeerTrack {
|
|
|
25
25
|
get consumerId(): string | undefined;
|
|
26
26
|
get currentSpatialLayer(): number;
|
|
27
27
|
close(): Promise<void>;
|
|
28
|
-
pause(): Promise<void>;
|
|
29
|
-
resume(): Promise<void>;
|
|
28
|
+
pause(pauseRemote?: boolean): Promise<void>;
|
|
29
|
+
resume(resumeRemote?: boolean): Promise<void>;
|
|
30
30
|
setPriority(priority: number): Promise<void>;
|
|
31
31
|
private setConsumerPriority;
|
|
32
32
|
requestVideoPreferredLayers({ spatialLayer, temporalLayer }: PreferredLayersParams): Promise<void>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import LivedigitalSDKError from './LivedigitalSDKError';
|
|
2
|
+
declare class UnsupportedError extends LivedigitalSDKError {
|
|
3
|
+
static readonly UNSUPPORTED_DEVICE_CODE = "unsupported_device_error";
|
|
4
|
+
static readonly UNSUPPORTED_OPERATION_CODE = "unsupported_operation_error";
|
|
5
|
+
constructor(msg?: string, errorCode?: string);
|
|
6
|
+
}
|
|
7
|
+
export default UnsupportedError;
|