1、视频播放处
<txv-video vid="z35020kqhlx" playerid="txv1" width="100%" height="450rpx"></txv-video>
</txv-video>
2、mainfest
"plugins": {
"tencentvideo": {
"version": "2.1.8", //这块是版本号
"provider": "wxa75efa648b60994b" //这块是腾讯视频插件的id 不必修改
}
},
"usingComponents": true
3、page.json
{
"path": "pages/common/productList/productList",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"mp-weixin": {
"usingComponents": {
"txv-video": "plugin://tencentvideo/video"
}
}
}
},
4、获取vid 点击播放的视频,右击选择第一行