【发布时间】:2020-07-13 08:36:56
【问题描述】:
在我的 React 应用程序中,我想要一个按钮来导航到将在当前视频播放完毕后出现在视频中的下一课。我正在使用react-player 来显示视频。我想知道我怎样才能做到这一点是react-player。非常感谢任何有用的提示。
<ReactPlayer
url={videoPath}
width="100%"
height='100%'
controls={true}
className="player"
onEnded={markLessonAsCompleted}
config={{
file: {
attributes: {
controlsList: "nodownload"
}
}
}}
volume={1}
/>
【问题讨论】:
标签: reactjs react-player