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

i tried to send the data but it is throwing the error.. and in error log it is writing
[Tue Dec 29 23:49:50.043829 2015] [cgid:error] [pid 11025:tid 30020432 +00] (104)Connection reset by peer: [client 127.0.0.1:41743] AH02550: +Failed to flush CGI output to client

Replies are listed 'Best First'.
Re^17: Perl not playing video with vlc plugin
by Anonymous Monk on Dec 29, 2015 at 18:35 UTC

    i tried to send the data but it is throwing the error.. and in error log it is writing

    What did you try?

    Disable buffering ?

    use IO::Handle; STDOUT->autoflush;
      vlc player is crashing.. here is my file reading part
      my $cur=$begin; seek($fh,$begin,0); while(!eof($fh) && $cur < $end) { my $buf=1024*16; read $fh, $buf, $end-$cur; $cur+=1024*16; print $buf; } close $fh; autoflush STDOUT 1;