webrtc and IOS iphone

624 views
Skip to first unread message

brian....@bdkconsulting.com

unread,
Aug 6, 2018, 12:35:56 AM8/6/18
to meetecho-janus
I had understood that IOS and Safari now support WebRTC, but the following call failed when I accessed the streaming page from my iphone.  fwiw, I also had the same problem with chrome on my iphone.

// Helper method to check whether WebRTC is supported by this browser
Janus.isWebrtcSupported = function() {
        return window.RTCPeerConnection !== undefined && window.RTCPeerConnection !== null &&
                navigator.getUserMedia !== undefined && navigator.getUserMedia !== null;
};

Is there something more I need to be doing?
Also, I do most of my debugging using chrome on a pc.  Is there a preferred way to debug IOS issues?

thanks
-brian

jja...@gmail.com

unread,
Aug 6, 2018, 4:18:36 AM8/6/18
to meetecho-janus
Chrome on iOS does not support WebRTC.  Safari does on iOS 11 and later.

For debugging iOS you practically need to have a Mac.

With a Mac you need to enable Safari debugging tools on both the desktop and the iOS device(s) you are using for development/testing.

Alessandro Amirante

unread,
Aug 6, 2018, 4:35:36 AM8/6/18
to jja...@gmail.com, meetecho-janus
Let me add that iOS 11+ only partially supports WebRTC, as it doesn't implement VP8 (which is mandatory as per the WebRTC specs). As such, if by "streaming page" you mean the streaming demo hosted here, that uses VP8 and won't work in iOS.

A.

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brian Koblenz

unread,
Aug 6, 2018, 9:40:09 AM8/6/18
to Alessandro Amirante, jja...@gmail.com, meetecho-janus
Thanks for the clarification.

I am using (a variant of ) the streaming demo but I am actually streaming an h.264 rtsp stream.  However, the failure occurs very early in the Janus.init() because the routine I posted returns false.

The original version had the following included scripts:
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js" ></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/4.1.0/bootbox.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/spin.js/2.3.2/spin.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.1.3/toastr.min.js"></script>
<script type="text/javascript" src="janus.js" ></script>

and I removed all but webrtc-adapter, spin, and janus.  (I changed all the fancy alerts to basic alerts!)  Everything works fine when webrtc is found.  Might this have had any impact?
I am running iOS 11.4.1 on my phone, and I think that means the same safari version.

thanks

Reply all
Reply to author
Forward
0 new messages