Go Back   Winamp & SHOUTcast Forums > SHOUTcast > SHOUTcast Technical Support

Reply
Thread Tools Search this Thread Display Modes
Old 20th September 2017, 14:27   #1
sounds
Junior Member
 
sounds's Avatar
 
Join Date: Feb 2003
Posts: 32
Will Shoutcast stream urls ever work with https (Chrome marks them as insecure)

Hi,

Working on the SEO for my site and noticed the only reason Chrome marks a page as
insecure is because of the shoutcast stream URL's which have http protocol.

Will there ever be an option to set stream URL's with https and make them more secure for search results?
sounds is offline   Reply With Quote
Old 20th September 2017, 22:19   #2
neralex
Major Dude
 
Join Date: Mar 2011
Posts: 553
Sounds like you are trying to play a http stream-url with the html audio-tag. If yes, then you can add the source with Javascript/jQuery to the audio-tag after pressing the play-button. Its not exactly what do you want but on this way the page is loaded without the http-URL in the html-code.

Please note: If you allready loaded the jQuery library in your document, then you can remove the line with the jquery.min.js.

HTML Code:
<audio id="player" controls></audio>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    var streamURL = "http://123.456.78.9:8000/mystream.mp3";
    var player = document.getElementById("player");
    player.addEventListener("play", function () {
        $("#player").append('<source id="source" src="' + streamURL + '" type="audio/mpeg">');
        player.addEventListener("pause", function () {
            $('#source').remove();
        });
    });
});
</script>
neralex is offline   Reply With Quote
Old 20th September 2017, 23:14   #3
sounds
Junior Member
 
sounds's Avatar
 
Join Date: Feb 2003
Posts: 32
This is the theme I'm using and as far as I know they use fullwidth audio player.
There is also a play button in each image on this page
Youcan see the URL when you hover over the play buttons.

I'll try figure out what you suggested and maybe implement it.
sounds is offline   Reply With Quote
Old 21st September 2017, 00:47   #4
neralex
Major Dude
 
Join Date: Mar 2011
Posts: 553
I guess there are simular JS/jQuery click-functions for the embedded audio-player, where you can add/remove the source after click on a identifier.
neralex is offline   Reply With Quote
Old 23rd September 2017, 07:54   #5
dopelabs
Major Dude
 
dopelabs's Avatar
 
Join Date: Oct 2006
Location: Silicon Valley
Posts: 527
Send a message via AIM to dopelabs
shoutcast doesnt support SSL, although if you look in the changelog, openssl is implemented for DNAS communication. so its there, just not for streaming. most likely for the DNAS communication to shoutcast.com.

if you want real true ssl support for streaming, use icecast, or setup an http proxy in front of your shoutcast server and install certs as you would any other website.

with icecast you can use letsencrypt/certbot for a free cert and it works just fine.

working example:

https://ice1.dubstep.fm

is there any reason you require SSL on the page your player is on? if you require https on a specific page such as the login form page, or checkout page from an online store, you can always NOT display the player on those pages... or only use https on pages that have sensitive information on it, and keep the rest http. basically you shouldnt be using https unless you need to. for small sites you wont notice it much but at scale there is a significant performance impact when using https because of the added overhead of having to encrypt and decrypt everything

also keep in mind that the messages your seeing in your browser are most likely 'warnings' and not 'errors'. all of the resources the page loads over https are still encrypted, even if there is a mixed content 'warning'.
dopelabs is offline   Reply With Quote
Old 23rd September 2017, 17:25   #6
sounds
Junior Member
 
sounds's Avatar
 
Join Date: Feb 2003
Posts: 32
Thanks for the info,

Well I was just touching up the seo on the site with some plugins, Yoast SEO
And I noticed the only reason Chrome, Firefox etc were throwing up warnings
about the page not being secure, was the stream urls, as I have a stream play
where the page loads, it shows as insecure, it loads via http protocol and not https.

Then I read around and realized you can't do https URL's for Shoutcast,
But that proxy sounds like something I could use maybe.

Just looks cool when your pages have a secure tag on the address bar,
And they do until a shoutcast stream starts playing.
sounds is offline   Reply With Quote
Old 23rd September 2017, 23:16   #7
dopelabs
Major Dude
 
dopelabs's Avatar
 
Join Date: Oct 2006
Location: Silicon Valley
Posts: 527
Send a message via AIM to dopelabs
also, http or https really has no impact on SEO... SEO deals more with the metadata in the <head> section of each page, the <title>, the content in the <body> of the page itself, and the content and naming convention/structure of the urls. (permalinks section of wp)
dopelabs is offline   Reply With Quote
Old 23rd September 2017, 23:27   #8
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,483
streamimg audio can not be considered insecure -- it's just overly-paranoid security checks that want everything to be delivered over a secure channel -- you can cry about it, but, in reality, audio must be delivered over an unencripted connection -- adding encryption only adds complexity that audio players do not currently support, so even if the dnas could do it, good luck getting a player, and thus listeners.
djSpinnerCee is offline   Reply With Quote
Old 24th September 2017, 02:29   #9
dopelabs
Major Dude
 
dopelabs's Avatar
 
Join Date: Oct 2006
Location: Silicon Valley
Posts: 527
Send a message via AIM to dopelabs
Quote:
Originally Posted by djSpinnerCee View Post
audio must be delivered over an unencripted connection
audio can be delivered encrypted or unencrypted.

Quote:
Originally Posted by djSpinnerCee View Post
adding encryption only adds complexity
i concur

Quote:
Originally Posted by djSpinnerCee View Post
that audio players do not currently support, so even if the dnas could do it, good luck getting a player, and thus listeners.
it works in every player ive ever tried... even several command line players. i have yet to come across a player that wont work over https.
dopelabs is offline   Reply With Quote
Old 25th September 2017, 12:53   #10
rojintrololol
Junior Member
 
Join Date: Sep 2017
Posts: 1
With all of Googles updates it is absolutely imperative that you have very good on-site optimization. That means you need to hire a company like EMethod who can really dig into your website structure, content, and many other things in order to provide the most optimal experience for the end-user and Google. Changing your on-site optimization can result in HUGE ranking increases!
Visit us here: https://www.emethod.ca/ #SEO #***************** #searchengineoptimizatioin
rojintrololol 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