video.js
video.js copied to clipboard
cannot seek at certain point in video in chrome
video_reference.current.currentTime = 560 on my video cause the video to load indefinitely but the video plays well from the beginning. It occurs on chrome, firefox is fine.
playerOptions = {
preload: 'auto',
sources: [{
type: 'application/x-mpegURL',
src: '**.m3u8'
}],
}
var player = videojs(video_reference.current, playerOptions, function(this: any) {
this.on('loadedmetadata', function() {
video_reference.current.currentTime = 560
})
})
I expect the video to be seekable anywhere or at lest that the player chose the most near seekable position and not load indefinitely
videojs version: 7.10.2 browser chrome
There's sometimes an issue with seeking if the segment durations declared in the manifest differ from the actual durations, but that would likely be the same in Firefox as Chrome. Hard to say much without an actual example.
Also rather than video_reference.current.currentTime = 560
, try using the Video.js API player.currentTime(560)
.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.