Embed codes for several older players

Embed codes for several older players

The players we see on the web pages are nothing more than WMP/RealPlayer/Flash Player. The others are nothing more than different panels or the addition of other controls. Some players installed on the computer are also integration of encoders and decoders, and their 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). Below is the common web player code compiled by admin10000.com


1. Use the Embed tag to play multimedia files
Format <embed src="filename"/>. The file name can be any multimedia file format. For example, "test.wma" will display a Windows Media Player on the web page (because wma is dedicated to WMP). Another example is "test.rm", which will display a Real Player on the web page. Of course, RealPlayer must be installed on your computer for it to display.
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), for example: <embed src="a.swf">
In short, the role of the embed tag is to play the specified multimedia file on the web page.


2. Call Windows Media Player to play
Can be used to play wmv, asf and other format files

XML/HTML CodeCopy content to clipboard
  1. < object   classid = "CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"   codebase = "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"   type = "application/x-oleobject"   height = "200"   width = "300" >   
  2. < param   name = "filename"   value = "test.wmv"   />   
  3. < param   name = "autostart"   value = "false"   />   
  4. < param   name = "showstatusbar"   value = "true"   />   
  5. < param   name = "showtracker"   value = "true"   />   
  6. < param   name = "showcontrols"   value = "true"   />   
  7. < embed   filename = "test.wmv"   autostart = "false"   pluginspage = "http://www.microsoft.com/windows/windowsmedia/"   showcontrols = "true"   showstatusbar = "true"   showtracker = "true"   src = "test.wmv"   type = "application/x-mplayer2"   height = "200"   width = "300" > </ embed >   
  8. </ object >   

The class ID for Windows Media Player 7 and later is: clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6
The class ID in the example above is an old version, but it still works because of backward compatibility. But if you use the old class ID, you will not be able to use the new features added to the component.
Here is an example of the new version

CSS CodeCopy content to clipboard
  1. <object classid= "CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" type= "application/x-oleobject"   height = "200"   width = "300" >
  2. <param name= "url" value= "test.wmv" />
  3. <param name= "autostart" value= "false" />
  4. <param name= "showstatusbar" value= "true" />
  5. <param name= "showtracker" value= "true" />
  6. <param name= "showcontrols" value= "true" />
  7. <param name= "uimode" value= "full" />
  8. < embed filename= "test.wmv" autostart= "false" showcontrols= "true" showstatusbar= "true" showtracker= "true" uimode= "full"   src = "test.wmv" type = "application/x-mplayer2"   height = "200"   width = "300" ></ embed >
  9. </object>


3. Call Real Player to play
Can be used to play rm, ram and other format files

Play frame:

XML/HTML CodeCopy content to clipboard
  1. < object   classid = clsid :CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height = 285   id = RAOCX   name = rmplay   width = 356 >   
  2. < param   name = "SRC"   value = "Video URL" >   
  3. < param   name = "CONSOLE"   value = "Clip1" >   
  4. < param   name = "CONTROLS"   value = "imagewindow" >   
  5. < param   name = "AUTOSTART"   value = "true" >   
  6. < embed   src = "Video URL"   autostart = "true"   controls = "ImageWindow"   console = "Clip1"   pluginspage = "http://www.real.com" /' width = "356"   height = "285" >   
  7. </ embed >   
  8. </ object >   

Control frame: can be closely followed by the play frame

CSS CodeCopy content to clipboard
  1. <object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height =27 id=video1 width =356>
  2. <param name= "_ExtentX" value= "7276" >
  3. <param name= "_ExtentY" value= "1058" >
  4. <param name= "AUTOSTART" value= "0" >
  5. <param name= "SHUFFLE" value= "0" >
  6. <param name= "PREFETCH" value= "0" >
  7. <param name= "NOLABELS" value= "0" >
  8. <param name= "CONTROLS" value= "ControlPanel" >
  9. <param name= "CONSOLE" value= "Clip1" >
  10. <param name= "LOOP" value= "0" >
  11. <param name= "NUMLOOP" value= "0" >
  12. <param name= "CENTER" value= "0" >
  13. <param name= "MAINTAINASPECT" value= "0" >
  14. <param name= "BACKGROUNDCOLOR" value= "#ffffff" >
  15. < embed type= "audio/x-pn-realaudio-plugin" console= "Clip1" controls= "ControlPanel"   height = "27"   width = "356" autostart = "0" _extentx = "7276" _extenty = "1058" shuffle = "0" prefetch = "0" nolabels = "0" loop = "0" numloop = "0"   center = "0" maintainaspect = "0" backgroundcolor = "#ffffff" >
  16. </ embed >
  17. </object>

<<:  Web realizes the code of popping up the window of uploading files by clicking the picture

>>:  Install MySQL (including utf8) using Docker on Windows/Mac

Recommend

Design Reference Beautiful and Original Blog Design

All blogs listed below are original and uniquely ...

How to use sed command to efficiently delete specific lines of a file

Preface Normally, if we want to delete certain li...

How to use mqtt in uniapp project

Table of contents 1. Reference plugins in the uni...

Vue3 compilation process-source code analysis

Preface: Vue3 has been released for a long time. ...

Detailed explanation of setting Context Path in Web application

URL: http://hostname.com/contextPath/servletPath/...

docker cp copy files and enter the container

Enter the running container # Enter the container...

Write a formal blog using XHTML CSS

The full name of Blog should be Web log, which mea...

Vue implements 3 ways to switch tabs and switch to maintain data status

3 ways to implement tab switching in Vue 1. v-sho...

The button has a gray border that is ugly. How to remove it?

I used the dialog in closure and drew a dialog wit...

Detailed explanation of how to use $props, $attrs and $listeners in Vue

Table of contents background 1. Document Descript...

Element dynamic routing breadcrumbs implementation example

To master: localStorage, component encapsulation ...