in reply to Re^4: [OT] Re: (OT) HTML video tag is not working in cgi
in thread (OT) HTML video tag is not working in cgi

u mean to say i should give absolute path..?but how can i point to my file??
  • Comment on Re^5: [OT] Re: (OT) HTML video tag is not working in cgi

Replies are listed 'Best First'.
Re^6: [OT] Re: (OT) HTML video tag is not working in cgi
by poj (Abbot) on Jan 28, 2016 at 13:20 UTC

    What location shows in your browser when you access the html file ?

    poj
      file:///home/ubuntu_workspace/c/test.html
      Is this you are asking?

        This is why it works and what Corion already said. The video serves because the context is the file:/// tree. But once you serve the HTML through any kind of webserver, the path to the video will not exist in that context. Probably one of these will work but it depends on the type and configuration of the webserver you are using–

        <source src="video.mp4" type="video/mp4"> <source src="c/video.mp4" type="video/mp4"> ...etc...