-
AuthorPosts
-
February 1, 2016 at 11:44 am #774673
I’m designing an internet radio station and we were using a SHOUTcast Radio Player which worked fine on my old theme but once I switched over to XTheme, it won’t play anything. Here’s the Website: http://www.supportdistrictradio.com (still in progress)
Here’s the code
<iframe src=”http://html5radio.svnlabs.com/html5shoutcast.php?radiolink=http://smoke.wavestreamer.com:2503/&radiotype=shoutcast&bcolor=000000&image=shoutcast-icecast-html5-player-player.jpg&facebook=&twitter=&title=My Radio Phoenix&artist=Support District Radio Network” frameborder=”0″ marginheight=”0″ marginwidth=”0″ scrolling=”no” width=”367″ height=”227″></iframe>February 1, 2016 at 12:22 pm #774730***Updated the Radio Station URL: http://www.supportdistrictradio.com/stations/phoenix/
February 1, 2016 at 4:08 pm #774978Hi there,
I have just checked on your page and there is a Javascript error in the console that seems related to your ShoutCast code. See screenshot below. It looks like you need to have the file required for the player to run.
Hope this helps.
February 1, 2016 at 9:02 pm #775307I’ll look further into this. Thank you! Do you know of any other Streaming Players that I could use instead? I heard of JPlayer but couldn’t fly clear instructions for a quick put together.
February 1, 2016 at 9:03 pm #775308I’ll look further into this. Thank you! Do you know of any other Streaming Players that I could use instead? I heard of JPlayer but couldn’t fly clear instructions for a quick put together. d
February 2, 2016 at 2:27 am #775587Hi,
Upon checking again I can see the following codes in your custom > javascript that is preventing your script to work.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="www.supportdistrictradio.com/assets/js/jquery.shoutcast.min.js"></script> </script> <script>jQuery.backstretch(['//www.supportdistrictradio.com/wp-content/uploads/2013/10/bd_custom_bg_img_29.jpg'], {fade: 750});</script>
Please remove all the codes, these should not be added in there as it creates a javascript error you also don’t need to add jquery as it is already been added in wordpress.
To add your shoutcast script, you can add this in your child theme’s functions.php file
function my_custom_footer_output() { ?> <script src="www.supportdistrictradio.com/assets/js/jquery.shoutcast.min.js"></script> <?php } add_action( 'wp_footer', 'my_custom_footer_output', 99999 );
Hope that helps.
-
AuthorPosts