Hi:
THAT WORKED !
So if someone wants to BYPASS that horrible Safari [bug|limitation|protection] stuff (you cannot stream without publishing), you can bypass that forcing TURN server like Slack did:
Maybe you should put that in FAQ because I am pretty sure many developers will ask for that soon.
So for safari:
- use H264 codec (in videoroom chat config), do not use VP8
- Force Turn:
in janus.js
//var pc_config = {"iceServers": iceServers, "iceTransportPolicy": iceTransportPolicy};
var pc_config = {"iceServers": iceServers, iceTransportPolicy: browser === 'safari' ? 'relay' : 'all'};
In your own JS : use that:
server: server,
iceServers :[{url: 'turn:numb.viagenie.ca', // or use coturn
credential: '***',
username: 'yarek'
}],
regards