Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

OldCEF4Defphi can't play sound?

Post Reply
User avatar
salvadordf
Posts: 4039
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: OldCEF4Defphi can't play sound?

Post by salvadordf »

Hi,

I loaded a few YouTube videos in the MiniBrowser demo and I could hear sound.

Perhaps that web page uses proprietary audio codecs like AAC.

Try other web browsers with that web page to see if everything else is working correctly.
User avatar
salvadordf
Posts: 4039
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: OldCEF4Defphi can't play sound?

Post by salvadordf »

I tried that web page with MiniBrowser and started playing a game of "Go".

With the MiniBrowser found in the latest CEF4Delphi version I could hear a woman's voice when I made placed the pieces on the board.

However, when I tried the MiniBrowser demo from OldCEF4Delphi I couldn't hear anything. :oops:

I opened the DevTools in the MiniBrowser and there were many errors in the Console tab like these :
  • Uncaught TypeError : window.myfunc is not a function
  • Uncaught (in promise) DOMException : Unable to decode audio data
Perhaps the Chromium version used in OldCEF4Delphi is too old and it's not compatible with that audio format.
User avatar
salvadordf
Posts: 4039
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: OldCEF4Defphi can't play sound?

Post by salvadordf »

That's correct.

You can register a JavaScript extension that can be used to send a process message with the sound that must be played.
Make sure Windows XP can play that audio format or install the necessary codecs with your application.
Post Reply