方法一:将视频在微信公众平台中的调用代码提取出来,如下所示:
<iframe class="video_iframe" style=" z-index:1; " src="http://v.qq.com/iframe/player.html?vid=m0137rrajuc&width=300&height=200&auto=0" allowfullscreen="" frameborder="0" height="200" width="300"></iframe>
打开需要添加的腾讯视频网址,例如:http://v.qq.com/cover/z/zrxyhghf3n8xhxl/k0015trfczz.html
将上述代码中的vid=后面的内容替换成上述网址中标红的部分,然后将上述网址重新复制出来:
<iframe class="video_iframe" style=" z-index:1; " src="http://v.qq.com/iframe/player.html?vid=k0015trfczz&width=300&height=200&auto=0" allowfullscreen="" frameborder="0" height="200" width="300"></iframe>
<iframe class="video_iframe" style="z-index:1;" src="http://v.qq.com/iframe/player.html?vid=r01470ea0hv&width=656&height=470&auto=0" allowfullscreen="" frameborder="0" height="470" width="656">
</iframe>
效果参见下方:
class="video_iframe" src="http://v.qq.com/iframe/player.html?vid=k0015trfczz&width=300&height=200&auto=0" width="300" height="200" frameborder="0" allowfullscreen="allowfullscreen" style="margin: 0px; padding: 0px; border-width: 0px; z-index: 1; background: transparent;">
其中的视频的宽度(width)和高度(height)可以分别通过修改代码中对应的数值(本视频中width=300,height=200)来进行修改。
*****************************************************************************************************************************************************
<div class="video-player">
<object width="500" height="400" type="application/x-shockwave-flash" data="//imgcache.qq.com/tencentvideo_v1/player/TencentPlayer.swf?vid=j0019dptog1&autoplay=1&tpid=0"><param value="//imgcache.qq.com/tencentvideo_v1/player/TencentPlayer.swf?vid=j0019dptog1&autoplay=1&tpid=0" name="movie"><param name="wmode" value="transparent"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><param name="flashvars" value="autoplay=0&adplay=1"></object>
<div class="video-title">陈坤:看风水请找陈大师</div>
</div>