小程序内嵌视频-插件

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 点击播放的视频,右击选择第一行

猜你喜欢

转载自blog.csdn.net/m0_56095048/article/details/129042936