Skip to content

Commit 8855365

Browse files
authored
Additional fix for DOMException issue (#346)
1 parent b817913 commit 8855365

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.changeset/six-rats-dress.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@livekit/react-native': patch
3+
---
4+
5+
Additional fix for DOMException polyfil

src/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
// Automatic polyfills, keep these at the top.
12
import 'well-known-symbols/Symbol.asyncIterator/auto';
23
import 'well-known-symbols/Symbol.iterator/auto';
3-
import './polyfills/MediaRecorderShim';
44
import './polyfills/DOMException';
5+
// Caution: This has a transitive import of livekit-client, keep last.
6+
import './polyfills/MediaRecorderShim';
7+
58
import { registerGlobals as webrtcRegisterGlobals } from '@livekit/react-native-webrtc';
69
import { setupURLPolyfill } from 'react-native-url-polyfill';
710
import './polyfills/EncoderDecoderTogether.min.js';

src/polyfills/MediaRecorderShim.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Note: This shim has a transitive import of livekit-client.
3+
*/
14
import { MediaRecorder } from "../audio/MediaRecorder";
25

36
function shimMediaRecorder() {

0 commit comments

Comments
 (0)