Welcome Guest Search | Active Topics | Sign In | Register

How to enable camera and microphone in EO.WebBrowser Options
Khoa
Posted: Thursday, June 23, 2016 12:34:36 PM
Rank: Advanced Member
Groups: Member

Joined: 9/3/2014
Posts: 68
Hi,

I downloaded the latest version of EO.WebBrowser v2016.1.17.0 and tested the TabbedBrowser demo to check it works to see the camera. However, my app does not show the camera. I don't know if I missed any setting to allow to use camera annd microphone in EO.WebBrowser.

Here is the link to test: https://www.onlinemictest.com/webcam-test

Thank you.
Eurice
Posted: Friday, June 24, 2016 5:48:31 AM
Rank: Advanced Member
Groups: Member

Joined: 12/10/2014
Posts: 133
HI,



You need to listen the "RequestPermissions" event and allow what you want.


Code: C#
private void WebViewEO_OnRequestPermissions(object sender, RequestPermissionEventArgs e)
        {
            if (e.Permissions == Permissions.Microphone || e.Permissions == Permissions.WebCam)
            {
                e.Allow();
            }
        }
Khoa
Posted: Friday, June 24, 2016 10:39:14 AM
Rank: Advanced Member
Groups: Member

Joined: 9/3/2014
Posts: 68
Hi Eurice,

The webcam shows up after I set those permissions. Thank you very much!
eo_support
Posted: Friday, June 24, 2016 10:41:05 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Eurice wrote:
HI,



You need to listen the "RequestPermissions" event and allow what you want.


Code: C#
private void WebViewEO_OnRequestPermissions(object sender, RequestPermissionEventArgs e)
        {
            if (e.Permissions == Permissions.Microphone || e.Permissions == Permissions.WebCam)
            {
                e.Allow();
            }
        }


Thanks for helping out. Yes. It is necessary to handle RequestPermissions event in order to use WebCam.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.