Home > Web Front-end > HTML Tutorial > The problem that videos embedded in html cannot be played_html/css_WEB-ITnose

The problem that videos embedded in html cannot be played_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:15:37
Original
2651 people have browsed it

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


Reply to the discussion (solution)

src="http://localhost/younao01. mp4

You need to install the MP4 plug-in.
Try changing to an MP3 file

You said it wrong, you should install an MP4 decoder

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?

type="video/x-ms-asf" data="younao01.mp4"
classid="CLSID:6BF52A52- 394A-11d3-B153-00C04F79FAA6">










Put that MP4 in the same directory as TEST.HTM.

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)

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template