in reply to Re^13: awanti Perl not playing video with vlc plugin
in thread Perl not playing video with vlc plugin

Can you please do more little favor?? Can you explain this code? I am not getting what this code block is doing?
if( my $httprange = $cgi->http('range') ){ if( $httprange =~ /bytes=(\d+)(?:-(\d*))?/i ){ my $from = $1; my $to = $2; $from and $begin = $from; $to and $end = $to; } }

Replies are listed 'Best First'.
Re^15: awanti Perl not playing video with vlc plugin
by Anonymous Monk on Dec 30, 2015 at 09:43 UTC
    Do you have any guesses?
      I guess it is checking the HTTPRANGE...

        Pretty much,

        get the header using cgi and extract from that string the two numbers

        unfortunately the rest of the program doesn't make use of $end to return the only return the requested range :)