@livekit/react-native-webrtc
Version:
WebRTC for React Native
22 lines (21 loc) • 937 B
TypeScript
export declare enum FrameCryptorState {
FrameCryptorStateNew = 0,
FrameCryptorStateOk = 1,
FrameCryptorStateEncryptionFailed = 2,
FrameCryptorStateDecryptionFailed = 3,
FrameCryptorStateMissingKey = 4,
FrameCryptorStateKeyRatcheted = 5,
FrameCryptorStateInternalError = 6
}
export default class RTCKeyProvider {
_id: string;
constructor(keyProviderId: string);
setSharedKey(key: string | Uint8Array, keyIndex?: number): Promise<any>;
ratchetSharedKey(keyIndex?: number): Promise<Uint8Array>;
exportSharedKey(keyIndex?: number): Promise<Uint8Array>;
setKey(participantId: string, key: string | Uint8Array, keyIndex?: number): Promise<boolean>;
ratchetKey(participantId: string, keyIndex?: number): Promise<Uint8Array>;
exportKey(participantId: string, keyIndex?: number): Promise<Uint8Array>;
setSifTrailer(trailer: Uint8Array): Promise<any>;
dispose(): Promise<any>;
}