Don't work Audio in CefSharp-Example

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Don't work Audio in CefSharp-Example

Postby Shirotzu » Fri Jun 05, 2015 10:00 pm

Hello Everybody, I have a problem with the examble of a CEF that i use, the example don't play the audio of Youtube Videos and i want do work this.
I trying to do it on my own but this issue CEF and c# is new to me so I find it very difficult and apart from that English is not my native language.

Use this source because it uses the chrome.pak and is a single file that opens. for example I've seen others that open like 3 runable's and have 3 .pak files.
I want something simple that works fast and that work the audio.

Source Code : https://github.com/Eun/CefSharp-Example

Compile Bin Folder :
http://prntscr.com/7do87k

Project Folder :
http://prntscr.com/7do8st

And Source and References :
http://prntscr.com/7do96d

I read in a page this : "ffmpegsumo.so <-- HTML5 audio/video support library"
I supused what .so is a .dll

Sorry for my bad english, Thanks in advance.
Shirotzu
Mentor
 
Posts: 53
Joined: Fri Jun 05, 2015 9:35 pm

Re: Don't work Audio in CefSharp-Example

Postby amaitland » Sun Jun 14, 2015 3:22 am

If you use the latest `CefSharp` version audio should work correctly.

The https://github.com/Eun/CefSharp-Example link references a version that's quite a few years out of date.

Latest official release is `39.0.2`. Pages are released to `Nuget.org`.

The official `CefSharp` project page is https://github.com/cefsharp/CefSharp

Example project can be found at https://github.com/cefsharp/CefSharp.MinimalExample
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: Don't work Audio in CefSharp-Example

Postby Shirotzu » Fri Jun 19, 2015 9:13 pm

Thank you amaitland ! but i have problem compiling
Image : http://prntscr.com/7j2a70
If i change all the project to x86 and press Start Button send this : http://prntscr.com/7j2b67 (sorry i'm spanish)
Shirotzu
Mentor
 
Posts: 53
Joined: Fri Jun 05, 2015 9:35 pm

Re: Don't work Audio in CefSharp-Example

Postby amaitland » Sat Jun 20, 2015 3:18 am

Looks like the nuget restore failed. Make sure you have the latest version installed in visual studio.

Also check that `nuget.org` is enabled in the sources. Right click on the solution, select `Manage Nuget packages for solution`, click on settings, make sure `nuget.org` is checked. Also under `Manage Nuget packages for solution` there is likely to be a restore button.

Third option is to do a command line nuget restore. You can google for the syntax if you need it.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: Don't work Audio in CefSharp-Example

Postby Shirotzu » Sat Jun 20, 2015 5:36 pm

Nuget.org is checked http://prntscr.com/7jd57g
I'm Installed CefSharp.WinForms http://prntscr.com/7jd5ol
I don't know how to do a command line nuget restore.
Supuestos errores en el codigo de BrowserForm.cs de CefSharp.MinimalExample.WinForms.
http://prntscr.com/7jd699

Can contact me in facebook, please
www.facebook.com/shirotzu.san
Shirotzu
Mentor
 
Posts: 53
Joined: Fri Jun 05, 2015 9:35 pm

Re: Don't work Audio in CefSharp-Example

Postby amaitland » Sat Jun 20, 2015 6:14 pm

If you googled nuget command line restore you would have found

https://docs.nuget.org/consume/command- ... re-command
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: Don't work Audio in CefSharp-Example

Postby Shirotzu » Mon Jun 22, 2015 11:57 pm

Thank you, now work it.
I downloaded the nuged and use the command : nuget restore CefSharp.MinimalExample.sln
And the finish question, I can rename the cef.pak in the project?
Shirotzu
Mentor
 
Posts: 53
Joined: Fri Jun 05, 2015 9:35 pm

Re: Don't work Audio in CefSharp-Example

Postby amaitland » Tue Jun 23, 2015 2:05 am

Shirotzu wrote:And the finish question, I can rename the cef.pak in the project?


You can disable pak loading, though I'd advise against that as there are some common resources that are required (unless something has changed).

So, no I don't believe you can rename cef.pak
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: Don't work Audio in CefSharp-Example

Postby Shirotzu » Wed Jun 24, 2015 2:02 am

I say if the cef.pak can be rename in the source code of the proyect or CefSharp source.
Facebook Messenger use chrome.pak
and Chrome use resources.pak : http://prntscr.com/7kno95
And I want to do that same
Shirotzu
Mentor
 
Posts: 53
Joined: Fri Jun 05, 2015 9:35 pm

Re: Don't work Audio in CefSharp-Example

Postby amaitland » Wed Jun 24, 2015 3:28 am

Shirotzu wrote:Facebook Messenger use chrome.pak
and Chrome use resources.pak : http://prntscr.com/7kno95
And I want to do that same


Your assuming they're compatible.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 22 guests