<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>xzy radio:: documentacion</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta name="generator" content="Geany 0.14" /> </head> <body> <span style="font-weight: bold;"><big>xzyradio:: simple embedded web radio</big><br> </span> <p style="color: rgb(0, 0, 128);"><span style="font-weight: bold;"><span style="text-decoration: underline;">Description</span></span></p> <p><span style="font-weight: bold;"></span></p> <div style="text-align: justify;"> <p>This class can embed a online radio player in a web page.<br></p><p>This displays simply, using "<span style="color: rgb(0, 0, 128); font-weight: bold;">echo</span>" or compact variable format "<span style="font-weight: bold;"><span style="color: rgb(0, 0, 255);"><?</span>=<span style="color: rgb(0, 128, 128);">$variable</span><span style="color: rgb(0, 0, 255);">?></span></span>"</p><p>Generates <span style="font-weight: bold; color: rgb(0, 0, 128);"><embed></span> tag with needed attributes to show an autoplay media player .<br> </p> it's made specially for play Shoutcst streaming, also can be able to play other media types, depending from media player plugin installed locally.<br></div><p style="color: rgb(0, 0, 128);"><span style="font-weight: bold; text-decoration: underline;">Tested plattforms</span>:</p> Firefox 3.0 /VLC plugin /Ubuntu 8.10<br> Internet Explorer 6.0 /WMP plugin /Windows XP SP2<br> <br> PHP 5.2<br> <br> <span style="color: rgb(0, 0, 128); font-weight: bold; text-decoration: underline;">Tested Media types</span><br><br>Shoutcast streams<br>pls files<br>asx files<br> <br> <span style="text-decoration: underline; font-weight: bold; color: rgb(0, 0, 128);">Methods</span><br> __construct($src) : The url of resource for play.<br> <br> attrib($name, $value) : Name and Value for attribute of <embed> generated tag.<br> <br> <span style="text-decoration: underline; color: rgb(0, 0, 128);"><span style="font-weight: bold;">Common Attributes</span></span><span style="color: rgb(0, 0, 128); text-decoration: underline; font-weight: bold;">:</span><br> width, height - default 200,45.<br> autostart: (True,False) - default True <br> loop: (True, False) - default False<br> volume: - default 30<br> src: media URL <br> <br> <span style="color: rgb(0, 0, 128); text-decoration: underline; font-weight: bold;">Example</span> <br> <br> <div style="text-align: left; background-color: rgb(224, 224, 224);"><span style="font-family: monospace; color: rgb(0, 0, 255); font-weight: bold;"><?php</span><br style="font-family: monospace;"> <span style="font-family: monospace; font-weight: bold;"><span style="color: rgb(0, 0, 128);">require_once</span> <span style="color: rgb(192, 0, 192);">'xzyradio.php'</span>;</span><br style="font-family: monospace; font-weight: bold;"> <span style="font-family: monospace; font-weight: bold;"><span style="color: rgb(0, 128, 128);">$radio</span> = <span style="color: rgb(0, 0, 128);">new</span> xzyradio (<span style="color: rgb(192, 0, 192);">'http://radiodoblenueve.com:9900/'</span>);</span><br style="font-family: monospace; font-weight: bold;"> <span style="font-family: monospace; font-weight: bold;"><span style="color: rgb(0, 128, 128);">$radio</span>->attrib(<span style="color: rgb(192, 0, 192);">'autostart'</span>,<span style="color: rgb(192, 0, 192);">'False'</span>);</span><span style="color: rgb(128, 128, 128); font-family: monospace; font-weight: bold;"> //opcional</span><br style="font-family: monospace; font-weight: bold;"> <br style="font-family: monospace; font-weight: bold;"> <span style="font-family: monospace; font-weight: bold; color: rgb(128, 128, 128);">//echo $radio;</span><br style="font-family: monospace; font-weight: bold;"> <br style="font-family: monospace; font-weight: bold;"> <span style="font-family: monospace; font-weight: bold; color: rgb(0, 0, 255);">?></span><br style="font-family: monospace; font-weight: bold;"> <br style="font-family: monospace; font-weight: bold;"> <span style="font-family: monospace; font-weight: bold;"><span style="color: rgb(0, 0, 255);"><?</span>=<span style="color: rgb(0, 128, 128);">$radio</span><span style="color: rgb(0, 0, 255);">?></span></span><br> </div> </body> </html>