cloudflare / templates

A collection of starter templates and examples for Cloudflare Workers and Pages
https://cloudflareworkers.com
MIT License
999 stars 632 forks source link

Add webrtc-adapter to Stream examples #108

Closed irvinebroque closed 1 year ago

nnazo commented 2 years ago

If we want to avoid the shim dependency we could modify WHEPClient.ts lines 66-67 to the following

        this.peerConnection.addEventListener('iceconnectionstatechange', ev => {
            if (this.peerConnection.iceConnectionState !== 'connected') {