Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
Fish_Tacozzx is on a distinguished road
 
Posts: 1
Join Date: Jul 2012
Default File mp4 is not working - 07-22-2012, 03:40 AM

Hi, I just set up my 000webhost.com website, but do not know how to set up the html(what I am using to program my website) code in the index.html so that it works on the browser. Currently, the quicktime logo with a question mark pops up. The current code I am using is:
HTML Code:
<html>
<body>
<embed src="F:/fftwpp/movie.mp4" VALUE="movie.mp4"></embed>
</body>
</html>
The movie.mp4 is the file's actual name, and is in the /public_html file. My index.html file is also in the /public_html, and the only other thing in /public_html is .htaccess. I am using Filezilla. How can I get the .mp4 to play?

Last edited by d3iti; 07-22-2012 at 07:09 AM. Reason: Title
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 6,481
Join Date: Jul 2009
Location: Spain
Default 07-22-2012, 07:13 AM

Hello,

You can start writing your code in the correct source.
If mp4 file is within the public_html folder and file that calls this file mp4 is also within the public_html folder you should use the following code:
HTML Code:
<html>
<body>
<embed src="movie.mp4" VALUE="movie.mp4"></embed>
</body>
</html>


Recuerda realizar copias de seguridad de tus sitios web. Si este mensaje te ayudó puedes pulsar sobre el botón karma
Reply With Quote
(#3 (permalink))
Old
Banned
Sogo7 is on a distinguished road
 
Posts: 294
Join Date: Dec 2010
Default 07-22-2012, 03:40 PM

Then the fun really begins because different web browsers can only play certain types of video (and audio) files. So to make sure that the video plays on whatever PC opens the page you need to have two copies of the video using different formats. There's a free online file conveter here.

HTML Code:
<video width="320" height="240" controls="controls">
  <source src="movie.mp4" type="video/mp4" />
  <source src="movie.ogg" type="video/ogg" />
  Your browser does not support the video tag.
</video>
For older browsers that do not support HTML5 you may also wish to inculde a FLASH player option as a last resort.

HTML5 Video Formats and Browser Support

There are 3 supported video formats for the <video> element: MP4, WebM, and Ogg:
Browser -------- --- MP4 ----- WebM ----- Ogg
Internet Explorer 9 ... YES ............NO ..........NO
Firefox 4.0+ ...............NO .............YES ........YES
Google Chrome 6+ ..... YES ............YES ........YES
Apple Safari 5+ ......... YES ............NO ..........NO
Opera 10.6+ ...............NO ............YES .........YES

MP4 = MPEG 4 files with H264 video codec and AAC audio codec
WebM = WebM files with VP8 video codec and Vorbis audio codec
Ogg = Ogg files with Theora video codec and Vorbis audio codec
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com