Embed codes for several old-fashioned players_HTML/Xhtml_Web page production
WBOY
Release: 2016-05-16 16:36:21
Original
1593 people have browsed it
The players we see on the web are nothing more than WMP/RealPlayer/Flash Player. The others are just different panels or adding other controls. Some players installed on the computer are also encoders and decoders. For integration, the core encoding and decoding technologies are the same. For example: the most popular windows media streams on the Internet (asf, wma, wmv formats), Real streams (rm, rmvb formats), and MPEG series encoding formats (MP4, MP3 formats). The following is a common web player code compiled by admin10000.com
1. Use the Embed tag to play multimedia files Format . The file name can be in any multimedia file format. For example, "test.wma" will display a Windows Media Player on the web page (because wma is exclusive to WMP). Another example is "test.rm". Display a Real Player player on the web page. Of course, RealPlayer must be installed on your computer to display it. In fact, the embed tag can also display Flash animation (the role of the embed tag is similar to that of using the object tag to display Flash animation). Example:
2. Call Windows Media Player to play Can be used to play wmv, asf and other format files
The class ID for Windows Media Player 7 and above is: clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6 The class ID in the above example is an old version, but it can still work because Its backward compatibility. But if you use the old class ID, you will not be able to use the new features added to the component. An example of the new version is given below
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