diff --git a/modules/web/web.js b/modules/web/web.js index 49ef430..955c9b7 100644 --- a/modules/web/web.js +++ b/modules/web/web.js @@ -357,6 +357,7 @@ async function whepConnect() { url: url, onTrack: (evt) => { + if(evt.track.kind !== "audio") return; whepLog('Track received, starting playback', 'ok'); whepAudio = new Audio(); @@ -387,8 +388,6 @@ async function whepConnect() { } }); - await whepReader.start(); - whepLog('Reader started, waiting for media…'); } catch (err) {