Already created a post for this on Delphi TWebbrowser to use -enable-media-stream which yet to receive any comment or answer. So I make a different question. How can I use WebRTC using TWebBrowser in Android, iOS & MacOSX? In Windows I used TChromiumFMX which has the feature to enable media stream from command line. But how to do with TWebBrowser. For Android I put following permission and user features:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-feature android:name="android.hardware.audio.low_latency"/>
<uses-feature android:name="android.hardware.audio.pro"/>
<uses-feature android:name="android.hardware.microphone" android:required="true"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>
<uses-feature android:name="android.hardware.camera" android:required="true"/>
<uses-feature android:name="android.hardware.camera.front" android:required="true"/>
<uses-feature android:glEsVersion="0x00020000" android:required="True"/>
It's not working, I am only getting a black circle with black play button image on TWebBrowser. Please help.
my code to load url:
{$IFDEF MSWINDOWS}
mybrowser.Load(Format('https://www.myhost.com/multiple.html?room=%s', [NumberBox1.Value.ToString]));
{$ELSE}
mybrowser.URL := Format('https://www.myhost.com/multiple.html?room=%s', [NumberBox1.Value.ToString]);
mybrowser.Navigate
{$ENDIF}
Above image is showing on my Nexus 5.
I think that TWebBrowser on iOS uses the Safari engine, but Safari doesn't have WebRTC capabilities (yet). However the Android browser (built-in Chrome as used also for WebViews) has WebRTC and it would be nice if it would work also from a Delphi app.
Waiting for others to comment on this..
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.