[Catalyst] Static GET of an ogg audio file

jeff robinson jeffreyianrobinson at gmail.com
Tue May 3 13:55:02 GMT 2011


Tom,
Nope - it turned out to be a bunch of other attributes that FF was
looking for, the most important of which was the "Accept-Ranges:
bytes" header. It also helps to add the "X-Content-Duration" header.
As OGG files do not have any duration info you need to obtain this by
running a utility like "sox -i". All in all I needed to write a small
handler for the job. There is a great article with all the details
here:
https://developer.mozilla.org/en/Configuring_servers_for_Ogg_media
FYI - J

On Tue, May 3, 2011 at 6:09 AM, Tomas Doran <bobtfish at bobtfish.net> wrote:
>
> On 8 Apr 2011, at 21:58, jeff robinson wrote:
>
>> 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
>
> I guess the difference here is in the Content-Type.
>
> Does it do what you want if you override Static::Simple to send the other
> type?
>
> Cheers
> t0m
>
>
> _______________________________________________
> 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