Another issue here, the stream works as a publisher in safari but not as a subscriber. When connecting as a subscriber in safari it’s just a black screen, but it works fine in chrome the opposite way around.
Code to join as a subscriber is as follows:
function joinCam(sessionId,token,videoId)
{
OV = new OpenVidu();
OVSession = OV.initSession();
// when stream is created, show in post
OVSession.on(‘streamCreated’,function (event) {
OVSubscriber = OVSession.subscribe(event.stream,‘vidu-video-’+videoId);
OVSubscriber.subscribeToVideo(true);
OVSubscriber.subscribeToAudio(true);
})
OVSession.connect(token).then(() => {
}).catch(error =>{
alert('There was an error connecting to the session: ’ + error.message);
})
}