Home >Web Front-end >HTML Tutorial >The problem that videos embedded in html cannot be played_html/css_WEB-ITnose
The code is as follows:
type="video/x-ms-asf" url="http://localhost/younao01.mp4" data ="younao01.mp4"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
< ;param name="filename" value="younao01.mp4">
x-mplayer2" src="http://localhost/younao01.mp4" width="100%" height="100%" autostart="true" showcontrols="true" pluginspage="http://www.microsoft. com/Windows/MediaPlayer/">
This code is in my test.html, accessed through an absolute path such as c:test.html The video can be played, but it cannot be played when accessed through: http://localhost/test.html. It just looks like a player is loaded on the page, and none of the buttons work.
I guess it has nothing to do with the code. What's the matter? Please let me know from experts
You need to install the MP4 plug-in.
Try changing to an MP3 file
But you can play the video by accessing it through an absolute path such as c:test.html
Oh, Didn't look carefully. Khan~
Check the IIS settings, is the MP4 type mapped?
It has been solved. The answer given by the classmate (who came from the Internet) is correct. There is no MP4 mapping in IIS. The solution is now announced as follows:
win7:
Control Panel--View Method (Upper right corner)--Small icon--Management Tools--Internet Information Services (IIS) Manager--Click your website name on the left--Double-click "MIME Type" on the right--Click Add on the far right--File extension Fill in the name as .mp4, and the MIME type is Video/mp4 or application/octet-stream, which seems to be OK
OK, that’s it
Thank you everyone, especially thank you (who came to the Internet)