Search code examples
htmlcoldfusioncoldfusion-8

html5 video tag not displaying video, does ColdFusion make a difference?


I'm on a server still running ColdFusion version 8. I'm not sure if this is my problem though.

I have the following code that I can get to work in my computer on my desktop, using both Firefox and Chrome. I access it as an html file directly using a file system url, i.e. file:///C:/.../test.html

<!DOCTYPE HTML>
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <title>test</title>
 </head>
 <body>
     <p> Try w3Schools test video</p>
     <video width="320" height="240" controls>
         <source src="movie.mp4" type="video/mp4">
         <source src="movie.ogg" type="video/ogg">
         Your browser does not support the video tag.
     </video>
 </body>
 </html>

When I put this test.cfm or test.html page up on the Coldfusion 8 server, neither browser displays the video. The movie.mp4 and movie.ogv files are up on the server in the same directory as the test.cfm file. In Firefox I get:

"No video with supported format and MIME type found."

In Chrome it shows the video controls but no video is present.

Is there something I need to enable on the server (it is a shared hosting account)? Perhaps this is not particular to ColdFusion and I'm making another mistake (note this is my first attempt to use the video tags).

Thanks

P.S. If I access it on my computer using Aptana's launch mechanism and running in:

127.0.0.1:8000/.../test.html

I get the same problem as running on the server. The videos do not display.


Solution

  • Courtesy of Miguel-F's guidance, the server was missing support for the .mp4 and .ogv mime types. When the hosting company added those to the server, the videos displayed.