@livekit/react-native 2.9.2 → 2.9.4
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/android/build.gradle +1 -3
- package/lib/commonjs/audio/MediaRecorder.js +2 -2
- package/lib/commonjs/audio/MediaRecorder.js.map +1 -1
- package/lib/commonjs/components/VideoTrack.js +6 -2
- package/lib/commonjs/components/VideoTrack.js.map +1 -1
- package/lib/commonjs/components/VideoView.js +3 -1
- package/lib/commonjs/components/VideoView.js.map +1 -1
- package/lib/commonjs/e2ee/RNE2EEManager.js +73 -1
- package/lib/commonjs/e2ee/RNE2EEManager.js.map +1 -1
- package/lib/commonjs/hooks/useE2EEManager.js +1 -1
- package/lib/commonjs/hooks/useE2EEManager.js.map +1 -1
- package/lib/commonjs/index.js +0 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/audio/MediaRecorder.js +1 -1
- package/lib/module/audio/MediaRecorder.js.map +1 -1
- package/lib/module/components/VideoTrack.js +6 -2
- package/lib/module/components/VideoTrack.js.map +1 -1
- package/lib/module/components/VideoView.js +3 -1
- package/lib/module/components/VideoView.js.map +1 -1
- package/lib/module/e2ee/RNE2EEManager.js +75 -3
- package/lib/module/e2ee/RNE2EEManager.js.map +1 -1
- package/lib/module/hooks/useE2EEManager.js +1 -1
- package/lib/module/hooks/useE2EEManager.js.map +1 -1
- package/lib/module/index.js +0 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/{src/components → components}/VideoTrack.d.ts +1 -1
- package/lib/typescript/{src/e2ee → e2ee}/RNE2EEManager.d.ts +11 -2
- package/lib/typescript/{src/hooks → hooks}/useE2EEManager.d.ts +2 -2
- package/lib/typescript/{src/index.d.ts → index.d.ts} +1 -2
- package/package.json +31 -20
- package/src/audio/MediaRecorder.ts +1 -1
- package/src/components/VideoTrack.tsx +2 -0
- package/src/components/VideoView.tsx +1 -0
- package/src/e2ee/RNE2EEManager.ts +117 -2
- package/src/hooks/useE2EEManager.ts +3 -2
- package/src/index.tsx +1 -2
- package/lib/typescript/babel.config.d.ts +0 -1
- package/lib/typescript/docs/assets/icons.d.ts +0 -0
- package/lib/typescript/docs/assets/main.d.ts +0 -0
- package/lib/typescript/docs/assets/navigation.d.ts +0 -0
- package/lib/typescript/docs/assets/search.d.ts +0 -0
- package/lib/typescript/lib/commonjs/LKNativeModule.d.ts +0 -3
- package/lib/typescript/lib/commonjs/audio/AudioManager.d.ts +0 -10
- package/lib/typescript/lib/commonjs/audio/AudioSession.d.ts +0 -33
- package/lib/typescript/lib/commonjs/audio/MediaRecorder.d.ts +0 -24
- package/lib/typescript/lib/commonjs/components/BarVisualizer.d.ts +0 -32
- package/lib/typescript/lib/commonjs/components/LiveKitRoom.d.ts +0 -20
- package/lib/typescript/lib/commonjs/components/VideoTrack.d.ts +0 -2
- package/lib/typescript/lib/commonjs/components/VideoView.d.ts +0 -14
- package/lib/typescript/lib/commonjs/components/ViewPortDetector.d.ts +0 -30
- package/lib/typescript/lib/commonjs/e2ee/RNE2EEManager.d.ts +0 -23
- package/lib/typescript/lib/commonjs/e2ee/RNKeyProvider.d.ts +0 -33
- package/lib/typescript/lib/commonjs/events/EventEmitter.d.ts +0 -4
- package/lib/typescript/lib/commonjs/hooks/useE2EEManager.d.ts +0 -8
- package/lib/typescript/lib/commonjs/hooks/useMultibandTrackVolume.d.ts +0 -8
- package/lib/typescript/lib/commonjs/hooks/useTrackVolume.d.ts +0 -8
- package/lib/typescript/lib/commonjs/hooks.d.ts +0 -32
- package/lib/typescript/lib/commonjs/index.d.ts +0 -14
- package/lib/typescript/lib/commonjs/logger.d.ts +0 -8
- package/lib/typescript/lib/commonjs/useParticipant.d.ts +0 -14
- package/lib/typescript/lib/commonjs/useRoom.d.ts +0 -16
- package/lib/typescript/lib/module/LKNativeModule.d.ts +0 -2
- package/lib/typescript/lib/module/audio/AudioManager.d.ts +0 -9
- package/lib/typescript/lib/module/audio/AudioSession.d.ts +0 -31
- package/lib/typescript/lib/module/audio/MediaRecorder.d.ts +0 -22
- package/lib/typescript/lib/module/components/BarVisualizer.d.ts +0 -10
- package/lib/typescript/lib/module/components/LiveKitRoom.d.ts +0 -22
- package/lib/typescript/lib/module/components/VideoTrack.d.ts +0 -14
- package/lib/typescript/lib/module/components/VideoView.d.ts +0 -9
- package/lib/typescript/lib/module/components/ViewPortDetector.d.ts +0 -29
- package/lib/typescript/lib/module/e2ee/RNE2EEManager.d.ts +0 -21
- package/lib/typescript/lib/module/e2ee/RNKeyProvider.d.ts +0 -30
- package/lib/typescript/lib/module/events/EventEmitter.d.ts +0 -3
- package/lib/typescript/lib/module/hooks/useE2EEManager.d.ts +0 -9
- package/lib/typescript/lib/module/hooks/useMultibandTrackVolume.d.ts +0 -7
- package/lib/typescript/lib/module/hooks/useTrackVolume.d.ts +0 -7
- package/lib/typescript/lib/module/hooks.d.ts +0 -4
- package/lib/typescript/lib/module/index.d.ts +0 -23
- package/lib/typescript/lib/module/logger.d.ts +0 -8
- package/lib/typescript/lib/module/polyfills/MediaRecorderShim.d.ts +0 -1
- package/lib/typescript/lib/module/useParticipant.d.ts +0 -13
- package/lib/typescript/lib/module/useRoom.d.ts +0 -15
- package/lib/typescript/scripts/bootstrap.d.ts +0 -1
- package/lib/typescript/src/polyfills/EncoderDecoderTogether.min.d.ts +0 -0
- package/lib/typescript/src/polyfills/MediaRecorderShim.d.ts +0 -1
- /package/lib/typescript/{src/LKNativeModule.d.ts → LKNativeModule.d.ts} +0 -0
- /package/lib/typescript/{src/audio → audio}/AudioManager.d.ts +0 -0
- /package/lib/typescript/{src/audio → audio}/AudioSession.d.ts +0 -0
- /package/lib/typescript/{src/audio → audio}/MediaRecorder.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/BarVisualizer.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/LiveKitRoom.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/VideoView.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/ViewPortDetector.d.ts +0 -0
- /package/lib/typescript/{src/e2ee → e2ee}/RNKeyProvider.d.ts +0 -0
- /package/lib/typescript/{src/events → events}/EventEmitter.d.ts +0 -0
- /package/lib/typescript/{src/hooks → hooks}/useMultibandTrackVolume.d.ts +0 -0
- /package/lib/typescript/{src/hooks → hooks}/useTrackVolume.d.ts +0 -0
- /package/lib/typescript/{src/hooks.d.ts → hooks.d.ts} +0 -0
- /package/lib/typescript/{src/logger.d.ts → logger.d.ts} +0 -0
- /package/lib/typescript/{lib/module/polyfills → polyfills}/EncoderDecoderTogether.min.d.ts +0 -0
- /package/lib/typescript/{lib/commonjs/polyfills → polyfills}/MediaRecorderShim.d.ts +0 -0
- /package/lib/typescript/{src/useParticipant.d.ts → useParticipant.d.ts} +0 -0
- /package/lib/typescript/{src/useRoom.d.ts → useRoom.d.ts} +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export const __esModule: boolean;
|
|
2
|
-
export const AndroidAudioTypePresets: any;
|
|
3
|
-
export const AudioSession: any;
|
|
4
|
-
export const RNE2EEManager: any;
|
|
5
|
-
export const RNKeyProvider: any;
|
|
6
|
-
export const getDefaultAppleAudioConfigurationForMode: any;
|
|
7
|
-
/**
|
|
8
|
-
* Registers the required globals needed for LiveKit to work.
|
|
9
|
-
*
|
|
10
|
-
* Must be called before using LiveKit.
|
|
11
|
-
*
|
|
12
|
-
* @param options Optional configuration for global registration
|
|
13
|
-
*/
|
|
14
|
-
export function registerGlobals(options: any): void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export const __esModule: boolean;
|
|
2
|
-
export const log: any;
|
|
3
|
-
/**
|
|
4
|
-
* Set the log level for both the `@livekit/react-native` package and the `@livekit-client` package.
|
|
5
|
-
* To set the `@livekit-client` log independently, use the `liveKitClientLogLevel` prop on the `options` object.
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export function setLogLevel(level: any, options?: {}): void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export const __esModule: boolean;
|
|
2
|
-
/** @deprecated use `useRemoteParticipant` or `useLocalParticipant` instead */
|
|
3
|
-
/** @deprecated use `useRemoteParticipant` or `useLocalParticipant` instead */
|
|
4
|
-
export function useParticipant(participant: any): {
|
|
5
|
-
isLocal: boolean;
|
|
6
|
-
isSpeaking: any;
|
|
7
|
-
connectionQuality: any;
|
|
8
|
-
publications: any;
|
|
9
|
-
subscribedTracks: any;
|
|
10
|
-
cameraPublication: any;
|
|
11
|
-
microphonePublication: any;
|
|
12
|
-
screenSharePublication: any;
|
|
13
|
-
metadata: any;
|
|
14
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export const __esModule: boolean;
|
|
2
|
-
/**
|
|
3
|
-
* Default sort for participants, it'll order participants by:
|
|
4
|
-
* 1. dominant speaker (speaker with the loudest audio level)
|
|
5
|
-
* 2. local participant
|
|
6
|
-
* 3. other speakers that are recently active
|
|
7
|
-
* 4. participants with video on
|
|
8
|
-
* 5. by joinedAt
|
|
9
|
-
*/
|
|
10
|
-
export function sortParticipants(participants: any, localParticipant: any): void;
|
|
11
|
-
/** @deprecated wrap your components in a <LiveKitRoom> component instead and use more granular hooks to track state you're interested in */
|
|
12
|
-
export function useRoom(room: any, options: any): {
|
|
13
|
-
error: any;
|
|
14
|
-
participants: any;
|
|
15
|
-
audioTracks: any;
|
|
16
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Handles setting the appropriate AVAudioSession options automatically
|
|
3
|
-
* depending on the audio track states of the Room.
|
|
4
|
-
*
|
|
5
|
-
* @param room
|
|
6
|
-
* @param preferSpeakerOutput
|
|
7
|
-
* @param onConfigureNativeAudio A custom method for determining options used.
|
|
8
|
-
*/
|
|
9
|
-
export function useIOSAudioManagement(room: any, preferSpeakerOutput: boolean | undefined, onConfigureNativeAudio: any): void;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export function getDefaultAppleAudioConfigurationForMode(mode: any, preferSpeakerOutput?: boolean): {
|
|
2
|
-
audioCategory: string;
|
|
3
|
-
audioCategoryOptions: string[];
|
|
4
|
-
audioMode: string;
|
|
5
|
-
};
|
|
6
|
-
export namespace AndroidAudioTypePresets {
|
|
7
|
-
namespace communication {
|
|
8
|
-
const manageAudioFocus: boolean;
|
|
9
|
-
const audioMode: string;
|
|
10
|
-
const audioFocusMode: string;
|
|
11
|
-
const audioStreamType: string;
|
|
12
|
-
const audioAttributesUsageType: string;
|
|
13
|
-
const audioAttributesContentType: string;
|
|
14
|
-
}
|
|
15
|
-
namespace media {
|
|
16
|
-
const manageAudioFocus_1: boolean;
|
|
17
|
-
export { manageAudioFocus_1 as manageAudioFocus };
|
|
18
|
-
const audioMode_1: string;
|
|
19
|
-
export { audioMode_1 as audioMode };
|
|
20
|
-
const audioFocusMode_1: string;
|
|
21
|
-
export { audioFocusMode_1 as audioFocusMode };
|
|
22
|
-
const audioStreamType_1: string;
|
|
23
|
-
export { audioStreamType_1 as audioStreamType };
|
|
24
|
-
const audioAttributesUsageType_1: string;
|
|
25
|
-
export { audioAttributesUsageType_1 as audioAttributesUsageType };
|
|
26
|
-
const audioAttributesContentType_1: string;
|
|
27
|
-
export { audioAttributesContentType_1 as audioAttributesContentType };
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export default class AudioSession {
|
|
31
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A MediaRecord implementation only meant for recording audio streams.
|
|
3
|
-
*
|
|
4
|
-
* @private
|
|
5
|
-
*/
|
|
6
|
-
export class MediaRecorder extends EventTarget<Record<string, Event<string>>, "standard"> {
|
|
7
|
-
constructor(stream: any);
|
|
8
|
-
stream: any;
|
|
9
|
-
registerListener(): void;
|
|
10
|
-
_reactTag: any;
|
|
11
|
-
unregisterListener(): void;
|
|
12
|
-
pause(): void;
|
|
13
|
-
state: string | undefined;
|
|
14
|
-
resume(): void;
|
|
15
|
-
start(): void;
|
|
16
|
-
stop(): void;
|
|
17
|
-
requestData(): void;
|
|
18
|
-
dispatchData(): void;
|
|
19
|
-
_parts: any[] | undefined;
|
|
20
|
-
}
|
|
21
|
-
import { Event } from 'event-target-shim/index';
|
|
22
|
-
import { EventTarget } from 'event-target-shim/index';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function BarVisualizer({ style, state, barCount, trackRef, options }: {
|
|
2
|
-
style?: {} | undefined;
|
|
3
|
-
state: any;
|
|
4
|
-
barCount?: number | undefined;
|
|
5
|
-
trackRef: any;
|
|
6
|
-
options: any;
|
|
7
|
-
}): React.CElement<import("react-native").ViewProps, View>;
|
|
8
|
-
export function useBarAnimator(state: any, columns: any, interval: any): never[];
|
|
9
|
-
import { View } from 'react-native';
|
|
10
|
-
import React from 'react';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** @public */
|
|
2
|
-
/**
|
|
3
|
-
* The `LiveKitRoom` component provides the room context to all its child components.
|
|
4
|
-
* It is generally the starting point of your LiveKit app and the root of the LiveKit component tree.
|
|
5
|
-
* It provides the room state as a React context to all child components, so you don't have to pass it yourself.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <LiveKitRoom
|
|
10
|
-
* token='<livekit-token>'
|
|
11
|
-
* serverUrl='<url-to-livekit-server>'
|
|
12
|
-
* connect={true}
|
|
13
|
-
* >
|
|
14
|
-
* ...
|
|
15
|
-
* </LiveKitRoom>
|
|
16
|
-
* ```
|
|
17
|
-
* @public
|
|
18
|
-
*/
|
|
19
|
-
export function LiveKitRoom(props: any): React.FunctionComponentElement<{
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
}>;
|
|
22
|
-
import * as React from 'react';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Props for the VideoTrack component.
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* VideoTrack component for displaying video tracks in a React Native application.
|
|
7
|
-
* It supports both local and remote video tracks from LiveKit, and handles adaptive streaming for remote tracks.
|
|
8
|
-
*
|
|
9
|
-
* @param props - See VideoTrackProps for details.
|
|
10
|
-
* @returns A React component that renders the given video track.
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
export const VideoTrack: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
14
|
-
import * as React from 'react';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export function VideoView({ style, videoTrack, objectFit, zOrder, mirror }: {
|
|
2
|
-
style?: {} | undefined;
|
|
3
|
-
videoTrack: any;
|
|
4
|
-
objectFit?: string | undefined;
|
|
5
|
-
zOrder: any;
|
|
6
|
-
mirror: any;
|
|
7
|
-
}): React.CElement<import("react-native").ViewProps, View>;
|
|
8
|
-
import { View } from 'react-native';
|
|
9
|
-
import * as React from 'react';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Detects when this is in the viewport and visible.
|
|
3
|
-
*
|
|
4
|
-
* Will not fire visibility changes for zero width/height components.
|
|
5
|
-
*/
|
|
6
|
-
export default class ViewPortDetector extends React.Component<any, any, any> {
|
|
7
|
-
constructor(props: any);
|
|
8
|
-
lastAppStateActive: any;
|
|
9
|
-
interval: TimeoutHandler | null;
|
|
10
|
-
lastValue: any;
|
|
11
|
-
state: {
|
|
12
|
-
rectTop: number;
|
|
13
|
-
rectBottom: number;
|
|
14
|
-
};
|
|
15
|
-
componentDidMount(): void;
|
|
16
|
-
appStateSubscription: import("react-native").NativeEventSubscription | null | undefined;
|
|
17
|
-
componentWillUnmount(): void;
|
|
18
|
-
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
19
|
-
render(): React.CElement<import("react-native").ViewProps, View>;
|
|
20
|
-
view: any;
|
|
21
|
-
}
|
|
22
|
-
import React from 'react';
|
|
23
|
-
declare class TimeoutHandler {
|
|
24
|
-
set handler(arg: any);
|
|
25
|
-
get handler(): any;
|
|
26
|
-
clear(): void;
|
|
27
|
-
}
|
|
28
|
-
import { View } from 'react-native';
|
|
29
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/**
|
|
3
|
-
* @experimental
|
|
4
|
-
*/
|
|
5
|
-
export default class RNE2EEManager extends EventEmitter<[never]> {
|
|
6
|
-
constructor(keyProvider: any);
|
|
7
|
-
keyProvider: any;
|
|
8
|
-
encryptionEnabled: boolean;
|
|
9
|
-
setup(room: any): void;
|
|
10
|
-
room: any;
|
|
11
|
-
setupEventListeners(room: any): void;
|
|
12
|
-
setupE2EESender(publication: any, participant: any): Promise<void>;
|
|
13
|
-
setupE2EEReceiver(publication: any, participant: any): Promise<void>;
|
|
14
|
-
setSifTrailer(trailer: any): void;
|
|
15
|
-
findTrackCryptor(trackId: any): any;
|
|
16
|
-
createFrameCryptorForSender(sender: any, participantId: any): import("@livekit/react-native-webrtc").RTCFrameCryptor;
|
|
17
|
-
createFrameCryptorForReceiver(receiver: any, participantId: any): import("@livekit/react-native-webrtc").RTCFrameCryptor;
|
|
18
|
-
setupEngine(_engine: any): void;
|
|
19
|
-
setParticipantCryptorEnabled(enabled: any, participantIdentity: any): void;
|
|
20
|
-
}
|
|
21
|
-
import EventEmitter from 'events';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Options for construction an RNKeyProvider
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @experimental
|
|
6
|
-
*/
|
|
7
|
-
export default class RNKeyProvider extends BaseKeyProvider {
|
|
8
|
-
constructor(options: any);
|
|
9
|
-
nativeKeyProvider: import("@livekit/react-native-webrtc").RTCKeyProvider;
|
|
10
|
-
getLatestKeyIndex(participantId: any): any;
|
|
11
|
-
/**
|
|
12
|
-
* Accepts a passphrase that's used to create the crypto keys.
|
|
13
|
-
* @param key
|
|
14
|
-
*/
|
|
15
|
-
setSharedKey(key: any, keyIndex: any): Promise<any>;
|
|
16
|
-
ratchetSharedKey(keyIndex: any): Promise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Accepts a passphrase that's used to create the crypto keys for a participant's stream.
|
|
19
|
-
* @param key
|
|
20
|
-
*/
|
|
21
|
-
setKey(participantId: any, key: any, keyIndex: any): Promise<any>;
|
|
22
|
-
ratchetKey(participantIdentity: any, keyIndex: any): Promise<void>;
|
|
23
|
-
setSifTrailer(trailer: any): Promise<any>;
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
27
|
-
get rtcKeyProvider(): import("@livekit/react-native-webrtc").RTCKeyProvider;
|
|
28
|
-
dispose(): void;
|
|
29
|
-
}
|
|
30
|
-
import { BaseKeyProvider } from 'livekit-client';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A hook for tracking the volume of an audio track across multiple frequency bands.
|
|
3
|
-
*
|
|
4
|
-
* @param trackOrTrackReference
|
|
5
|
-
* @returns A number array containing the volume for each frequency band.
|
|
6
|
-
*/
|
|
7
|
-
export function useMultibandTrackVolume(trackOrTrackReference: any, options: any): never[];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export * from "./hooks/useE2EEManager";
|
|
2
|
-
export * from "./hooks/useTrackVolume";
|
|
3
|
-
export * from "./hooks/useMultibandTrackVolume";
|
|
4
|
-
export { useConnectionState, useDataChannel, useIsSpeaking, useLocalParticipant, useLocalParticipantPermissions, useParticipantInfo, useParticipants, useRemoteParticipants, useRemoteParticipant, useSpeakingParticipants, useSortedParticipants, useChat, useIsEncrypted, useRoomInfo, useIsMuted, useParticipantTracks, useLiveKitRoom, RoomContext, useRoomContext, ParticipantContext, useParticipantContext, TrackRefContext, useTrackRefContext, useTracks, isTrackReference, useEnsureTrackRef, useMaybeTrackRefContext, useTrackMutedIndicator, useVisualStableUpdate, useVoiceAssistant, useTrackTranscription } from "@livekit/components-react";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Registers the required globals needed for LiveKit to work.
|
|
3
|
-
*
|
|
4
|
-
* Must be called before using LiveKit.
|
|
5
|
-
*
|
|
6
|
-
* @param options Optional configuration for global registration
|
|
7
|
-
*/
|
|
8
|
-
export function registerGlobals(options: any): void;
|
|
9
|
-
export * from "./hooks";
|
|
10
|
-
export * from "./components/BarVisualizer";
|
|
11
|
-
export * from "./components/LiveKitRoom";
|
|
12
|
-
export * from "./components/VideoTrack";
|
|
13
|
-
export * from "./components/VideoView";
|
|
14
|
-
export * from "./useParticipant";
|
|
15
|
-
export * from "./useRoom";
|
|
16
|
-
export * from "./logger";
|
|
17
|
-
export * from "./audio/AudioManager";
|
|
18
|
-
import AudioSession from './audio/AudioSession';
|
|
19
|
-
import RNE2EEManager from './e2ee/RNE2EEManager';
|
|
20
|
-
import RNKeyProvider from './e2ee/RNKeyProvider';
|
|
21
|
-
import { AndroidAudioTypePresets } from './audio/AudioSession';
|
|
22
|
-
import { getDefaultAppleAudioConfigurationForMode } from './audio/AudioSession';
|
|
23
|
-
export { AudioSession, RNE2EEManager, RNKeyProvider, AndroidAudioTypePresets, getDefaultAppleAudioConfigurationForMode };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Set the log level for both the `@livekit/react-native` package and the `@livekit-client` package.
|
|
3
|
-
* To set the `@livekit-client` log independently, use the `liveKitClientLogLevel` prop on the `options` object.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export function setLogLevel(level: any, options?: {}): void;
|
|
7
|
-
export const log: loglevel.Logger;
|
|
8
|
-
import loglevel from 'loglevel';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** @deprecated use `useRemoteParticipant` or `useLocalParticipant` instead */
|
|
2
|
-
/** @deprecated use `useRemoteParticipant` or `useLocalParticipant` instead */
|
|
3
|
-
export function useParticipant(participant: any): {
|
|
4
|
-
isLocal: boolean;
|
|
5
|
-
isSpeaking: boolean;
|
|
6
|
-
connectionQuality: any;
|
|
7
|
-
publications: never[];
|
|
8
|
-
subscribedTracks: never[];
|
|
9
|
-
cameraPublication: any;
|
|
10
|
-
microphonePublication: any;
|
|
11
|
-
screenSharePublication: any;
|
|
12
|
-
metadata: undefined;
|
|
13
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/** @deprecated wrap your components in a <LiveKitRoom> component instead and use more granular hooks to track state you're interested in */
|
|
2
|
-
export function useRoom(room: any, options: any): {
|
|
3
|
-
error: undefined;
|
|
4
|
-
participants: never[];
|
|
5
|
-
audioTracks: never[];
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Default sort for participants, it'll order participants by:
|
|
9
|
-
* 1. dominant speaker (speaker with the loudest audio level)
|
|
10
|
-
* 2. local participant
|
|
11
|
-
* 3. other speakers that are recently active
|
|
12
|
-
* 4. participants with video on
|
|
13
|
-
* 5. by joinedAt
|
|
14
|
-
*/
|
|
15
|
-
export function sortParticipants(participants: any, localParticipant: any): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|