腾讯视频嵌入网页的方法

方法一:将视频在微信公众平台中的调用代码提取出来,如下所示:

<iframe class="video_iframe" style=" z-index:1; " src="http://v.qq.com/iframe/player.html?vid=m0137rrajuc&amp;width=300&amp;height=200&amp;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&amp;width=300&amp;height=200&amp;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&amp;autoplay=1&amp;tpid=0"><param value="//imgcache.qq.com/tencentvideo_v1/player/TencentPlayer.swf?vid=j0019dptog1&amp;autoplay=1&amp;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&amp;adplay=1"></object>
                            <div class="video-title">陈坤:看风水请找陈大师</div>
                          </div>

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值