SpaceApi-archive / OpenSpaceLint

The space API validator.
http://spaceapi.net
7 stars 3 forks source link

SpaceAPI app: Radio Shows #67

Open slopjong opened 11 years ago

slopjong commented 11 years ago

Some hackerspaces have their own show.

Here's an example of how to play the stream on a website:

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <script type="text/javascript" src="jwplayer.js"></script>
    <!--<script type="text/javascript" src="jwplayer.html5.js"></script>-->
</head>
<body>
<audio controls source="http://rs1.radiostreamer.com:8030/;"> </audio>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
    jwplayer('mediaspace').setup({
        'flashplayer': 'http://openspace.slopjong.de/jwplayer/jwplayer.flash.swf',
        'author': 'yourdomainRadioname',
        'description': 'yourradio descript',
        /*'file': 'http://85.214.64.213:8060/;',*/
        'file': 'http://signal.hackerspaces.org:8090/signal.mp3',
        'type': 'mp3',
        'provider': 'sound',
        'autostart': 'true',
        'controlbar': 'bottom',
        'width': '470',
        'height': '20'
    });
</script>
</body>
</html>

URLs ending in a slash must have a trailing semicolon.

slopjong commented 11 years ago

Resources considered:

http://stackoverflow.com/questions/8460899/how-can-i-play-a-pls-file-from-a-website http://stackoverflow.com/questions/2743279/how-could-i-play-a-shoutcast-icecast-stream-using-html5 http://stackoverflow.com/questions/2229118/is-it-possible-to-play-shoutcast-internet-radio-streams-with-html5 http://html5doctor.com/native-audio-in-the-browser/ http://forums.winamp.com/showthread.php?t=326285

slopjong commented 11 years ago

See SpaceApi/spaceapiapp_radioshow#1