代码
<player-component
wx:if="{{type == 1 }}"
playerid="tvp"
autoplay="{{autoplay}}"
controls
enable-play-gesture="{{true}}"
enable-progress-gesture="{{true}}"
useNativeUI="{{true}}"
binderror="videoErrorCallback"
bind:timeupdate="videoTimeupdate"
initialTime="{{initialTime}}"
vid="{{source}}"
bind:videoCanplay="videoCanplay"
bind:videoPlaying="videoPlaying"
bind:videoPause="videoPause"
>
<view slot="bottom-left-ctrl-btn" bind:tap="callback">左下角的自定义按钮</view>
<view slot="top-right-ctrl-btn" bind:tap="callback">右上角的自定义按钮</view>
<view slot="bottom-right-ctrl-btn" bind:tap="callback">右下角的自定义按钮</view>
<view slot="default" bind:tap="callback">默认slot</view>
</player-component>
页面显示
刷新后就恢复正常
你好提供一下详细报错信息
<txv-video :vid="show.videovid" :autoplay="true" :loop="true" controls object-fit='cover' :muted='true' :show-mute-btn='true' :enable-play-gesture='true'></txv-video>
request video info error encountered {code: "12002", message: undefined}
2.1.1版本有问题,2.1.0没有