Old 1st March 2020, 05:25   #1
cholonese
Junior Member
 
Join Date: Mar 2020
Posts: 4
Google Chrome doesn't support HTML5 audio player?

So, I've been streaming my music from my computer using Shoutcast DSP 2.3.5 and Winamp 5.66. Everything works fine; other people can connect and listen to it on my website. Well, as long as they're not going to my website with Google Chrome.

iPhones (Safari), Mozilla Firefox, Brave and other browsers have zero issues with the HTML5 <audio> player that I have embedded on my website; it seems like only Google Chrome refuses to allow the user to hit the play button.

See for yourself:
code:
www.doowopbox.com
try to hit the play button while on Google Chrome (my stream is on 24/7). It doesn't work. What's that about? I've read online that Google Chrome doesn't support Shoutcast v1 audiostreams anymore, but I'm not using v1. I'm using Shoutcast DSP 2.3.5.

Anyone have a solution?
cholonese is offline   Reply With Quote
Old 1st March 2020, 07:17   #2
DJ-Garybaldy
Major Dude
 
DJ-Garybaldy's Avatar
 
Join Date: Sep 2003
Location: Harpurhey, Manchester UK
Posts: 1,617
try https:// instead off http://

Proud USER of RadioDJ since 2010

Now running RadioDJ on a 32GB Machine

Online: Blog - Twitter - Now Playing
DJ-Garybaldy is offline   Reply With Quote
Old 1st March 2020, 08:55   #3
vikflash
Junior Member
 
Join Date: Oct 2018
Posts: 11
This html5 code works in all browsers... except autoplay

<audio style="width:auto;min-width:300px;" id="audio_1" preload="none"
controls controlsList="nodownload"
src="http://65.184.158.183:8000/stream.mp3" type="audio/mpeg">
</audio>
vikflash is offline   Reply With Quote
Old 1st March 2020, 09:48   #4
LStratmann
Senior Member
 
LStratmann's Avatar
 
Join Date: Dec 2019
Location: Germany
Posts: 281
As far as I know Chrome no longer supports HTTP streams. So you have to use https.
LStratmann is offline   Reply With Quote
Old 1st March 2020, 10:38   #5
DJ Egg
Techorator
Winamp & Shoutcast Team
 
Join Date: Jun 2000
Posts: 35,857
As far as I'm aware, Chrome no longer supports mixed content...

Or, more specifically, if you use https://directory.shoutcast.com
then it won't play http streams.

So it would be the other way round to the above suggestions.....

Use http://directory.shoutcast.com to play standard http streams.


There's no login or private/personal data sent/required at directory.shoutcast.com,
so it's not really a great concern to just use standard http protocol instead of secure https.....

The vast majority of streams are still using http protocol

Streams play ok for me in latest Chrome when using http://directory.shoutcast.com
DJ Egg is offline   Reply With Quote
Old 1st March 2020, 10:42   #6
vikflash
Junior Member
 
Join Date: Oct 2018
Posts: 11
Are you sure about this ?
My stream is http (not https) and work fine in Chrome with the code I provided.
vikflash is offline   Reply With Quote
Old 1st March 2020, 14:06   #7
DJ Egg
Techorator
Winamp & Shoutcast Team
 
Join Date: Jun 2000
Posts: 35,857
Quote:
Originally Posted by vikflash View Post
Are you sure about this ?
My stream is http (not https) and work fine in Chrome with the code I provided.

It'll work fine if loading directly or via http://directory.shoutcast.com
just not if loaded via https://directory.shoutcast.com


And yes, I'm sure about that :-)
DJ Egg is offline   Reply With Quote
Old 1st March 2020, 15:54   #8
cholonese
Junior Member
 
Join Date: Mar 2020
Posts: 4
Hey guys, thanks for the responses. My original code was using https, and I've just updated the code with what vikflash recommended. Could anybody let me know if the stream works on Chrome now? I'm not able to listen from my end because of the feedback loop or whatever.
cholonese is offline   Reply With Quote
Old 1st March 2020, 16:45   #9
LStratmann
Senior Member
 
LStratmann's Avatar
 
Join Date: Dec 2019
Location: Germany
Posts: 281
It won't work with me. Use chrome.
LStratmann is offline   Reply With Quote
Old 1st March 2020, 16:57   #10
DJ Egg
Techorator
Winamp & Shoutcast Team
 
Join Date: Jun 2000
Posts: 35,857
The only way http://65.184.158.183:8000 will play on https://shoeslocal.wixsite.com/doowop in latest Chrome is if there's an https:// version of the stream (which requires some dns such as stream.doowop.com to be mapped to 65.184.158.183 and an ssl cert to be installed for said dns).


I'm not entirely sure how to get ssl working for Shoutcast DNAS versions below v2.6 Premium (which natively supports ssl), but I know that others have definitely got it to work, e.g.
https://avivamientoradio.radioca.st
https://stream.jewishmusicstream.com:8000
DJ Egg is offline   Reply With Quote
Old 1st March 2020, 17:01   #11
cholonese
Junior Member
 
Join Date: Mar 2020
Posts: 4
Thanks DJ Egg, I'll look into that further. Appreciate everybody's responses!
cholonese is offline   Reply With Quote
Old 1st March 2020, 17:06   #12
MegaRock
Forum King
 
MegaRock's Avatar
 
Join Date: Jun 2003
Location: Inside my water bong
Posts: 6,862
Send a message via ICQ to MegaRock Send a message via Yahoo to MegaRock
Right now I am streaming my station using Chrome and a regular HTTP connection.

code:
http://www.megarockradio.net:8240/


What you cannot do is mix HTTP and HTTPS on the same page although that's been the case for quite awhile.

Now if we could get that 500 NOK error fixed.

Megarock Radio - St. Louis Since 1998!
Tune In Now!
Corporate Radio Sucks! No suits, all rock!
MegaRock is offline   Reply With Quote
Old 2nd March 2020, 13:47   #13
BLCR
Member
 
Join Date: Feb 2014
Posts: 64
easy bandaid for the http:// vs https:// on chrome.

https://www.youtube.com/watch?v=jQ7m...AmS5aA66cr-Ero
BLCR is offline   Reply With Quote
Old 3rd March 2020, 06:26   #14
vikflash
Junior Member
 
Join Date: Oct 2018
Posts: 11
Hi everybody

I agree with you DJ Egg. I was not replying to you when i said : Are you sure about this ?
but to LStratmann. You were faster to reply.
Chrome still supports http streams but no longer mixed content and I did not see at first that doowopbox.com was https
My site and stream are still http and it works fine in Chrome.
Due to security reinforcement in browsers I have to find these days how to deliver https stream from my box (modem) cause I'm a home broadcaster and I know my Freebox can do it
Have a nice day
vikflash is offline   Reply With Quote
Old 3rd March 2020, 06:39   #15
LStratmann
Senior Member
 
LStratmann's Avatar
 
Join Date: Dec 2019
Location: Germany
Posts: 281
Important for you: If you have an https page, please do not use http.

Alternatively, have you ever tried to generate a Bit.ly link, for example, because it is https?
LStratmann is offline   Reply With Quote
Old 3rd March 2020, 23:14   #16
HubuFM
Member
 
HubuFM's Avatar
 
Join Date: Feb 2017
Location: Germany
Posts: 51
You can use stunnel to migrate your http stream into https.

It's also possible with port 443 (ssl) if you use sub-domain (eg. stream.MyRadio.com) and port-switch from shoutcast DNAS (for example: localhost*:8000).
*Your DNAS+Port on your server.

Here's a good instruction (you can ignore the other stuff if you're already running DNAS):
https://andrewklimek.com/setting-up-internet-radio/

email: Julian@Hubu.de | skype: Hubu Interactive | whatsapp: +49 (0)1573 40 400 41 | live-support: Click here
HubuFM is offline   Reply With Quote
Old 8th March 2020, 22:30   #17
cholonese
Junior Member
 
Join Date: Mar 2020
Posts: 4
Thank you HubuFM I'll give that a shot. Many thanks!
cholonese is offline   Reply With Quote
Old 13th March 2020, 14:34   #18
jbmusic
Junior Member
 
Join Date: Mar 2012
Posts: 29
Is there someone who is able to help me with setting up a stunnel solution on a windows server? we are running shoutcast on our own server and i am getting errors on stunnel..
beside that we have the premium account but also without succes.

On stunnel config i have:
cert = c:\ssl\stream1.pem
key = c:\stream1.key
client=no
[shoutcast]
accept=4443
connect=localhost:8010
jbmusic is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump