Skip to content

A small script for fix WebRTC audio track bug in Chrome.

License

Notifications You must be signed in to change notification settings

Jesseyx/webrtc-audio-fix

Repository files navigation

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

About

A small script for fix WebRTC audio track bug in Chrome.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published