Running Jplayer from an SSL website, but the audio files are non-SSL. Audio files will not play

137 views Asked by At

I run a music aggregation website, HVmusic.com, where I use Jplayer to play MP3 files that users add to their listings. About a year ago I changed my site to run SSL (https) and now I find that any MP3 files that are hosted on non-SSL websites cannot be played by jPlayer.

Here is an example of the Jplayer code..

<script type="text/javascript">
$(document).ready(function(){        // Player instance
        $("#jplayer_1").jPlayer({
        ready: function () {
                $(this).jPlayer("setMedia", {
                        mp3: "http://ellywininger.com/mp3/Little Red Wagon.mp3"
                });
        },
    play: function() { // To avoid multiple jPlayers playing together.
        $(this).jPlayer("pauseOthers");
    },
        cssSelectorAncestor: "#jp_container_1",
        swfPath: "/common/licensed/jplayer",
        supplied: "mp3",
        useStateClassSkin: true
      });        // Player instance
        });
</script>

Note that this person's site (http://ellywininger.com) actually runs SSL mode and the http: redirects to https:, so these MP3 files play fine in Jplayer.

Is that just the way it is? I didn't think these files were considered "part of the SSL page" but instead "links", and links from an SSL page can be to non-SSL pages.

Thanks for your help.

0

There are 0 answers