Page 1 of 1
Re: OldCEF4Defphi can't play sound?
Posted: Fri Jul 26, 2019 6:35 am
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.
Re: OldCEF4Defphi can't play sound?
Posted: Fri Jul 26, 2019 8:41 am
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.
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.
Re: OldCEF4Defphi can't play sound?
Posted: Fri Jul 26, 2019 8:56 am
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.