Re: [Catalyst] Streaming video online to a flash or HTML5 player

2012-09-18 Thread Tomas Doran

On 14 Sep 2012, at 20:06, Hector Azpurua wrote:

> I'm developing a site with serves several videos online, using Catalyst and 
> the JWplayer, and I cant find a stable way of stream the videos to the client 
> player with the capability of start the video from a random point.
> 
> I searched the web for some ways to do it but I cannot find a simple way of 
> implementing it in Catalyst (RTMP or HTTP Pseudostreaming) because i need my 
> program to serve the videos only if a user have the permission to do it, not 
> serve the file directly. The only simple example that i found was a old 
> Catalyst script streaming an MP3 
> (http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Streaming/lib/Streaming.pm)
>  but I didn't know if that will work as expected if I apply that technique to 
> videos.

Yes, it will.

> What would be a good approach to serve online videos in Catalyst/Perl in a 
> non complicated way? Or what is the recommended way to do it?

A lot of people use the web server to do this, using X-Sendfile (lighttpd or 
apache mod_sendfile) or X-Accel-Redirect (nginx).

This pushes the work of serving the file off to the web server (which is more 
efficient), but also allows your application to do the access control.

Cheers
t0m


___
List: Catalyst@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/


Re: [Catalyst] Testing with 5.8 and 5.9 on one system

2012-09-18 Thread Hugh Barnard
On 18 September 2012 10:35, Geovanny Junio :: eutsiv wrote:

> Do you know perlbrew?
>
Hi Geovanny, I know a little about it but I'll take a closer look, thanks,
Hugh


> Em 18/09/2012 05:52, "Hugh Barnard"  escreveu:
>
>> Hi folks
>>
>> I am currently working on [a clients] Catalyst application that has
>> problems with 5.9 and works with 5.8. I'm doing this on their system so I'd
>> prefer to be minimally invasive too.
>>
>> My current though is to install 5.9 in my home directory on their system
>> using local::lib:
>> earch.cpan.org/~apeiron/local-lib-1.008004/lib/local/lib.pmand
>>  then switch between the two by modifying the use statements for the
>> tests.
>>
>> However, I'd welcome any suggestions, experiences and/or tips when doing
>> something like this. The ideal is [for me] two VMs or two systems but that
>> isn't currently an option.
>>
>> Best regards Hugh Barnard
>>
>> --
>> http://www.hughbarnard.org
>> http://www.twitter.com/hughbarnard
>> http://www.big-wave-heuristics.com/
>>  
>>
>> ___
>> List: Catalyst@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/
>>
>>
> ___
> List: Catalyst@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/
>
>


-- 
http://www.hughbarnard.org
http://www.twitter.com/hughbarnard
http://www.big-wave-heuristics.com/

___
List: Catalyst@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/


Re: [Catalyst] Testing with 5.8 and 5.9 on one system

2012-09-18 Thread Geovanny Junio :: eutsiv
Do you know perlbrew?
Em 18/09/2012 05:52, "Hugh Barnard"  escreveu:

> Hi folks
>
> I am currently working on [a clients] Catalyst application that has
> problems with 5.9 and works with 5.8. I'm doing this on their system so I'd
> prefer to be minimally invasive too.
>
> My current though is to install 5.9 in my home directory on their system
> using local::lib:
> earch.cpan.org/~apeiron/local-lib-1.008004/lib/local/lib.pm and then
> switch between the two by modifying the use statements for the tests.
>
> However, I'd welcome any suggestions, experiences and/or tips when doing
> something like this. The ideal is [for me] two VMs or two systems but that
> isn't currently an option.
>
> Best regards Hugh Barnard
>
> --
> http://www.hughbarnard.org
> http://www.twitter.com/hughbarnard
> http://www.big-wave-heuristics.com/
>  
>
> ___
> List: Catalyst@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/
>
>
___
List: Catalyst@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/


[Catalyst] Testing with 5.8 and 5.9 on one system

2012-09-18 Thread Hugh Barnard
Hi folks

I am currently working on [a clients] Catalyst application that has
problems with 5.9 and works with 5.8. I'm doing this on their system so I'd
prefer to be minimally invasive too.

My current though is to install 5.9 in my home directory on their system
using local::lib:
earch.cpan.org/~apeiron/local-lib-1.008004/lib/local/lib.pm and then switch
between the two by modifying the use statements for the tests.

However, I'd welcome any suggestions, experiences and/or tips when doing
something like this. The ideal is [for me] two VMs or two systems but that
isn't currently an option.

Best regards Hugh Barnard

-- 
http://www.hughbarnard.org
http://www.twitter.com/hughbarnard
http://www.big-wave-heuristics.com/

___
List: Catalyst@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/