自動播放 求教js大神,videojs中怎么自動播放下一集?
求教js大神,videojs中怎么自動播放下一集?有 ended 事件,改寫一個這個方法播放下一集即可:ended EVENT:Fired when the end of the media res
求教js大神,videojs中怎么自動播放下一集?
有 ended 事件,改寫一個這個方法播放下一集即可:
ended EVENT:
Fired when the end of the media resource is reached (currentTime == duration)
再:
src( [source] )
myPlayer.src("http://www.example.com/path/to/video.mp4")
More:
https://github.com/videojs/video.js/blob/stable/docs/api/vjs.Player.md#ended-event