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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Problem streaming audiobooks

Post Reply
Briskitte Bardot
Posts: 8
Joined: Mon Sep 14, 2020 6:04 am

Problem streaming audiobooks

Post 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?
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Problem streaming audiobooks

Post 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.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Problem streaming audiobooks

Post by salvadordf »

Perhaps they use DRM for that content.
Briskitte Bardot
Posts: 8
Joined: Mon Sep 14, 2020 6:04 am

Re: Problem streaming audiobooks

Post 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.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Problem streaming audiobooks

Post by salvadordf »

Try using the "user agent" string from another web browser.
Post Reply