zhihu / griffith

A React-based web video player

Home Page:https://codesandbox.io/embed/p03wm0o80

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

怎么在播放完之后触发重新播放,我这样写能捕捉到播放完成的事件但是不能触发再次播放

xzf123456 opened this issue · comments

commented

const {dispatchAction,subscribeEvent} = this.props
this.play=subscribeEvent(EVENTS.DOM.ENDED, () => {
dispatchAction(ACTIONS.PLAYER.PLAY)
})
@wayhome @ambar @lsbigboy @lixiaoyan

ACTIONS.PLAYER.PLAY 未支持,参考 #144

欢迎 PR

@xiaoyuhen 现在还不支持ACTIONS.PLAYER.PLAY?

commented

@xzf123456 @showtan001 已经支持,见:#186