Eyevinn / webrtc-player

WebRTC (recvonly) player
MIT License
88 stars 19 forks source link

Safari fails to establish a connection #4

Closed birme closed 2 years ago

birme commented 2 years ago

Steps to reproduce:

In the whip-project run:

ICE_SERVERS=turn:eyevinn:whip@turn.eyevinn.technology:3478 npm run dev

Then start the webrtc-player demo with:

BROADCASTER_URL=http://localhost:8001/broadcaster ICE_SERVERS=turn:eyevinn:whip@turn.eyevinn.technology:3478 npm run dev

Open Chrome on http://localhost:1234 and start ingesting.

Open Safari on http://localhost:2345 and try to playback.

Find out that the SDP sent from Safari does not contain any tracks...

birme commented 2 years ago

Adding this:

    this.localPeer.addTransceiver("video", { direction: "recvonly" });
    this.localPeer.addTransceiver("audio", { direction: "recvonly" });

seems to solve the issue for Safari