Problems with WebRTC using CefSharp WPF Example

994 views
Skip to first unread message

Alan8

unread,
Aug 26, 2014, 9:45:16 AM8/26/14
to cefs...@googlegroups.com
Hello,

I've downloaded CefSharp-master, and the CefSharp.Wpf.Example works with typical websites. Trying it with WebRTC (e.g.https://apprtc.appspot.com ) produced a "getUserMedia () failed. Is this a WebRTC enabled browser?" error.

I then added the "--enable-media-stream" flag to the command-line arguments, and then I got a black screen and the error: "Error attaching stream to element" at the bottom, when trying that WebRTC site.

Can anyone suggest what the problem is?

Thanks!
Alan

Jørn Hansen

unread,
Aug 26, 2014, 2:56:10 PM8/26/14
to cefs...@googlegroups.com
Hi,

The current `cef.redist` NuGet used by CefSharp master does sadly not contain ffmpegsumo.dll

Easiest fix is probably to grab the matching one for either Win32 or x64 depending on what you build and drop it in your bin folder from e.g https://github.com/cefsharp/cef-binary/blob/master/cef_binary_3.y.z_windows32/Release/ffmpegsumo.dll if you build Win32.

Then plan is to do better and include it by default with future NuGet packages!

Best regards,
JornH
Message has been deleted

Alan8

unread,
Aug 26, 2014, 4:25:36 PM8/26/14
to cefs...@googlegroups.com
Thanks Jørn!

Adding ffmpegsumo.dll to the same folder as the .exe eliminated the current error!

But we still have one more: "Failed to get access to local media. Error name was PERMISSION_DENIED. Continuing without sending a stream."

On another discussion, someone claimed that a later release of CefSharp solved this problem, but I just got this release yesterday.

Jørn Hansen

unread,
Aug 27, 2014, 1:09:44 AM8/27/14
to cefs...@googlegroups.com
Make sure you completely close a possible Google Chrome browser so it does not hold the camera. Closing a tab using getUserMedia() isn't enough. That has bitten me once or twice.

CefSharp 31 *is* that later released. It was introduced in Chromium 30 so CefSharp didn't support it.

Cheers,
JornH
Reply all
Reply to author
Forward
0 new messages