Skip to content

WebRTC FAQ

1. Does PhizClip PhizClip SDK support WebRTC?

Q: I want to use WebRTC related capabilities in my PhizClip, does PhizClip support it?

A: Yes, please make sure the SDK and mobile system meet the following conditions when using it.

| SDK version requirements | Phone system requirements | | --- | --- | --- | | iOS | PhizClip PhizClip SDK version 2.33.9 and above | iOS system version 14.3 and above | | Android | PhizClip PhizClip SDK version 2.24.1 and above | Android system version 6.0 and above |

TIP

  1. iOS system version 2.24.4 ~ 2.27.1 also supports WebRTC, but when reading UserAgent in HTML5, it may occasionally not include Provider/finogeeks (miniprogram; FinChat; runtimeSdkVersion/2.27.1), we suggest using 2.33.9 and above.
  2. For Android support, please check the details in the following article.

2. How can I use WebRTC within PhizClip SDK?

The essence of WebRTC is the ability to conduct voice or video conversations in real time in a web browser, ** PhizClip PhizClip SDK is supported for opening specified HTML5 pages in WebView**.

Therefore, when using HTML5 pages that contain WebRTC-related capabilities, developers need only focus on the following issues.

  • WebRTC's relay server business domain name needs to be configured , see feature description - domain name configuration.
  • Before using HTML5 with audio and video functions, you need to apply for camera and microphone permissions in advance (it is recommended to apply for permissions by the App first).

PhizClip PhizClip SDK does not declare recording permission, so you need to add permission declaration by App.

  • In iOS project, you need to add permission configuration declaration in info.plist file, see here.
  • In Android projects, you need to add permission configuration declaration in AndroidManifest.xml file, see the following example.
xml
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

3. What is the relationship between App permission and phizclip in SDK?

Case 1: App has successfully obtained camera and microphone permissions from users. -when you load HTML5 with WebRTC in PhizClip phizclip SDK, you can directly capture audio and video. -at the same time, the feature in HTML5 can also pop up Alert, asking users whether to allow camera capture and microphone use, so as to achieve the goal of controlling acquisition alone.

Case 2: if the user does not give App permission to turn on the camera and microphone -at this point, when SDK loads HTML5 with WebRTC feature, audio and video cannot be captured.

4. What is PhizClip Android SDK's support for WebRTC?

  1. PhizClip Android SDK's support for WebRTC stems from Android's native WebView's support for WebRTC.
  2. According to the Android developer platform's description of Android version 5.0 WebView, WebView has added support for WebRTC since Android version 5.0. related description
  3. Cloud test data show that Android 5.0 model does not properly support the official WebRTC example AppRTC. The reason is that the Android 5.0 WebView kernel is provided by Android System WebView APK, while the Android 5.0 cloud testing device contains a relatively low version of Android System WebView APK.
  4. Cloud testing of Android version 6.0or above almost all passed the support of AppRTC. Because it can be determined that the minimum Android system version supported by PhizClip Android SDK for WebRTC is Android 6.0 system.