Wondering what’s next for npm?Check out our public roadmap! »

    webrtc-audio-fix
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.4 • Public • Published

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

    Install

    npm i webrtc-audio-fix

    DownloadsWeekly Downloads

    1

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    15.9 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar