× Warning! This forum is in archival status. New contributions may not work.
jplayer noob assistance...
  • hi team...

    I'm so nearly there :)

    but i can't seem to get the damn stream to stream via my site/jplayer.

    it works like a charm in the 'fiddle' section of the jplayer site, and i've followed the demos to the letter, but, ummm... no dice.

    Sadly I've not got a huge amount of time to devote to it... already had far too many hours (6/7) and the hair is being ripped in handfuls.

    so:

    can someone please look at the code on my site and tell me what's going wrong?

    thanks!

    http://www.realhouseradio.com/-airtime-.html
  • 12 Comments sorted by
  • worked fine with this code

    $(document).ready(function(){

        $("#jquery_jplayer_1").jPlayer({

            ready: function () {
                $(this).jPlayer("setMedia", {
                    mp3: "http://realhouseradio.out.airtime.pro:8000/realhouseradio_a"
                    }).jPlayer("play");
            },

             ended: function (event) {
             $(this).jPlayer("play");
             },

            swfPath: "js",
            supplied: "mp3"

        });
       
    });




    I think your  swfPath is incorrect ,it should be relative to the directory on your computer or your web host directory and not on jplayer sites.
    Thats why it worked on theirs but not yours

    VOISSES
    Post edited by Voisses Tech at 2013-10-16 20:39:29
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • many thanks... I figured it would be something as simple as this...

    hopefully it'll work tonight :)

    can i link to the swf on the jplayer site? or does it HAVE to be my site?
  • when you download the zip file, its folder  contains
    • css
    • scripts
    • images
    • html

    Where ever you put this folder the " js" is in that

    A sample of that same folder is on Jplayer,which you can use for Testing

    If you are using your own stream then it has to be on your own computer/host

    No it cannot be on Jplayer,certain that happyworm would not want your clients/customer/traffic listening to your stream increasing traffic on their server

    :-B [-X


    *********************************
    * V.O.I.S.S.E.S.      *         *
    * Can You Hear Me Now *         *
    *********************************

    ♬♬♬♬♬♬♬♬♬♬♬♩♪♫♩♪♫♪♩♫♪♩ ♬♬♬♬♬♬♬♬♬♬♬
    ######################################################
    [En][24/7][712- 432- 8476]############################
    http://tunein.com/radio/BIGLINK-RADIO-s190864/

    [Korean][24/7] [712- 432- 8464]#######################
    http://tunein.com/radio/Goaheadmissionorg-s190399/

    [En][Sundays 2300-Mondays 0600 EST][712- 432- 8437]###
    http://tunein.com/radio/Caribbean-Experience-s200915/
    ######################################################
    Post edited by Voisses Tech at 2013-10-19 11:44:19
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • many thanks again

    xxx
  • spent some time with josh maclean from Airtime on the end of the line tonight, plus the ideas from Voisses...

    still no dice.

    it can't be THAT hard can it? There must be something really simple missing.

    or really complex :)

    FWIW, I tried stripping out all the Facebook head stuff and it didn't help.

    I replaced it in the version below...

    Here's the link again:

    http://www.realhouseradio.com/-airtime-.html

    I  desperately want to integrate with Airtime, but this is the only stumbling block.

    I also include a screen grab of my server folder structure, just in case it assists...

    OBI WAN KENOBI???
  • Here is the exact code that plays
    Take the textfile I attached
    save as anything.html
    load to your webroot and test then put the relevant section in your page
    copy and paste the appropriate sections
    You Have to fix the player in the body section though

    I decide to write the whole code ,because you had a number of errors like in CDATA ,you have no end function - that is the part I highlighted in red
    I listen at 2020 by donovan,I was listening to a house mix

    Please note I look at your page and see you have a number of scripts in the body section.
    I think all scripts should be in the head section and your player as a div in the body

    #####################Code below ##########################################


    <head>
    <title>Realhouse audio player</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="http://www.realhouseradio.com/skin/blue.monday/jplayer.blue.monday.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>


    <script type="text/javascript" src="http://www.realhouseradio.com/js/jquery.jplayer.min.js"></script>

    <script type="text/javascript">

    //<![CDATA[

    $(document).ready(function(){

        $("#jquery_jplayer_1").jPlayer({

            ready: function (event) {
                $(this).jPlayer("setMedia", {
                    mp3: "http://realhouseradio.out.airtime.pro:8000/realhouseradio_a"
                    }).jPlayer("play");
            },

             ended: function (event) {
             $(this).jPlayer("play");
             },


            swfPath: "http://www.realhouseradio.com/js",
            supplied: "mp3"

        });
       
    });

    //]]>
    </script>
    </head>

    <body>
            <div id="jquery_jplayer_1" class="jp-jplayer"></div>
               <div class="jp-audio">
                <div class="jp-type-single">
                    <div id="jp_interface_1" class="jp-interface">
                        <div class="label">Realhouse Player</div>
                        <ul class="jp-controls">
                            <li><a href="#" class="jp-play" tabindex="1">play</a></li>
                            <li><a href="#" class="jp-pause" tabindex="1">pause</a></li>
                            <li><a href="#" class="jp-mute" tabindex="1">mute</a></li>
                            <li><a href="#" class="jp-unmute" tabindex="1">unmute</a></li>
                        </ul>
                    </div>
                    <div id="jp_playlist_1" class="jp-playlist">
                    </div>
                </div>
            </div>
    </body>
    </html>


    *********************************
    * V.O.I.S.S.E.S.      *         *
    * Can You Hear Me Now *         *
    *********************************

    ♬♬♬♬♬♬♬♬♬♬♬♩♪♫♩♪♫♪♩♫♪♩ ♬♬♬♬♬♬♬♬♬♬♬
    ######################################################
    [En][24/7][712- 432- 8476]############################
    http://tunein.com/radio/BIGLINK-RADIO-s190864/

    [Korean][24/7] [712- 432- 8464]#######################
    http://tunein.com/radio/Goaheadmissionorg-s190399/

    [En][Sundays 2300-Mondays 0600 EST][712- 432- 8437]###
    http://tunein.com/radio/Caribbean-Experience-s200915/
    ######################################################

    Post edited by Voisses Tech at 2013-10-19 11:44:52
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • Thanks sooooo much Voisses...

    I'll give this a go when  get back home.

    You're really very kind.

    D
  • Hi there - sorry - i cant work out how to DL the attachment :)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Clicking on the document icon should give you the attachment http://forum.sourcefabric.org/uploads/FileUpload/7f/74a5c9e92ad993f7401df21d5f2b76.txt
  • hi all...

    many thanks for all the assists and everything - it's a very beautiful place here, and i'm so grateful.

    However i've clawed my face off getting this going to no avail.

    due to this, I found a very simple resource that meets my needs perfectly...

    http://kolber.github.io/audiojs/

    see it in action here:

    http://www.realhouseradio.com/-airtime_2-.html

    once again, T H A N K Y O U


  • FTR, this doesn't integrate beautifully with iOS devices - you're better off leaving the script out entirely and jst using HTML5 code as it calls the audiojs player as well as the HTML5 player...

    but i'm live :) and thats all that matters...

    thanks again to all who assisted.
  • I made a tutorial for beginners.

    I always called my series 101 for dummies ,but please note I do not have any intent.

    I just called myself a dummy because most time the solutions are before me .

    One time a friend of mine ,when I was a system admin, asked me to pay him for a solution I had problem with.

    when I gave him the check,he reminded me that I was the one who taught him the solution.
     So  i feel sometime if I just look the answer is so easy
    =)) :-))

    You will find the tutorial here
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.