in reply to playing video using vlc plugin

Have you looked into the web server error log to find out if there are any messages from your script there?

Have you inspected that the headers you send are the headers you should be sending?

Also note that HTTP headers should be delimited using \r\n, not \n. You should also use binmode STDOUT; before printing anything to the client.

Depending on how your webserver is set up, you might need to output a HTTP status line first:

print "200 OK HTTP/1.0\r\n";

Replies are listed 'Best First'.
Re^2: playing video using vlc plugin
by awanti (Acolyte) on Dec 28, 2015 at 08:05 UTC
    I added this
    if ( $begin > 0 || $end < $size ) { print "HTTP/1.1 206 Partial Content" ; } else { print "HTTP/1.1 200 OK" ;
    But i am getting the error
    Error - Bad Header
    I think this is webmin error.

      Sorry for mixing up the HTTP status line - it's been a long while since I last did this manually... You will need to print at least the newlines:

      print "HTTP/1.1 206 Partial Content\r\n";

      Also consider just running your script from the command line to see whether the headers look right. You might want to comment out the sending of the video to prevent binary data being spewed to your terminal.

        I am getting the line first line as
        HTTP/1.1 200 OK