Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/six-rats-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@livekit/react-native': patch
---

Additional fix for DOMException polyfil
5 changes: 4 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// Automatic polyfills, keep these at the top.
import 'well-known-symbols/Symbol.asyncIterator/auto';
import 'well-known-symbols/Symbol.iterator/auto';
import './polyfills/MediaRecorderShim';
import './polyfills/DOMException';
// Caution: This has a transitive import of livekit-client, keep last.
import './polyfills/MediaRecorderShim';

import { registerGlobals as webrtcRegisterGlobals } from '@livekit/react-native-webrtc';
import { setupURLPolyfill } from 'react-native-url-polyfill';
import './polyfills/EncoderDecoderTogether.min.js';
Expand Down
3 changes: 3 additions & 0 deletions src/polyfills/MediaRecorderShim.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Note: This shim has a transitive import of livekit-client.
*/
import { MediaRecorder } from "../audio/MediaRecorder";

function shimMediaRecorder() {
Expand Down
Loading