轻松实现在浏览器上播放本地视频
在桌面新建一个文本文档,更改扩展名为.html,复制以下HTML代码写入文本保存之后打开即可。(更改文件地址即可)
<body bgcolor=#000000> <p align=center> <object id="mPlayer1" width="600" height="800" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"> <param name="URL" value="D:\example.mp4"/> <param name="rate" value="1"/> <param name="balance" value="0"/> <param name="currentPosition" value="0"/> <param name="defaultFrame" value/> <param name="playCount" value="0"/> <param name="autoStart" value="1"/> <param name="currentMarker" value="0"/> <param name="invokeURLs" value="1"/> <param name="baseURL" value/> <param name="volume" value="100"/> <param name="mute" value="0"/> <param name="uiMode" value="full"/> <param name="stretchToFit" value="0"/> <param name="windowlessVideo" value="0"/> <param name="enabled" value="1"/> <param name="enableContextMenu" value="1"/> <param name="fullScreen" value="0"/> <param name="SAMIStyle" value/> <param name="SAMILang" value/> <param name="SAMIFilename" value/> <param name="captioningID" value/> <param name="enableErrorDialogs" value="0"/> <param name="_cx" value="7779"/> <param name="_cy" value="1693"/> <embed src="D:\example.mp4" width="600" height="800"/> </object> </p> </body>