Player de Webradio Quicktime

alexandre1999

Membre confirmé
3 Décembre 2009
66
0
J'espère poster dans la bonne catégorie, mais si un modérateur passe par la, qu'il n'hésite pas a me remettre dans le droit chemin.
J'ai le projet de faire un radio avec Nicecast et je voudrais savoir, comment je pourrais intégrer un lecteur Quicktime de ma Webradio dans une page web. Merci de vos réponses
 
bonsoir, c'est dans la notice de nicecast… ;)

Embedding Content In A Webpage
It's possible to embed a stream in a webpage, with the following code. First, you need to create a custom .m3u file with an icy:// URL. To do this, make a new file in TextEdit called "listen.m3u" and put a single line in it as follows:
icy://www.example.com:8000/listen
Replace "www.example.com:8000" with the proper address and port of your server, which you can get next to the Internet label in the Share drawer in Nicecast. Choose Make Plain Text from the Format menu in TextEdit, then save this file as listen.m3u. TextEdit may warn about the file extension - be sure to choose Use .m3u.
Once you've got the file created, upload this file to your web server in the same directory as the web page where you want to embed the stream. When you've done that, you're ready to edit your web
page. Insert the following HTML in your page where you want the stream controller to be displayed:
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" HEIGHT="16" WIDTH="160"> <PARAM NAME="src" value="listen.m3u"> <PARAM NAME="qtsrc" value="listen.m3u"> <PARAM NAME="type" value="video/quicktime"> <PARAM NAME="autoplay" value="false"> <PARAM NAME="controller" value="true"> <EMBED PLUGINSPAGE="http://www.apple.com/quicktime/download/"
SRC="listen.m3u" QTSRC="listen.m3u" TYPE="video/quicktime" WIDTH="160" HEIGHT="16" SCALE="tofit" CONTROLLER="true" AUTOPLAY="false" KIOSKMODE="false">
</OBJECT>
This points the QuickTime Plugin in each browser to the custom .m3u file, which in turn points to your Nicecast stream in the way that QuickTime expects.

---------- Nouveau message ajouté à 21h20 ---------- Le message précédent a été envoyé à 21h19 ----------

mais bon c'est plus simple et plus smart de lire le flux dans itunes…;)
 
Beurk. Le code html des années 90. :sick:

Comme ça ça devrait fonctionner (à tester).

Bloc de code:
        <object type="audio/x-mpegurl" data="data/test.m3u" width="200" height="20">
          <param name="src" value="data/test.m3u">
          <param name="autoplay" value="false">
          <param name="autoStart" value="0">
          lien direct : <a href="data/test.m3u">test.m3u</a>
        </object>
Avantage : le code est universel, il fonctionne avec quicktime sur mac, avec windows media player sur pc, etc.