1.0.4 • Published 4 years ago

webrtc-audio-fix v1.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

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);
1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago