CefSharp3 (master) audio/video support

438 views
Skip to first unread message

Jan Selepa

unread,
Sep 11, 2014, 6:46:09 AM9/11/14
to cefs...@googlegroups.com
Hello everyone,
I am trying to use <audio> and/or <video> tags on a page I'm displaying using the CefSharp.Wpf.ChromiumWebBrowser. I have successfully compiled the master branch and run the CefSharp.Wpf.Example however if I try to run a Javascript function which calls play() on an <audio> or <video> tag I get the "Object #<HTMLElement> has no method 'play'" error. When I run the exact same function with CefSimple (from CEF3 C++) it works fine, but I don't want to write my whole application in unmanaged C++. When I try some HTML5 testing sites like https://www.youtube.com/html5 or http://www.quirksmode.org/html5/tests/video.html nothing seems to be supported when viewing with CefSharp.Wpf.Example even the HTMLVideoElement on the youtube test site has a red exclamation mark next to it. I tried copying the 5 dlls (libGLESv2.dll, libEGL.dll, avutil-51.dll, avformat-54.dll, avcodec-54.dll) from CefSharp 1.25.7 binaries next to the CefSharp.Wpf.Example.exe but that didn't help. Is there any way to get this working please? I'm new to cef and cefsharp so any help would be greatly appreciated.

Jørn Hansen

unread,
Sep 11, 2014, 12:27:44 PM9/11/14
to cefs...@googlegroups.com

On Thursday, September 11, 2014 12:46:09 PM UTC+2, Jan Selepa wrote:
Hello everyone,
I am trying to use <audio> and/or <video> tags on a page I'm displaying using the CefSharp.Wpf.ChromiumWebBrowser. I have successfully compiled the master branch and run the CefSharp.Wpf.Example however if I try to run a Javascript function which calls play() on an <audio> or <video> tag I get the "Object #<HTMLElement> has no method 'play'" error. When I run the exact same function with CefSimple (from CEF3 C++) it works fine, but I don't want to write my whole application in unmanaged C++. When I try some HTML5 testing sites like https://www.youtube.com/html5 or http://www.quirksmode.org/html5/tests/video.html nothing seems to be supported when viewing with CefSharp.Wpf.Example even the HTMLVideoElement on the youtube test site has a red exclamation mark next to it.

Thanks for a good explanation of what you tried, makes it easier for others to help!
 
I tried copying the 5 dlls (libGLESv2.dll, libEGL.dll, avutil-51.dll, avformat-54.dll, avcodec-54.dll) from CefSharp 1.25.7 binaries next to the CefSharp.Wpf.Example.exe but that didn't help. Is there any way to get this working please?

You need the DLLs that match the CEF version in use is briefly mentioned in the FAQ https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions#Runtime_dependencies (admittedly it could be more clear in the FAQ, suggestions are welcome, anyone with a GitHub account can edit the wiki)

The easiest for now is probably to grab the DLLs from the CefSharp/cef-binary repo.

  
I'm new to cef and cefsharp so any help would be greatly appreciated.

Welcome to CefSharp land!

Best regards
JornH

Jan Selepa

unread,
Sep 12, 2014, 5:10:43 AM9/12/14
to cefs...@googlegroups.com
Thanks for your reply. I was reading the faq before so I don't know how I missed this but it is exactly what I needed so thank you very much.
Reply all
Reply to author
Forward
0 new messages