Welcome Guest Search | Active Topics | Sign In | Register

Can't see a video stream Options
Andrea Concini
Posted: Monday, February 8, 2016 12:17:29 PM
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
eo_support
Posted: Monday, February 8, 2016 12:19:35 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Have you tried to open the same page with TabbedBrowser sample application?
Andrea Concini
Posted: Tuesday, February 9, 2016 9:33:54 AM
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?
eo_support
Posted: Tuesday, February 9, 2016 9:40:14 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
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!
Andrea Concini
Posted: Tuesday, February 9, 2016 11:40:39 AM
Rank: Newbie
Groups: Member

Joined: 2/8/2016
Posts: 8
Thank! Finally it works.


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.