ADMIN PLEASE REMOVE

dooly

New Member
well I think you should revise the audio tag on that player and tell it not to auto-play. Also revising the width attribute from a fixed width to a dynamic attribue will make it responsive and resize for different displays. also the autoplay="" and controls="" is not correct syntax for html5 for the controls its just controls declared in the tag and this goes for auto play. now if your page is an xml/xhtml page then you have to use controls="controls" and autoplay="autoplay" here is the audio tag code I recommend for your site:
Code:
<audio controls id="stream"  preload="none" style="width:100%;" >
. If you want to look at the options and uses of the audio html tag, see Audio tag, w3 Schools
 

dooly

New Member
I don't have one available, but it looks like there is a way to query a server externally. There is a code snippet of online and offline status, but I don't see anywhere the listing of objects that can be queried from the server. This one is supposed to be shoutcast, and I wonder if centnova has one too. let's look at thier code for detecting:

Code:
<?php
// Edit the values below to suite your server and site.
$server = "ip.of.your.server"; // IP of the server
$port = "8000"; // Port of the server
$online = "On Air"; // Text to display if the server is online
$offline = "Off Air"; // Text to display if the server is offline
// Do not edit below here unless you know exactly what you're doing.

// Start Data Collection
$fp = fsockopen("$server", $port, $errno, $errstr, 30);
      fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)\r\n\r\n");
      while (!feof($fp)) {
          $content .= fgets($fp,128);
}
      fclose($fp);
// start data processing
      $debut = strpos($content, '<body>') + strlen('<body>');
      $fin = strpos($content, '</body>', $debut);
      $string = substr($content, $debut, $fin - $debut);
      $stats = explode(',', $string);

This queries the server, then loads the data in an array in the $stats variable. There are two types of araays ones with number indexes, and other with named indexes. But it looks like thier numbered so the system variables would look like:
Code:
 $status[0], $status[1],$status[2]....
so what I have to see if the current dj is in this status array
Code:
//   after this line:
   $stats = explode(',', $string);
// we insert
Printr($status);
This will list all of the variables that can be retrieved from the $status variable array. This will get you going if you are adventurous with php, and I hate to leave you hanging, but I got a lot of stuff to go through today in Sturgis with my internet radio station that hooked up to the distributive pa that we install across all of down town Sturgis, and inside its manciple buildings (over 5 square kilometers is covered in this PA for the Sturgis Rallys).

But I will revisit here in a few days to reveal the array in its entirely and if a code can be made I'll just write one.
 
Last edited:
thanks dooly i have sam broadcaster and i'm trying to enable dedications
now in this code were would i enable dedications


Code:
    if ($code != 200) {
        throw new Exception($message);
    }
} else { //If a request was already made, allow dedication to the request
    $data = array();
    $data['msg'] = strip_tags(Def('rmessage'));
    $data['name'] = strip_tags(Def('rname'));

    $db = Database::getInstance();
    $db->update('requestlist', $data, array('ID = ?' => $requestID, 'songID = ?' => $songID));
 
hi there i have ran out of ideas for our wonderful radio station
could anyone possible give us ideas please

urban8radio
well I think you should revise the audio tag on that player and tell it not to auto-play. Also revising the width attribute from a fixed width to a dynamic attribue will make it responsive and resize for different displays. also the autoplay="" and controls="" is not correct syntax for html5 for the controls its just controls declared in the tag and this goes for auto play. now if your page is an xml/xhtml page then you have to use controls="controls" and autoplay="autoplay" here is the audio tag code I recommend for your site:
Code:
<audio controls id="stream"  preload="none" style="width:100%;" >
. If you want to look at the options and uses of the audio html tag, see Audio tag, w3 Schools
hi I’m Maxime i am having trouble with my website because every time i tried to add the for html5 it won’t work on my cellphone or my tablet tell me what do I need to, it is because I use pay as you go plan or what else
 

Support

Level 1 Support
Staff member
The widget player supplied by your pay as you go account is a flash player.

We provide Widget code for a HTML5 player as well as a Flash player.

hi I’m Maxime i am having trouble with my website because every time i tried to add the for html5 it won’t work on my cellphone or my tablet tell me what do I need to, it is because I use pay as you go plan or what else

Hi Maxime,

We've responded to the emails that you sent us.
 

dooly

New Member
Just to clarify things for Sonic. Jplayer uses Jquery to sense if flash is present, then its active, otherwise html5. In the code, the {solution:flash,html} object entry in the code makes flash the primary try, then if flash is not detected, it will use html5.

If you are using your own jplayer.js file, you could move those two around, but flash would never be chosen.
 
Top