Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: Serving video files in specific byte-ranges

by Corion (Pope)
on Sep 06, 2011 at 20:22 UTC ( #924459=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Serving video files in specific byte-ranges
in thread Serving video files in specific byte-ranges

Looking at the source of HTTP::Message, it just does not want to decode the content delivered by a callback:

... $content_ref = $self->content_ref; die "Can't decode ref content" if ref($content_ref) ne "SCALAR"; ...

Either you fix HTTP::Message or you try it with ->content() instead of ->decoded_content. Alternatively, look at Plack as your server framework - it should handle callback responses more gracefully than your approach.


Comment on Re^5: Serving video files in specific byte-ranges
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924459]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (13)
As of 2015-07-30 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls