PC端:
使用<embed></embed>标签 所有浏览器都支持 ,不存在兼容性问题。
src=规定被嵌入内容的 URL
autostart=true、false 是否自动播放
loop=正整数、true、false 该属性规定音频或视频文件是否循环及循环次数
常见播放器的type属性值:
Flash:type="application/x-shockwave-flash";
Windows mediaplayer:type="application/x-mplayer2";
Realplayer:type="audio/x-pn-realaudio-plugin"。
举例:
<embed src="https://imgcache.qq.com/tencentvideo_v1/playerv3/TPout.swf?max_age=86400&v=20161117&vid=v055084psj7&auto=0"allowFullScreen="true" quality="high" width="480"height="400" align="middle"allowScriptAccess="always"type="application/x-shockwave-flash"></embed>
app端:
嵌入iframe
举例:
<iframe frameborder="0" width="100%"src="https://v.qq.com/iframe/player.html?vid=v055084psj7&tiny=0&auto=0"allowfullscreen></iframe>