I am trying to use both the secure streaming and the audio plugins. Both plugins work when I use them independently but when I try to use both of them at once the player will not play an mp3 file. (The site on which I am installing the player is an RoR site.)
I am using configuration:
The player is installed on the page with:
When the file is a .flv it plays correctly. When it is a .mp3 file I get the following error in the player (copied by hand off the player). (I have omitted the hashed part of the url from the error but it is the correct url. That url is received by the server, checked appropriately, and the actual url of the mp3 file is correctly returned to the player. If I load the path to the mp3 file directly in another browser window, it finds the files and plays it.)
I have not yet tried to go through the source code of the plugins to locate the problem. I'm hoping someone may have an idea of what would be causing and be able to point me in the right direction. Any help is greatly appreciated.
I am using configuration:
<script language="JavaScript">
flowplayer("player", "/bin/flowplayer/flowplayer-3.1.0.swf",
{
plugins: {
audio: {
url: '/bin/flowplayer/flowplayer.audio-3.1.0.swf'
},
secure: {
url: '/bin/flowplayer/flowplayer.securestreaming-3.1.0.swf',
timestamp: '<%= "%08x" % Time.now.to_i %>',
token: 'my-token'
}
},
clip: {
urlResolvers: 'secure',
baseUrl: '/secureaudio'
}
});
</script>
The player is installed on the page with:
<a
href="<%= audio_file.id %>"
style="display:block;width:425px;height:300px;"
id="player">
</a>
When the file is a .flv it plays correctly. When it is a .mp3 file I get the following error in the player (copied by hand off the player). (I have omitted the hashed part of the url from the error but it is the correct url. That url is received by the server, checked appropriately, and the actual url of the mp3 file is correctly returned to the player. If I load the path to the mp3 file directly in another browser window, it finds the files and plays it.)
200, StreamNotFound, NetStream.Play.StreamNotFound, clip: '[Clip] 'secureaudio/...
I have not yet tried to go through the source code of the plugins to locate the problem. I'm hoping someone may have an idea of what would be causing and be able to point me in the right direction. Any help is greatly appreciated.