Problem to play mp4 file

Hi,

I cannot play the mp4 file on the page, using these codes

    <video width="420" height="330" controls autoplay>
          <source src="<%= ResolveUrl("~/../pict/MOV00C.mp4") %>" type="video/mp4" >
          Play the video.
    </video>

Open in new window


while the .mp4 file does exist within the folder.
LVL 11
HuaMin ChenSystem AnalystAsked:
Who is Participating?
 
David Johnson, CD, MVPOwnerCommented:
chrome most definitely supports html 5 and you are not using html 5 in your doctype you are using XHTML 1.0 Transitional .. change your doctype to simply <!DOCTYPE html>  which is a different dialect of html
0
 
HuaMin ChenSystem AnalystAuthor Commented:
while I can only see this
20
on the page, and cannot press "Play" to play .mp4 file.
0
 
David Johnson, CD, MVPOwnerCommented:
Do you have the correct doctype?
<!DOCTYPE html>

<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Across the Pacific</title>
    </head>
    <body>
        <video width="420" height="330" controls autoplay>
          <source src= "AcrossthePacific-1.mp4" type="video/mp4" >
          Your Browser Does Not Support the Video tag.
    </video> 
    </body>
</html>

Open in new window

0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
HuaMin ChenSystem AnalystAuthor Commented:
What do you mean? Can I have more details?
0
 
David Johnson, CD, MVPOwnerCommented:
<!DOCTYPE html>

Also the text that is shown only if the browser doesn't support html5 video
0
 
HuaMin ChenSystem AnalystAuthor Commented:
Yes, I'm having these

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
...

Open in new window


I'm using the latest version Chrome. I do not think Chrome does not support HTML5 video.
0
 
Monika BhartiSr. AnalyticsCommented:
Hi HuaMinChen,

Yes, I agree with the David answer. As I can also found the same answer after Google search from this link
http://www.w3schools.com/html/html5_video.asp 
Also you can visit this link to learn more about HTML5. I hope it will definitely help you out.
0
 
HuaMin ChenSystem AnalystAuthor Commented:
How to adjust such line

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Open in new window


to ensure it is supporting HTML 5?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.