webrtc-audio-fix
v1.0.4
Published
Fix Chrome WebRTC audio track bug
Downloads
1
Readme
WebRTCAudioFix
A small script for fix WebRTC audio track bug in Chrome.
Bug detail see: https://bugs.chromium.org/p/chromium/issues/detail?id=987548
How to use
# import package
import { createFix } from 'webrtc-audio-fix';
# Give your MediaStream and video element
const fix = createFix(mediaStream, videoElement);
# Delete when not needed
fix.destroy();
This script use StorageEvent
for multiple tabs communication, you can set the local storage key to be stored by yourself, but it must be unique! Default is rtc_live_storage_broadcast_channel
import { setChannelLocalStorageKey } from 'webrtc-audio-fix';
# Set
setChannelLocalStorageKey(key);