Henrique Paim
New Member
I have a system broadcasting WebRTC and players on mobile devices that just receive the audio/video. This work well on computers and Android devices. However, on iOS the audio/video is not working. I don't have error messages as well.
But when I include these lines on the player, it works well on iOS. The only problem is that the Safari browser asks permission to use the camera and microphone.
Removing the lines above, the browser doesn't ask permission but the audio/video doesn't work.
This is the code I'm using to start the player (work wall on any browser that is not Safari and not on iOS)
Does anyone have any suggestions? I'm looking for a solution where I have a page just receiving audio/video via WebRTC and that page works well on Safari.
But when I include these lines on the player, it works well on iOS. The only problem is that the Safari browser asks permission to use the camera and microphone.
JavaScript:
Flashphoner.getMediaDevices(null, true).then(function (list) {
}).catch(function (error) {
console.warn(error);
});
This is the code I'm using to start the player (work wall on any browser that is not Safari and not on iOS)
JavaScript:
var session = Flashphoner.getSessions()[0];
session.createStream({
name: channel_name_here,
display: discplay_container
}).play();