Secure audio streaming
standalone demo
Starting from 3.2.1 (requires flowplayer version 3.2.3), you can use the secure streaming plugin to securely stream your audio content from http and lighttpd servers.
HTML
We have a player container that is small so that it only holds the control bar.
<!-- set up player container -->
<a id="audiosecure" style="display:block;width:648px;height:30px;"
href="http://flashy2.flowplayer.org:81/secvideo/1989.mp3"></a>
Configuration
We use the secure streaming plugin for protecting the mp3 files from direct downloads.
flowplayer("audiosecure", "http://releases.flowplayer.org/swf/flowplayer-3.2.11.swf", {
// fullscreen button not needed here
plugins: {
controls: {
fullscreen: false,
height: 30,
autoHide: false
},
secure: {
// path to latest version
url: "flowplayer.securestreaming-3.2.8.swf",
// URL used to fetch a timestamp from the server
timestamp: '<%= Long.toHexString(System.currentTimeMillis()/1000) %>',
// identical to lighttpd.conf / secdownload.secret
token: 'simplek'
}
},
clip: {
autoPlay: false,
urlResolvers: 'secure'
}
});
See the audio plugin page for more demos, including streaming setups, on how to use Flowplayer for audio playback.