There's a problem with some iOS devices such as iPhone with the Flashphoner.playFirstVideo() function.
After a few comments about streams not showing up and trying to figure out the cause, it seems that the result of that particular function is a rejection which causes the stream to never start.
The standard function for WebRTC Safari users we use is this:
Flashphoner.playFirstVideo(remoteVideo, false, '/streamer/'+ffver+'/dependencies/media/preloader.mp4').then(function () {
startSession();
});
For most users this works correctly.
However sometimes the startSession() would not fire. We have adjusted the function to notify us of this:
Flashphoner.playFirstVideo(remoteVideo, false, '/streamer/'+ffver+'/dependencies/media/preloader.mp4').then(function () {
updateLog("Play first vid ok, starting session");
startSession();
}, function(error) {
updateLog("Error playing firstvideo");
});
I cannot reproduce the problem myself and most users have no problems either so it's difficult to find a solution. If I try to log the error (the error parameter) to a server script it's empty (probably a javascript object) so this doesn't help either.
I thought that may be it would be a result of not interacting with the site (immediate action) but that's not the case because displaying a play button when the promise is rejected and then executing the same function again when the user clicks on it will still result in a rejection.
current client version: 28.2753133
server: v.0.5.28.2753-5.2.566
/edit:
This debug info is also produced when this happens:
[16:29:11.420] 16:29:11 INFO webrtc - Autoplay detected! Trying to play a video with a muted sound...
Which does not work by the way because the playfirstvideo still fails. How can we configure that all streams are played without sound? We do not need the webcam sound.
After a few comments about streams not showing up and trying to figure out the cause, it seems that the result of that particular function is a rejection which causes the stream to never start.
The standard function for WebRTC Safari users we use is this:
Flashphoner.playFirstVideo(remoteVideo, false, '/streamer/'+ffver+'/dependencies/media/preloader.mp4').then(function () {
startSession();
});
For most users this works correctly.
However sometimes the startSession() would not fire. We have adjusted the function to notify us of this:
Flashphoner.playFirstVideo(remoteVideo, false, '/streamer/'+ffver+'/dependencies/media/preloader.mp4').then(function () {
updateLog("Play first vid ok, starting session");
startSession();
}, function(error) {
updateLog("Error playing firstvideo");
});
I cannot reproduce the problem myself and most users have no problems either so it's difficult to find a solution. If I try to log the error (the error parameter) to a server script it's empty (probably a javascript object) so this doesn't help either.
I thought that may be it would be a result of not interacting with the site (immediate action) but that's not the case because displaying a play button when the promise is rejected and then executing the same function again when the user clicks on it will still result in a rejection.
current client version: 28.2753133
server: v.0.5.28.2753-5.2.566
/edit:
This debug info is also produced when this happens:
[16:29:11.420] 16:29:11 INFO webrtc - Autoplay detected! Trying to play a video with a muted sound...
Which does not work by the way because the playfirstvideo still fails. How can we configure that all streams are played without sound? We do not need the webcam sound.
Last edited: