I play with CefSharp and I can not play the sound. I can force the audio controls, but they remain frozen.
These are the versions I use:
Chromium: 21.0.1180.0, CEF: r728, CefSharp: 0.12.4596.50
I tried .mp3 first, then .ogg and finally .wav, but no one worked.
This is the HTML and audio that I load when I try with .ogg:
public bool OnBeforeResourceLoad(IWebBrowser browser, IRequestResponse requestResponse) { IRequest request = requestResponse.Request; if (request.Url.EndsWith(".gif")) { MemoryStream stream = new MemoryStream(); Properties.Resources.cursor_test.Save(stream, System.Drawing.Imaging.ImageFormat.Bmp); requestResponse.RespondWith(stream, "image/gif"); } else if (request.Url.EndsWith(".ogg")) { MemoryStream stream = new MemoryStream(Properties.Resources.foo); requestResponse.RespondWith(stream, "audio/ogg"); } else { Stream resourceStream = new MemoryStream(Encoding.UTF8.GetBytes( @"<!DOCTYPE html> <html> <body> <img src=""bla1/bla2/foo.gif"" /> <audio controls=""controls"" autoplay=""autoplay""> <source src=""foo.ogg"" /> </audio> </body> </html>")); requestResponse.RespondWith(resourceStream, "text/html"); } return false; }
Here's what Chromium looks like:

I read that perhaps only open formats are supported with Chromium. I also read that perhaps the sound is currently unavailable .
What is the current state of <audio /> in Chromium and CEF?
user610650
source share