@livekit/react-native 2.9.3 → 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.
Files changed (86) hide show
  1. package/android/build.gradle +1 -3
  2. package/lib/commonjs/components/VideoTrack.js +6 -2
  3. package/lib/commonjs/components/VideoTrack.js.map +1 -1
  4. package/lib/commonjs/components/VideoView.js +3 -1
  5. package/lib/commonjs/components/VideoView.js.map +1 -1
  6. package/lib/commonjs/index.js.map +1 -1
  7. package/lib/module/components/VideoTrack.js +6 -2
  8. package/lib/module/components/VideoTrack.js.map +1 -1
  9. package/lib/module/components/VideoView.js +3 -1
  10. package/lib/module/components/VideoView.js.map +1 -1
  11. package/lib/module/index.js.map +1 -1
  12. package/lib/typescript/{src/components → components}/VideoTrack.d.ts +1 -1
  13. package/lib/typescript/{src/index.d.ts → index.d.ts} +1 -1
  14. package/package.json +25 -15
  15. package/src/components/VideoTrack.tsx +2 -0
  16. package/src/components/VideoView.tsx +1 -0
  17. package/src/index.tsx +1 -1
  18. package/lib/typescript/babel.config.d.ts +0 -1
  19. package/lib/typescript/docs/assets/icons.d.ts +0 -0
  20. package/lib/typescript/docs/assets/main.d.ts +0 -0
  21. package/lib/typescript/docs/assets/navigation.d.ts +0 -0
  22. package/lib/typescript/docs/assets/search.d.ts +0 -0
  23. package/lib/typescript/lib/commonjs/LKNativeModule.d.ts +0 -3
  24. package/lib/typescript/lib/commonjs/audio/AudioManager.d.ts +0 -10
  25. package/lib/typescript/lib/commonjs/audio/AudioSession.d.ts +0 -33
  26. package/lib/typescript/lib/commonjs/audio/MediaRecorder.d.ts +0 -24
  27. package/lib/typescript/lib/commonjs/components/BarVisualizer.d.ts +0 -32
  28. package/lib/typescript/lib/commonjs/components/LiveKitRoom.d.ts +0 -20
  29. package/lib/typescript/lib/commonjs/components/VideoTrack.d.ts +0 -2
  30. package/lib/typescript/lib/commonjs/components/VideoView.d.ts +0 -14
  31. package/lib/typescript/lib/commonjs/components/ViewPortDetector.d.ts +0 -30
  32. package/lib/typescript/lib/commonjs/e2ee/RNE2EEManager.d.ts +0 -39
  33. package/lib/typescript/lib/commonjs/e2ee/RNKeyProvider.d.ts +0 -33
  34. package/lib/typescript/lib/commonjs/events/EventEmitter.d.ts +0 -4
  35. package/lib/typescript/lib/commonjs/hooks/useE2EEManager.d.ts +0 -8
  36. package/lib/typescript/lib/commonjs/hooks/useMultibandTrackVolume.d.ts +0 -8
  37. package/lib/typescript/lib/commonjs/hooks/useTrackVolume.d.ts +0 -8
  38. package/lib/typescript/lib/commonjs/hooks.d.ts +0 -32
  39. package/lib/typescript/lib/commonjs/index.d.ts +0 -14
  40. package/lib/typescript/lib/commonjs/logger.d.ts +0 -8
  41. package/lib/typescript/lib/commonjs/useParticipant.d.ts +0 -14
  42. package/lib/typescript/lib/commonjs/useRoom.d.ts +0 -16
  43. package/lib/typescript/lib/module/LKNativeModule.d.ts +0 -2
  44. package/lib/typescript/lib/module/audio/AudioManager.d.ts +0 -9
  45. package/lib/typescript/lib/module/audio/AudioSession.d.ts +0 -31
  46. package/lib/typescript/lib/module/audio/MediaRecorder.d.ts +0 -22
  47. package/lib/typescript/lib/module/components/BarVisualizer.d.ts +0 -10
  48. package/lib/typescript/lib/module/components/LiveKitRoom.d.ts +0 -22
  49. package/lib/typescript/lib/module/components/VideoTrack.d.ts +0 -14
  50. package/lib/typescript/lib/module/components/VideoView.d.ts +0 -9
  51. package/lib/typescript/lib/module/components/ViewPortDetector.d.ts +0 -29
  52. package/lib/typescript/lib/module/e2ee/RNE2EEManager.d.ts +0 -37
  53. package/lib/typescript/lib/module/e2ee/RNKeyProvider.d.ts +0 -30
  54. package/lib/typescript/lib/module/events/EventEmitter.d.ts +0 -3
  55. package/lib/typescript/lib/module/hooks/useE2EEManager.d.ts +0 -9
  56. package/lib/typescript/lib/module/hooks/useMultibandTrackVolume.d.ts +0 -7
  57. package/lib/typescript/lib/module/hooks/useTrackVolume.d.ts +0 -7
  58. package/lib/typescript/lib/module/hooks.d.ts +0 -4
  59. package/lib/typescript/lib/module/index.d.ts +0 -23
  60. package/lib/typescript/lib/module/logger.d.ts +0 -8
  61. package/lib/typescript/lib/module/polyfills/MediaRecorderShim.d.ts +0 -1
  62. package/lib/typescript/lib/module/useParticipant.d.ts +0 -13
  63. package/lib/typescript/lib/module/useRoom.d.ts +0 -15
  64. package/lib/typescript/scripts/bootstrap.d.ts +0 -1
  65. package/lib/typescript/src/polyfills/EncoderDecoderTogether.min.d.ts +0 -0
  66. package/lib/typescript/src/polyfills/MediaRecorderShim.d.ts +0 -1
  67. /package/lib/typescript/{src/LKNativeModule.d.ts → LKNativeModule.d.ts} +0 -0
  68. /package/lib/typescript/{src/audio → audio}/AudioManager.d.ts +0 -0
  69. /package/lib/typescript/{src/audio → audio}/AudioSession.d.ts +0 -0
  70. /package/lib/typescript/{src/audio → audio}/MediaRecorder.d.ts +0 -0
  71. /package/lib/typescript/{src/components → components}/BarVisualizer.d.ts +0 -0
  72. /package/lib/typescript/{src/components → components}/LiveKitRoom.d.ts +0 -0
  73. /package/lib/typescript/{src/components → components}/VideoView.d.ts +0 -0
  74. /package/lib/typescript/{src/components → components}/ViewPortDetector.d.ts +0 -0
  75. /package/lib/typescript/{src/e2ee → e2ee}/RNE2EEManager.d.ts +0 -0
  76. /package/lib/typescript/{src/e2ee → e2ee}/RNKeyProvider.d.ts +0 -0
  77. /package/lib/typescript/{src/events → events}/EventEmitter.d.ts +0 -0
  78. /package/lib/typescript/{src/hooks → hooks}/useE2EEManager.d.ts +0 -0
  79. /package/lib/typescript/{src/hooks → hooks}/useMultibandTrackVolume.d.ts +0 -0
  80. /package/lib/typescript/{src/hooks → hooks}/useTrackVolume.d.ts +0 -0
  81. /package/lib/typescript/{src/hooks.d.ts → hooks.d.ts} +0 -0
  82. /package/lib/typescript/{src/logger.d.ts → logger.d.ts} +0 -0
  83. /package/lib/typescript/{lib/module/polyfills → polyfills}/EncoderDecoderTogether.min.d.ts +0 -0
  84. /package/lib/typescript/{lib/commonjs/polyfills → polyfills}/MediaRecorderShim.d.ts +0 -0
  85. /package/lib/typescript/{src/useParticipant.d.ts → useParticipant.d.ts} +0 -0
  86. /package/lib/typescript/{src/useRoom.d.ts → useRoom.d.ts} +0 -0
@@ -98,6 +98,7 @@ export const VideoView = ({
98
98
  >
99
99
  <RTCView
100
100
  style={styles.videoView}
101
+ // @ts-expect-error
101
102
  streamURL={mediaStream?.toURL() ?? ''}
102
103
  objectFit={objectFit}
103
104
  zOrder={zOrder}
package/src/index.tsx CHANGED
@@ -27,9 +27,9 @@ export interface RegisterGlobalsOptions {
27
27
  /**
28
28
  * Automatically configure audio session before accessing microphone.
29
29
  * When enabled, sets the iOS audio category to 'playAndRecord' before getUserMedia.
30
+ * Has no effect on non-iOS platforms.
30
31
  *
31
32
  * @default true
32
- * @platform ios
33
33
  */
34
34
  autoConfigureAudioSession?: boolean;
35
35
  }
@@ -1 +0,0 @@
1
- export const presets: string[];
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +0,0 @@
1
- export const __esModule: boolean;
2
- export default LiveKitModule;
3
- declare const LiveKitModule: any;
@@ -1,10 +0,0 @@
1
- export const __esModule: boolean;
2
- /**
3
- * Handles setting the appropriate AVAudioSession options automatically
4
- * depending on the audio track states of the Room.
5
- *
6
- * @param room
7
- * @param preferSpeakerOutput
8
- * @param onConfigureNativeAudio A custom method for determining options used.
9
- */
10
- export function useIOSAudioManagement(room: any, preferSpeakerOutput: boolean | undefined, onConfigureNativeAudio: any): void;
@@ -1,33 +0,0 @@
1
- export const __esModule: boolean;
2
- export namespace AndroidAudioTypePresets {
3
- namespace communication {
4
- const manageAudioFocus: boolean;
5
- const audioMode: string;
6
- const audioFocusMode: string;
7
- const audioStreamType: string;
8
- const audioAttributesUsageType: string;
9
- const audioAttributesContentType: string;
10
- }
11
- namespace media {
12
- const manageAudioFocus_1: boolean;
13
- export { manageAudioFocus_1 as manageAudioFocus };
14
- const audioMode_1: string;
15
- export { audioMode_1 as audioMode };
16
- const audioFocusMode_1: string;
17
- export { audioFocusMode_1 as audioFocusMode };
18
- const audioStreamType_1: string;
19
- export { audioStreamType_1 as audioStreamType };
20
- const audioAttributesUsageType_1: string;
21
- export { audioAttributesUsageType_1 as audioAttributesUsageType };
22
- const audioAttributesContentType_1: string;
23
- export { audioAttributesContentType_1 as audioAttributesContentType };
24
- }
25
- }
26
- export default AudioSession;
27
- export function getDefaultAppleAudioConfigurationForMode(mode: any, preferSpeakerOutput?: boolean): {
28
- audioCategory: string;
29
- audioCategoryOptions: string[];
30
- audioMode: string;
31
- };
32
- declare class AudioSession {
33
- }
@@ -1,24 +0,0 @@
1
- export const __esModule: boolean;
2
- declare const MediaRecorder_base: any;
3
- /**
4
- * A MediaRecord implementation only meant for recording audio streams.
5
- *
6
- * @private
7
- */
8
- export class MediaRecorder extends MediaRecorder_base {
9
- [x: string]: any;
10
- constructor(stream: any);
11
- stream: any;
12
- registerListener(): void;
13
- _reactTag: any;
14
- unregisterListener(): void;
15
- pause(): void;
16
- state: string | undefined;
17
- resume(): void;
18
- start(): void;
19
- stop(): void;
20
- requestData(): void;
21
- dispatchData(): void;
22
- _parts: any[] | undefined;
23
- }
24
- export {};
@@ -1,32 +0,0 @@
1
- export const __esModule: boolean;
2
- /**
3
- * @beta
4
- */
5
- /**
6
- * Visualizes audio signals from a TrackReference as bars.
7
- * If the `state` prop is set, it automatically transitions between VoiceAssistant states.
8
- * @beta
9
- *
10
- * @remarks For VoiceAssistant state transitions this component requires a voice assistant agent running with livekit-agents \>= 0.9.0
11
- *
12
- * @example
13
- * ```tsx
14
- * function SimpleVoiceAssistant() {
15
- * const { state, audioTrack } = useVoiceAssistant();
16
- * return (
17
- * <BarVisualizer
18
- * state={state}
19
- * trackRef={audioTrack}
20
- * />
21
- * );
22
- * }
23
- * ```
24
- */
25
- export function BarVisualizer({ style, state, barCount, trackRef, options }: {
26
- style?: {} | undefined;
27
- state: any;
28
- barCount?: number | undefined;
29
- trackRef: any;
30
- options: any;
31
- }): any;
32
- export function useBarAnimator(state: any, columns: any, interval: any): any;
@@ -1,20 +0,0 @@
1
- export const __esModule: boolean;
2
- /** @public */
3
- /**
4
- * The `LiveKitRoom` component provides the room context to all its child components.
5
- * It is generally the starting point of your LiveKit app and the root of the LiveKit component tree.
6
- * It provides the room state as a React context to all child components, so you don't have to pass it yourself.
7
- *
8
- * @example
9
- * ```tsx
10
- * <LiveKitRoom
11
- * token='<livekit-token>'
12
- * serverUrl='<url-to-livekit-server>'
13
- * connect={true}
14
- * >
15
- * ...
16
- * </LiveKitRoom>
17
- * ```
18
- * @public
19
- */
20
- export function LiveKitRoom(props: any): any;
@@ -1,2 +0,0 @@
1
- export const __esModule: boolean;
2
- export const VideoTrack: any;
@@ -1,14 +0,0 @@
1
- export const __esModule: boolean;
2
- /**
3
- * @deprecated use `VideoTrack` and `VideoTrackProps` instead.
4
- */
5
- /**
6
- * @deprecated use `VideoTrack` and `VideoTrackProps` instead.
7
- */
8
- export function VideoView({ style, videoTrack, objectFit, zOrder, mirror }: {
9
- style?: {} | undefined;
10
- videoTrack: any;
11
- objectFit?: string | undefined;
12
- zOrder: any;
13
- mirror: any;
14
- }): any;
@@ -1,30 +0,0 @@
1
- export const __esModule: boolean;
2
- export default ViewPortDetector;
3
- declare const ViewPortDetector_base: any;
4
- /**
5
- * Detects when this is in the viewport and visible.
6
- *
7
- * Will not fire visibility changes for zero width/height components.
8
- */
9
- declare class ViewPortDetector extends ViewPortDetector_base {
10
- [x: string]: any;
11
- constructor(props: any);
12
- lastAppStateActive: any;
13
- interval: TimeoutHandler | null;
14
- lastValue: any;
15
- state: {
16
- rectTop: number;
17
- rectBottom: number;
18
- };
19
- componentDidMount(): void;
20
- appStateSubscription: any;
21
- componentWillUnmount(): void;
22
- UNSAFE_componentWillReceiveProps(nextProps: any): void;
23
- render(): any;
24
- view: any;
25
- }
26
- declare class TimeoutHandler {
27
- set handler(arg: any);
28
- get handler(): any;
29
- clear(): void;
30
- }
@@ -1,39 +0,0 @@
1
- export const __esModule: boolean;
2
- export default RNE2EEManager;
3
- declare const RNE2EEManager_base: any;
4
- /**
5
- * @experimental
6
- */
7
- declare class RNE2EEManager extends RNE2EEManager_base {
8
- [x: string]: any;
9
- constructor(keyProvider: any, dcEncryptionEnabled?: boolean);
10
- keyProvider: any;
11
- encryptionEnabled: boolean;
12
- dataChannelEncryptionEnabled: boolean;
13
- get isEnabled(): boolean;
14
- set isDataChannelEncryptionEnabled(arg: boolean);
15
- get isDataChannelEncryptionEnabled(): boolean;
16
- setup(room: any): void;
17
- room: any;
18
- setupEventListeners(room: any): void;
19
- setupE2EESender(publication: any, participant: any): Promise<void>;
20
- setupE2EEReceiver(publication: any, participant: any): Promise<void>;
21
- setSifTrailer(trailer: any): void;
22
- getDataPacketCryptor(): Promise<any>;
23
- dataPacketCryptor: any;
24
- encryptData(data: any): Promise<{
25
- uuid: string;
26
- payload: any;
27
- iv: any;
28
- keyIndex: any;
29
- }>;
30
- handleEncryptedData(payload: any, iv: any, participantIdentity: any, keyIndex: any): Promise<{
31
- uuid: string;
32
- payload: any;
33
- }>;
34
- findTrackCryptor(trackId: any): any;
35
- createFrameCryptorForSender(sender: any, participantId: any): any;
36
- createFrameCryptorForReceiver(receiver: any, participantId: any): any;
37
- setupEngine(_engine: any): void;
38
- setParticipantCryptorEnabled(enabled: any, participantIdentity: any): void;
39
- }
@@ -1,33 +0,0 @@
1
- export const __esModule: boolean;
2
- export default RNKeyProvider;
3
- declare const RNKeyProvider_base: any;
4
- /**
5
- * Options for construction an RNKeyProvider
6
- */
7
- /**
8
- * @experimental
9
- */
10
- declare class RNKeyProvider extends RNKeyProvider_base {
11
- [x: string]: any;
12
- constructor(options: any);
13
- nativeKeyProvider: any;
14
- getLatestKeyIndex(participantId: any): any;
15
- /**
16
- * Accepts a passphrase that's used to create the crypto keys.
17
- * @param key
18
- */
19
- setSharedKey(key: any, keyIndex: any): Promise<any>;
20
- ratchetSharedKey(keyIndex: any): Promise<void>;
21
- /**
22
- * Accepts a passphrase that's used to create the crypto keys for a participant's stream.
23
- * @param key
24
- */
25
- setKey(participantId: any, key: any, keyIndex: any): Promise<any>;
26
- ratchetKey(participantIdentity: any, keyIndex: any): Promise<void>;
27
- setSifTrailer(trailer: any): Promise<any>;
28
- /**
29
- * @internal
30
- */
31
- get rtcKeyProvider(): any;
32
- dispose(): void;
33
- }
@@ -1,4 +0,0 @@
1
- export const __esModule: boolean;
2
- export function addListener(listener: any, eventName: any, eventHandler: any): void;
3
- export function removeListener(listener: any): void;
4
- export function setupNativeEvents(): void;
@@ -1,8 +0,0 @@
1
- export const __esModule: boolean;
2
- /**
3
- * @experimental
4
- */
5
- export function useRNE2EEManager(options: any): {
6
- keyProvider: any;
7
- e2eeManager: any;
8
- };
@@ -1,8 +0,0 @@
1
- export const __esModule: boolean;
2
- /**
3
- * A hook for tracking the volume of an audio track across multiple frequency bands.
4
- *
5
- * @param trackOrTrackReference
6
- * @returns A number array containing the volume for each frequency band.
7
- */
8
- export function useMultibandTrackVolume(trackOrTrackReference: any, options: any): any;
@@ -1,8 +0,0 @@
1
- export const __esModule: boolean;
2
- /**
3
- * A hook for tracking the volume of an audio track.
4
- *
5
- * @param trackOrTrackReference
6
- * @returns A number between 0-1 representing the volume.
7
- */
8
- export function useTrackVolume(trackOrTrackReference: any): any;
@@ -1,32 +0,0 @@
1
- export const __esModule: boolean;
2
- export const ParticipantContext: any;
3
- export const RoomContext: any;
4
- export const TrackRefContext: any;
5
- export const isTrackReference: any;
6
- export const useChat: any;
7
- export const useConnectionState: any;
8
- export const useDataChannel: any;
9
- export const useEnsureTrackRef: any;
10
- export const useIsEncrypted: any;
11
- export const useIsMuted: any;
12
- export const useIsSpeaking: any;
13
- export const useLiveKitRoom: any;
14
- export const useLocalParticipant: any;
15
- export const useLocalParticipantPermissions: any;
16
- export const useMaybeTrackRefContext: any;
17
- export const useParticipantContext: any;
18
- export const useParticipantInfo: any;
19
- export const useParticipantTracks: any;
20
- export const useParticipants: any;
21
- export const useRemoteParticipant: any;
22
- export const useRemoteParticipants: any;
23
- export const useRoomContext: any;
24
- export const useRoomInfo: any;
25
- export const useSortedParticipants: any;
26
- export const useSpeakingParticipants: any;
27
- export const useTrackMutedIndicator: any;
28
- export const useTrackRefContext: any;
29
- export const useTrackTranscription: any;
30
- export const useTracks: any;
31
- export const useVisualStableUpdate: any;
32
- export const useVoiceAssistant: any;
@@ -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,2 +0,0 @@
1
- export default LiveKitModule;
2
- declare const LiveKitModule: any;
@@ -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,37 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * @experimental
4
- */
5
- export default class RNE2EEManager extends EventEmitter<[never]> {
6
- constructor(keyProvider: any, dcEncryptionEnabled?: boolean);
7
- keyProvider: any;
8
- encryptionEnabled: boolean;
9
- dataChannelEncryptionEnabled: boolean;
10
- get isEnabled(): boolean;
11
- set isDataChannelEncryptionEnabled(arg: boolean);
12
- get isDataChannelEncryptionEnabled(): boolean;
13
- setup(room: any): void;
14
- room: any;
15
- setupEventListeners(room: any): void;
16
- setupE2EESender(publication: any, participant: any): Promise<void>;
17
- setupE2EEReceiver(publication: any, participant: any): Promise<void>;
18
- setSifTrailer(trailer: any): void;
19
- getDataPacketCryptor(): Promise<any>;
20
- dataPacketCryptor: any;
21
- encryptData(data: any): Promise<{
22
- uuid: string;
23
- payload: any;
24
- iv: any;
25
- keyIndex: any;
26
- }>;
27
- handleEncryptedData(payload: any, iv: any, participantIdentity: any, keyIndex: any): Promise<{
28
- uuid: string;
29
- payload: any;
30
- }>;
31
- findTrackCryptor(trackId: any): any;
32
- createFrameCryptorForSender(sender: any, participantId: any): import("@livekit/react-native-webrtc").RTCFrameCryptor;
33
- createFrameCryptorForReceiver(receiver: any, participantId: any): import("@livekit/react-native-webrtc").RTCFrameCryptor;
34
- setupEngine(_engine: any): void;
35
- setParticipantCryptorEnabled(enabled: any, participantIdentity: any): void;
36
- }
37
- 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,3 +0,0 @@
1
- export function setupNativeEvents(): void;
2
- export function addListener(listener: any, eventName: any, eventHandler: any): void;
3
- export function removeListener(listener: any): void;