mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 15:29:14 +02:00
make sure its audio
This commit is contained in:
+1
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user