awanti has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (OT) HTML video tag is not working in cgi
by LanX (Saint) on Jan 28, 2016 at 12:30 UTC | |
|
[OT] Re: (OT) HTML video tag is not working in cgi
by hippo (Archbishop) on Jan 28, 2016 at 11:40 UTC | |
by awanti (Acolyte) on Jan 28, 2016 at 12:19 UTC | |
by poj (Abbot) on Jan 28, 2016 at 12:25 UTC | |
by awanti (Acolyte) on Jan 28, 2016 at 12:57 UTC | |
by Corion (Patriarch) on Jan 28, 2016 at 12:59 UTC | |
|