goldfire / howler.js

Javascript audio library for the modern web.
https://howlerjs.com
MIT License
23.27k stars 2.21k forks source link

Some audio streams don't play #1463

Open BobSelf opened 3 years ago

BobSelf commented 3 years ago

I'm using the radio demo ( https://howlerjs.com/#radio ) as a starting point for a player with streams that I'd like to listen to. All work on my laptop computers. On android mobile devices (phone and tablet) some work, but some don't. This one doesn't work http://144.217.49.251/stream1 this one does: https://tunein.streamguys1.com/cnn-new

Why don't some work? Can they work with different settings? I haven't made any changes to the javascript other than trying some other urls. I'm using the brave browser on all devices.

thanks, Bob

BobSelf commented 3 years ago

These are the settings that I'm currently trying. All streams work in a browser laptop (brave, Ubuntu 20.04). However only a few work on mobile devices (brave browser, android tablet and android phone). My goal is to have the streams work on the android devices.

sound = data.howl = new Howl({ src: data.src, html5: true, format: ['mp3', 'aac'], autoplay: true, });

BobSelf commented 3 years ago

Wow. I just tried it in firefox on an android phone and it all works! That's great. So, what's the problem with chrome-based browsers? For my project, I can just use firefox for now. Thanks.

joonaspaakko commented 3 years ago

I changed my mind and made my own post, since OP states it works in some cases and I'm not getting any audio from a cross-origin source in Chrome specifically.

BobSelf commented 3 years ago

More info. A friend tried a test link on firefox / iphone and it doesn't work, but all other tests did work. Everything works in FF on all OS's except this one on iphone/firefox. Chrome browsers still have problems for many streams.

http://216.240.133.177:2005/;

Any idea why?

akatukiyou commented 3 years ago

I'm using the radio demo ( https://howlerjs.com/#radio ) as a starting point for a player with streams that I'd like to listen to. All work on my laptop computers. On android mobile devices (phone and tablet) some work, but some don't. This one doesn't work http://144.217.49.251/stream1 this one does: https://tunein.streamguys1.com/cnn-new

Why don't some work? Can they work with different settings? I haven't made any changes to the javascript other than trying some other urls. I'm using the brave browser on all devices.

thanks, Bob

I think it has something to do with how Chrome deal with http vs https. the links you put there one is http and one is https, we have the same issue and have no idea why, because of the player or because of the browser? on our web, we have 2 http streams, playing fast on FF but 10 sec delay on Chrome when loading.

BobSelf commented 3 years ago

Strange. I have a fairly large assortment of http and https streams in a playlist. Right now the only thing that DOES NOT work is one stream on ios. Evreything else is working now on laptops (Mac and linux), on Android, and ios except one. This one doesn't work on iphone only: http://216.240.133.177:2005/;

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Friday, March 26th, 2021 at 3:20 PM, akatukiyou @.***> wrote:

I'm using the radio demo ( https://howlerjs.com/#radio ) as a starting point for a player with streams that I'd like to listen to. All work on my laptop computers. On android mobile devices (phone and tablet) some work, but some don't. This one doesn't work http://144.217.49.251/stream1 this one does: https://tunein.streamguys1.com/cnn-new

Why don't some work? Can they work with different settings? I haven't made any changes to the javascript other than trying some other urls. I'm using the brave browser on all devices.

thanks, Bob

I think it has something to do with how Chrome deal with http vs https. the links you put there one is http and one is https, we have the same issue and have no idea why, because of the player or because of the browser? on our web, we have 2 http streams, playing fast on FF but 10 sec delay on Chrome when loading.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

akatukiyou commented 3 years ago

Play this url in Chrome and Firefox natively, you will see there is a small delay on Chrome, http://studioone-stream.iowapublicradio.org/StudioOne.mp3 But if you play this URL through Howler on Chrome, there will be extra delay added to existing delay when loading the stream.

torbentschechne commented 2 months ago

Is this still an issue for you? I experience the same issue with 2.2.3 and Android + Chrome. The audio file is played, but is muted. There is no sound. When I do the same thing on Android+Firefox, it works.