最近开发小程序时,
想到一个问题’能不能把腾讯视频放到小程序里,给用户观看呢‘
于是试了腾讯分享的三种地址,
发现都不行,
提示 Uncaught (in promise) NotSupportedError: The element has no supported sources.
以下是小程序开发过程中遇到的情况。
腾讯视频分享代码1
https://imgcache.qq.com/tencentvideo_v1/playerv3/TPout.swf?max_age=86400&v=20161117&vid=z0024uf1qia&auto=0腾讯视频分享代码2
https://imgcache.qq.com/tencentvideo_v1/playerv3/TPout.swf?max_age=86400&v=20161117&vid=z0024uf1qia&auto=0腾讯视频分享代码2
<embed src=”
https://imgcache.qq.com/tencentvideo_v1/playerv3/TPout.swf?max_age=86400&v=20161117&vid=z0024uf1qia&auto=0 ” allowFullScreen=”true” quality=”high” width=”480″ height=”400″ align=”middle” allowScriptAccess=”always” type=”application/x-shockwave-flash”></embed>
使用
https://imgcache.qq.com/tencentvideo_v1/playerv3/TPout.swf?max_age=86400&v=20161117&vid=z0024uf1qia&auto=0腾讯视频分享代码3
<iframe frameborder=”0″ width=”640″ height=”498″ src=”(F8H3IKU(@43DQ[32YWO.png)
https://v.qq.com/iframe/player.html?vid=z0024uf1qia&tiny=0&auto=0 ” allowfullscreen></iframe>
使用
https://v.qq.com/iframe/player.html?vid=z0024uf1qia&tiny=0&auto=0

使用

<iframe frameborder=”0″ width=”640″ height=”498″ src=”
(F8H3IKU(@43DQ[32YWO.png)

使用

然后向小程序官方客服咨询,
得到的答复是<video>组件,
src要求是具体视频文件地址才能播放,
例如’https://www.qinziheng.com/abc.mp4′

来源:秦子恒博客,欢迎转载分享,请保留出处
微信小程序的 video 组件支持播放腾讯视频吗,提示The element has no supported sources.链接:https://www.qinziheng.com/xiaochengxudev/3825.htm