make sure its audio

This commit is contained in:
2026-04-18 20:25:54 +02:00
parent e20a449932
commit dae95d5298
+1 -2
View File
@@ -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) {