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
