flashphoner does not work in webview in mobile application

burak guder

Member
we added iframe code into ios and android apps (inapp) but it fails in the app error : none of preferred MediaProviders available.

mobile browser and desktop browser don't give an error, i just get errors in the app
 

Max

Administrator
Staff member
Good day.
WebView in iOS does not support WebRTC at all, so you should use Safari browser or use HLS for playback.
WebView in Android supports WebRTC, but there can be issues using iframe tag. Please try to test as follows:
1. Build WebView-example application
2. In Embed Player sample, please disable all switches but WebRTC, enter stream name and press "Test now"
3. Copy string from iframe src, for example
Code:
https://demo.flashphoner.com:8888/embed_player?urlServer=wss://demo.flashphoner.com:8443&streamName=test&mediaProviders=WebRTC
and paste it to WebView example application.
This works in our tests in Android 9.
 

burak guder

Member
thanks for the answer;
Is it possible to receive lag-free broadcasts using ios and android sdk?
Where can I find simple codes that I will use only for the player ?
 

Max

Administrator
Staff member
WebView in iOS does not support WebRTC, so it can't be used for playing WebRTC. In Safari browser, Web SDK Player example (code) can be used.
Android SDK and iOS SDK Player also can be used for playing WebRTC
- Android SDK 1.1: code
- iOS SDK: code
 

burak guder

Member
Hi Maks
I get an error for Xcode 11 compilation.



I get an error for xcode 11 build. Is there a current code sample for ip camera stream only. I need a quick solution because my customers are very squeezing me.
 
Last edited:
Top