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

1971 posts

Uber Geek


#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!.

 

gnfb on trademe

Email Me


Create new topic
gnfb

1971 posts

Uber Geek


  #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!.

 

gnfb on trademe

Email Me


Create new topic





News »

Vodafone enables 5G roaming - for when international travel comes
Posted 30-Oct-2020 15:03


Spark awards funding to Kiwi businesses in 5G funding initiative
Posted 30-Oct-2020 14:58


Huawei launches IdeaHub Pro in New Zealand
Posted 27-Oct-2020 16:41


Southland-based IT specialist providing virtual services worldwide
Posted 27-Oct-2020 15:55


NASA discovers water on sunlit surface of Moon
Posted 27-Oct-2020 08:30


Huawei introduces new features to Petal Search, Maps and Docs
Posted 26-Oct-2020 18:05


Nokia selected by NASA to build first ever cellular network on the Moon
Posted 21-Oct-2020 08:34


Nanoleaf enhances lighting line with launch of Triangles and Mini Triangles
Posted 17-Oct-2020 20:18


Synology unveils DS16211+
Posted 17-Oct-2020 20:12


Ingram Micro introduces FootfallCam to New Zealand channel
Posted 17-Oct-2020 20:06


Dropbox adopts Virtual First working policy
Posted 17-Oct-2020 19:47


OPPO announces Reno4 Series 5G line-up in NZ
Posted 16-Oct-2020 08:52


Microsoft Highway to a Hundred expands to Asia Pacific
Posted 14-Oct-2020 09:34


Spark turns on 5G in Auckland
Posted 14-Oct-2020 09:29


AMD Launches AMD Ryzen 5000 Series Desktop Processors
Posted 9-Oct-2020 10:13



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.

Alternatively, you can receive a daily email with Geekzone updates.