We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我在外层通过改变传递的url props 让Player播放不同的视频,但是怎么才能当url切换时重置或者将currentTime设置为0呢? 我尝试了
useEffect(()=>{ messageContextRef.dispatchAction(ACTIONS.TIME_UPDATE,{currentTime:0}) },[url])
并不生效
组件如下:
export default function IVideo({ url, ...props }) { return ( <div className={style.videoPlayer} {...props}> <Player shouldObserveResize={true} initialObjectFit={'contain'} className={style.player} locale="zh-Hans" autoplay={true} disablePictureInPicture={true} hiddenQualityMenu={true} sources={{ hd: { play_url: url, }, }} /> </div> ); }
The text was updated successfully, but these errors were encountered:
按项目示例下的使用是有效的,如果可以的话,请提供一个示例。
Sorry, something went wrong.
No branches or pull requests
我在外层通过改变传递的url props 让Player播放不同的视频,但是怎么才能当url切换时重置或者将currentTime设置为0呢?
我尝试了
并不生效
组件如下:
The text was updated successfully, but these errors were encountered: