Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


gnfb

2685 posts

Uber Geek
+1 received by user: 197

ID Verified

#154653 3-Nov-2014 17:16
Send private message

If anyone feels a little generous in there time
The endgame is to stream form a home server media (sound mainly) to devices that will only require clicking a button to play

I have to be so close...
I have this so far http://192.168.0.20:8000/
connects and plays
but not on IPADS
so i did this
http://radio.wlg.co.nz/sound/
the jplayer
but no success
also tried
http://radio.wlg.co.nz


The jplayer seems to be the best bet at http://radio.wlg.co.nz/sound/


and I have tried a 100 ! diffrent configs to try and get it to play

the crux of it apparently is this section below

Any suggestions or if any of the code looks wrong ...thanks

<link type="text/css" href="/skin/jplayer.blue.monday.css" rel="stylesheet" />
  <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
  <script type="text/javascript" src="/js/jquery.jplayer.min.js"></script>
   <script type="text/javascript">
    $(document).ready(function(){

    $("#jquery_jplayer_1").jPlayer({
        ready: function (event) {
            $(this).jPlayer("setMedia", {
            title: "Radio WLG",
                mp3:"http://101.98.206.223:8000;stream/1"
            }).jPlayer("play");
        },


        swfPath: "/js",
        supplied: "mp3",
        wmode: "opaque"
            });
    });
  </script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My Radio | Home</title>
<style type="text/css">





Is an English Man living in New Zealand. Not a writer, an Observer he says. Graham is a seasoned 'traveler" with his sometimes arrogant, but honest opinion on life. He loves the Internet!.

 

I have two shops online allshop.nz    patchpinflag.nz
Email Me


Create new topic
gnfb

2685 posts

Uber Geek
+1 received by user: 197

ID Verified

  #1168673 4-Nov-2014 17:30
Send private message

I sorted it out all good now

<head>
<link type="text/css" href="/skin/jplayer.blue.monday.css" rel="stylesheet" />
  <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
  <script type="text/javascript" src="/js/jquery.jplayer.min.js"></script>
   <script type="text/javascript">
$(document).ready(function(){

    var stream = {
        title: "Radio WLG",
        mp3: "http://101.98.206.223:8000/stream.ogg"
    },
    ready = false;

    $("#jquery_jplayer_1").jPlayer({
        ready: function (event) {
            ready = true;
            $(this).jPlayer("setMedia", stream);
        },
        pause: function() {
            $(this).jPlayer("clearMedia");
        },
        error: function(event) {
            if(ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) {
                // Setup the media stream again and play it.
                $(this).jPlayer("setMedia", stream).jPlayer("play");
            }
        },
        swfPath: "/js",
        supplied: "mp3",
        preload: "none",
        wmode: "window",
        keyEnabled: true
    });


    $("#jplayer_inspector").jPlayerInspector({jPlayer:$("#jquery_jplayer_1")});
});
  </script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My Radio | Home</title>
<style type="text/css">
<!--
body {
    background-image: url(images/background.jpg);
}
-->
</style>




Is an English Man living in New Zealand. Not a writer, an Observer he says. Graham is a seasoned 'traveler" with his sometimes arrogant, but honest opinion on life. He loves the Internet!.

 

I have two shops online allshop.nz    patchpinflag.nz
Email Me


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.