mohammad
mohammad

Reputation: 375

How to Get media for webRTC in webview?

I Run an app that let you start voice chat with webRTC (it based in easyRTC) when I call my page from android browser it ask for get media resource and then start chat ... enter image description here However when I Call my webpage in android webview does not get request for media , the Error : Failed to get access to local media Error code was permissionDeniedError !

in manifest i add these permissions :

 <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

I know it just support in android L or later webview in android L and I test the sample in that Link ! But I can not run it !

Upvotes: 2

Views: 1940

Answers (1)

kristakos
kristakos

Reputation: 21

Try to add this in your Manifest file:

 <uses-feature
        android:name="android.hardware.camera"
        android:required="true" />

Upvotes: 2

Related Questions