uniapp ----使用腾讯视频插件播放视频(微信小程序)

uniapp ----使用腾讯上传视频(微信小程序)

1.打开微信公众平台,设置–>第三方设置,搜索“腾讯视频”,点击添加。

在这里插入图片描述
2.在项目文件的page.json中的对应页面的 style中添加

{
    
    
	"path": "pages/video/videoDeatil",
	"style": {
    
    
		"usingComponents": {
    
    
			// #ifdef  MP-WEIXIN 
			"txv-video": "plugin://tencentvideo/video"
		// #endif
		}
	}
},

3.页面中引入

<view class=""><txv-video vid="xxxx" playerid="cccc"></txv-video>
</view>

猜你喜欢

转载自blog.csdn.net/heavenz19/article/details/129670028