@livekit/react-native 2.9.3 → 2.9.5

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 +26 -16
  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
@@ -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;
@@ -1,9 +0,0 @@
1
- /**
2
- * @experimental
3
- */
4
- export function useRNE2EEManager(options: any): {
5
- keyProvider: RNKeyProvider;
6
- e2eeManager: RNE2EEManager;
7
- };
8
- import { RNKeyProvider } from '..';
9
- import RNE2EEManager from '../e2ee/RNE2EEManager';
@@ -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,7 +0,0 @@
1
- /**
2
- * A hook for tracking the volume of an audio track.
3
- *
4
- * @param trackOrTrackReference
5
- * @returns A number between 0-1 representing the volume.
6
- */
7
- export function useTrackVolume(trackOrTrackReference: any): number;
@@ -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,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 {};
@@ -1 +0,0 @@
1
- export {};
File without changes
File without changes