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

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

 

fbwhatnot on trademe

Email Me


Create new topic
gnfb

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

 

fbwhatnot on trademe

Email Me


Create new topic





News and reviews »

One New Zealand Extends 3G Switch-off Date
Posted 11-Apr-2024 08:56


Amazon Echo Hub Review
Posted 10-Apr-2024 18:57


Epson Launches New Versatile A4 Desktop Scanners
Posted 10-Apr-2024 15:31


Motorola Mobility Launches New Android Phones in New Zealand
Posted 10-Apr-2024 14:59


Logitech G Unveils the PRO X 60 Gaming Keyboard
Posted 9-Apr-2024 19:01


Logitech Unveils Signature Slim Keyboard and Combo
Posted 9-Apr-2024 13:33


ExpressVPN Launches Aircove Go Portable Router With Built-in VPN
Posted 26-Mar-2024 21:25


Shure MoveMic Review
Posted 25-Mar-2024 12:47


reMarkable 2 Launches at JB Hi-Fi New Zealand
Posted 20-Mar-2024 08:36


Samsung Galaxy S24 Ultra review
Posted 19-Mar-2024 11:37


Google Nest Wifi Pro Review
Posted 16-Mar-2024 11:28


Samsung Galaxy A55 5G and Galaxy A35 5G
Posted 12-Mar-2024 12:41


Cricut EasyPress Mini Zen Blue launches at Spotlight New Zealand
Posted 12-Mar-2024 12:32


Logitech Introduces MX Brio Webcam
Posted 12-Mar-2024 12:24


HP Unveils Broadest Consumer Portfolio of AI-Enhanced Laptops
Posted 3-Mar-2024 18:09



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.