@webex/media-helpers
Advanced tools
Comparing version 3.0.0-beta.422 to 3.0.0-beta.423
@@ -15,3 +15,3 @@ import { AudioDeviceConstraints, LocalDisplayStream, LocalSystemAudioStream, LocalMicrophoneStream as WcmeLocalMicrophoneStream, LocalCameraStream as WcmeLocalCameraStream, VideoDeviceConstraints } from '@webex/internal-media-core'; | ||
interface LocalCameraStreamEvents { | ||
[LocalMicrophoneStreamEventNames.ServerMuted]: TypedEvent<(muted: boolean, reason: ServerMuteReason) => void>; | ||
[LocalCameraStreamEventNames.ServerMuted]: TypedEvent<(muted: boolean, reason: ServerMuteReason) => void>; | ||
} | ||
@@ -42,5 +42,5 @@ declare class _LocalMicrophoneStream extends WcmeLocalMicrophoneStream { | ||
export declare const createCameraStream: (constraints?: VideoDeviceConstraints) => Promise<{ | ||
on<K extends LocalMicrophoneStreamEventNames.ServerMuted, E extends LocalCameraStreamEvents[K] extends infer T ? T extends LocalCameraStreamEvents[K] ? T extends TypedEvent<infer X extends (...args: any[]) => void> ? X : never : never : never>(eventName: K, handler: E): void; | ||
once<K_1 extends LocalMicrophoneStreamEventNames.ServerMuted, E_1 extends LocalCameraStreamEvents[K_1] extends infer T_1 ? T_1 extends LocalCameraStreamEvents[K_1] ? T_1 extends TypedEvent<infer X extends (...args: any[]) => void> ? X : never : never : never>(eventName: K_1, handler: E_1): void; | ||
off<K_2 extends LocalMicrophoneStreamEventNames.ServerMuted, E_2 extends LocalCameraStreamEvents[K_2] extends infer T_2 ? T_2 extends LocalCameraStreamEvents[K_2] ? T_2 extends TypedEvent<infer X extends (...args: any[]) => void> ? X : never : never : never>(eventName: K_2, handler: E_2): void; | ||
on<K extends LocalCameraStreamEventNames.ServerMuted, E extends LocalCameraStreamEvents[K] extends infer T ? T extends LocalCameraStreamEvents[K] ? T extends TypedEvent<infer X extends (...args: any[]) => void> ? X : never : never : never>(eventName: K, handler: E): void; | ||
once<K_1 extends LocalCameraStreamEventNames.ServerMuted, E_1 extends LocalCameraStreamEvents[K_1] extends infer T_1 ? T_1 extends LocalCameraStreamEvents[K_1] ? T_1 extends TypedEvent<infer X extends (...args: any[]) => void> ? X : never : never : never>(eventName: K_1, handler: E_1): void; | ||
off<K_2 extends LocalCameraStreamEventNames.ServerMuted, E_2 extends LocalCameraStreamEvents[K_2] extends infer T_2 ? T_2 extends LocalCameraStreamEvents[K_2] ? T_2 extends TypedEvent<infer X extends (...args: any[]) => void> ? X : never : never : never>(eventName: K_2, handler: E_2): void; | ||
} & _LocalCameraStream>; | ||
@@ -56,6 +56,6 @@ export declare const createDisplayStream: () => Promise<LocalDisplayStream>; | ||
export declare const LocalCameraStream: (new (...args: any[]) => { | ||
on<K extends LocalMicrophoneStreamEventNames.ServerMuted, E extends LocalCameraStreamEvents[K] extends infer T ? T extends LocalCameraStreamEvents[K] ? T extends TypedEvent<infer X extends (...args: any[]) => void> ? X : never : never : never>(eventName: K, handler: E): void; | ||
once<K_1 extends LocalMicrophoneStreamEventNames.ServerMuted, E_1 extends LocalCameraStreamEvents[K_1] extends infer T_1 ? T_1 extends LocalCameraStreamEvents[K_1] ? T_1 extends TypedEvent<infer X extends (...args: any[]) => void> ? X : never : never : never>(eventName: K_1, handler: E_1): void; | ||
off<K_2 extends LocalMicrophoneStreamEventNames.ServerMuted, E_2 extends LocalCameraStreamEvents[K_2] extends infer T_2 ? T_2 extends LocalCameraStreamEvents[K_2] ? T_2 extends TypedEvent<infer X extends (...args: any[]) => void> ? X : never : never : never>(eventName: K_2, handler: E_2): void; | ||
on<K extends LocalCameraStreamEventNames.ServerMuted, E extends LocalCameraStreamEvents[K] extends infer T ? T extends LocalCameraStreamEvents[K] ? T extends TypedEvent<infer X extends (...args: any[]) => void> ? X : never : never : never>(eventName: K, handler: E): void; | ||
once<K_1 extends LocalCameraStreamEventNames.ServerMuted, E_1 extends LocalCameraStreamEvents[K_1] extends infer T_1 ? T_1 extends LocalCameraStreamEvents[K_1] ? T_1 extends TypedEvent<infer X extends (...args: any[]) => void> ? X : never : never : never>(eventName: K_1, handler: E_1): void; | ||
off<K_2 extends LocalCameraStreamEventNames.ServerMuted, E_2 extends LocalCameraStreamEvents[K_2] extends infer T_2 ? T_2 extends LocalCameraStreamEvents[K_2] ? T_2 extends TypedEvent<infer X extends (...args: any[]) => void> ? X : never : never : never>(eventName: K_2, handler: E_2): void; | ||
}) & typeof _LocalCameraStream; | ||
export type LocalCameraStream = _LocalCameraStream & WithEventsDummyType<LocalCameraStreamEvents>; |
{ | ||
"name": "@webex/media-helpers", | ||
"version": "3.0.0-beta.422", | ||
"version": "3.0.0-beta.423", | ||
"description": "", | ||
@@ -31,4 +31,4 @@ "license": "Cisco EULA (https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)", | ||
"devDependencies": { | ||
"@webex/test-helper-chai": "3.0.0-beta.422", | ||
"@webex/test-helper-mock-webex": "3.0.0-beta.422", | ||
"@webex/test-helper-chai": "3.0.0-beta.423", | ||
"@webex/test-helper-mock-webex": "3.0.0-beta.423", | ||
"jsdom-global": "3.0.2", | ||
@@ -35,0 +35,0 @@ "sinon": "^9.2.4" |
@@ -52,3 +52,3 @@ /* eslint-disable @typescript-eslint/no-misused-new */ | ||
interface LocalCameraStreamEvents { | ||
[LocalMicrophoneStreamEventNames.ServerMuted]: TypedEvent< | ||
[LocalCameraStreamEventNames.ServerMuted]: TypedEvent< | ||
(muted: boolean, reason: ServerMuteReason) => void | ||
@@ -55,0 +55,0 @@ >; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48459