@livekit/react-native 1.1.2 → 1.3.0

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/src/index.tsx CHANGED
@@ -1,6 +1,10 @@
1
1
  import { registerGlobals as webrtcRegisterGlobals } from '@livekit/react-native-webrtc';
2
2
  import { setupURLPolyfill } from 'react-native-url-polyfill';
3
- import AudioSession from './audio/AudioSession';
3
+ import 'fastestsmallesttextencoderdecoder';
4
+ import AudioSession, {
5
+ AndroidAudioTypePresets,
6
+ AndroidAudioTypeOptions,
7
+ } from './audio/AudioSession';
4
8
  import type { AudioConfiguration } from './audio/AudioSession';
5
9
  import { PixelRatio, Platform } from 'react-native';
6
10
  import type { LiveKitReactNativeInfo } from 'livekit-client';
@@ -17,6 +21,8 @@ export function registerGlobals() {
17
21
  fixWebrtcAdapter();
18
22
  shimPromiseAllSettled();
19
23
  shimArrayAt();
24
+ shimAsyncIterator();
25
+ shimIterator();
20
26
  }
21
27
  function livekitRegisterGlobals() {
22
28
  let lkGlobal: LiveKitReactNativeInfo = {
@@ -52,7 +58,22 @@ function shimArrayAt() {
52
58
  }
53
59
  }
54
60
 
61
+ function shimAsyncIterator() {
62
+ var shim = require('well-known-symbols/Symbol.asyncIterator/shim');
63
+ shim();
64
+ }
65
+
66
+ function shimIterator() {
67
+ var shim = require('well-known-symbols/Symbol.iterator/shim');
68
+ shim();
69
+ }
70
+
55
71
  export * from './components/VideoView';
56
72
  export * from './useParticipant';
57
73
  export * from './useRoom';
58
- export { AudioSession, AudioConfiguration };
74
+ export {
75
+ AudioSession,
76
+ AudioConfiguration,
77
+ AndroidAudioTypeOptions,
78
+ AndroidAudioTypePresets,
79
+ };