Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #774673

    GeminiDesignStudios
    Participant

    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>

    #774730

    GeminiDesignStudios
    Participant

    ***Updated the Radio Station URL: http://www.supportdistrictradio.com/stations/phoenix/

    #774978

    Jade
    Moderator

    Hi 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.

    #775307

    GeminiDesignStudios
    Participant

    I’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.

    #775308

    GeminiDesignStudios
    Participant

    I’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

    #775587

    Paul R
    Moderator

    Hi,

    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.