Page 1 of 1

Problem streaming audiobooks

Posted: Sun Sep 15, 2024 2:55 pm
by Briskitte Bardot
Hello!

I've borrowed a streaming audiobook at the library. When I load the website the cogwheel keeps spinning, it's supposed to stop and after that the play-button can be used to start listening. I attached a picture to help show what I'm talking about.

It's been a while since I borrowed an audiobook but I'm sure it has been working with a previous version of CEF4Delphi. In my code I have,
GlobalCEFApp.EnableMediaStream := True;

Do you know any other properties that may help?

I have tried setting Engine.RuntimeStyle := CEF_RUNTIME_STYLE_ALLOY which I understand was used earlier, but it didn't make any difference.

Or perhaps the site has changed and use other codecs now. Can I check that somehow?

Re: Problem streaming audiobooks

Posted: Sun Sep 15, 2024 3:11 pm
by salvadordf
Hi,

Perhaps they use AC3 or some other proprietary codec instead of MP3.

I've never bought an audiobook from that store and I'm not sure how to check this but perhaps you can see some error message in the DevTools. Sometimes the console tab has some information.

Try to open the audiobook with Chrome and see if the Developer Tools show something different.

You can also send a message to support in that store and ask them what's the audio codec for that audiobook.

Re: Problem streaming audiobooks

Posted: Sun Sep 15, 2024 3:21 pm
by salvadordf
Perhaps they use DRM for that content.

Re: Problem streaming audiobooks

Posted: Sun Sep 15, 2024 4:44 pm
by Briskitte Bardot
The only error in DevTools console is "Failed to load resource favicon.ico". It looks similar in Chrome.

In Chrome the player becomes active after 2 seconds and displays the duration of the stream. After that I can press play to listen.

Looking at the page source I see in window.onload they check which browser and what version is used. In supported browsers they load a html5 player, otherwise a flash player.

In the player script it says, defaultAudioCodec: "audio/mp4;codecs='mp4a.40.34'".

I can try loading the page with your MobileBrowser demo and see if that works.

Re: Problem streaming audiobooks

Posted: Sun Sep 15, 2024 4:56 pm
by salvadordf
Try using the "user agent" string from another web browser.