When i keep the file in the server i can play it.But if i keep the video file in some other directory it wont play the video instead it will give the error. After doing some research i came to know that it should be in the path where server can access that directory.So the most cases it would be /var/www/ path.But what should i do when the video files are in the different paths.I mean it could be able to play the file whichever path it may be.#!/usr/bin/perl use warnings; use strict; use CGI; my $cgi = CGI->new; print $cgi->header( -type=> "text/html" ); print <<EOF; <video width="320" height="240" controls> <source src="/home/ubuntu_Workspace/c/video.mp4" type="video/mp4"> </video> EOF
In reply to (OT) HTML video tag is not working in cgi by awanti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |