[Catalyst] Static GET of an ogg audio file

jeff robinson jeffreyianrobinson at gmail.com
Fri Apr 8 20:58:33 GMT 2011


Larry,
Thanks for the quick response. Here are the headers - similar but not the same:

Catalyst
------------
Content-Length: 238400
Content-Type: audio/ogg
Last-Modified: Fri, 08 Apr 2011 15:20:31 GMT
Status: 20 0
X-Catalyst: 5.80029

Apache
-----------
Accept-Ranges: bytes
Content-Length: 238400
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: application/ogg

Best - J


On Fri, Apr 8, 2011 at 4:26 PM, Larry Leszczynski <larryl at emailplus.org> wrote:
> Hi Jeff -
>
>> I have created a directory called "media" in the path
>> /root/static/media and put some audio files in there (happen to be
>> ogg-vorbis). I am using the HTML5 tag <audio> in the Firefox 4 browser
>> to play the file in an app. It mostly works but there is a problem in
>> that the browser cannot determine the tracks duration. (Ogg files do
>> not store duration in their headers as other audio formats do, but
>> that's not the issue here).
>>
>> I set up a simple experiment where I took the same ogg audio file and
>> simply served it as a straight file from Apache and Catalyst. So in
>> one case the URL typed in to FF was  http://apacheURL/media/test.ogg
>> and the other was http://catalystURL/static/media/test.ogg (both URLs
>> are on the same LAN, no firewalls etc)
>>
>> With Apache there were no issues,, with Catayst the file plays but the
>> duration info is not present - (hence the "play cursor" is always hard
>> against the right hand side of the play bar.)
>
> What differences do you see when you look at the response headers,
> especially Content-Type?
>
>
> Larry
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



More information about the Catalyst mailing list