|
Rank: Newbie Groups: Member
Joined: 2/8/2016 Posts: 8
|
When I try to display a streaming using WebRTC I can't receive the video. For example using this test site https://webrtc.github.io/samples/src/content/devices/input-output/ I see a black box. I've already given the permission to access to the webcam with this code:
Code: Visual Basic.NET
Private Sub WebView1_RequestPermissions(sender As Object, e As EO.WebBrowser.RequestPermissionEventArgs) Handles WebView1.RequestPermissions
If e.Permissions = EO.WebBrowser.Permissions.WebCam Then
e.Allow()
End If
If e.Permissions = EO.WebBrowser.Permissions.Microphone Then
e.Allow()
End If
End Sub
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Have you tried to open the same page with TabbedBrowser sample application?
|
|
Rank: Newbie Groups: Member
Joined: 2/8/2016 Posts: 8
|
Quote:Have you tried to open the same page with TabbedBrowser sample application? Hi. Thank you for your quick answer. I've just tried and it works! Where am I wrong?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
I believe it's because e.Permission is a mask. So it can have value "Permissions.WebCam or Permissions.Microphone" (1 or 2 = 3). So you can not use simple equal task on e.Permissions.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/8/2016 Posts: 8
|
Thank! Finally it works.
|
|