video.js icon indicating copy to clipboard operation
video.js copied to clipboard

cannot seek at certain point in video in chrome

Open vcombey opened this issue 4 years ago • 3 comments

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

vcombey avatar Jan 07 '21 01:01 vcombey

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.

mister-ben avatar Jan 07 '21 18:01 mister-ben

Also rather than video_reference.current.currentTime = 560, try using the Video.js API player.currentTime(560).

mister-ben avatar Jan 08 '21 15:01 mister-ben

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.

stale[bot] avatar Apr 28 '22 17:04 stale[bot]