Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

currentTime(641) is succeeded,but the video is seeked to 0 #8699

Open
husongge-tal opened this issue Apr 19, 2024 · 1 comment
Open

currentTime(641) is succeeded,but the video is seeked to 0 #8699

husongge-tal opened this issue Apr 19, 2024 · 1 comment
Labels
needs: triage This issue needs to be reviewed

Comments

@husongge-tal
Copy link

Description

When I used currentTime(641), the seek was successful(Because we detected the player's seek event
), but the browser reported an error and the video started playing from 0 seconds(We have once again detected the player's seek event,and In fact, the video started playing from 0 seconds), I have only used currentTime once. Why?
my code:

if(this.player) {
this.player.currentTime(newVal);
}
……
this.player.on('seeked', function () {
console.log('The video has seeked!', this.player.currentTime());
});

event listeners :
events

Reduced test case

http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8

Steps to reproduce

  1. this.player = videojs(videoDomId, this.options, async () => {this.player.play()});
  2. add events listener
    3.this.player.currentTime(641)

Errors

the error picture:
error

What version of Video.js are you using?

8.10.0

Video.js plugins used.

No response

What browser(s) including version(s) does this occur with?

Chrome/78

What OS(es) and version(s) does this occur with?

MacBook Pro (16-inch, 2019)

@husongge-tal husongge-tal added the needs: triage This issue needs to be reviewed label Apr 19, 2024
Copy link

welcome bot commented Apr 19, 2024

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@husongge-tal husongge-tal changed the title currentTime(120) is succeeded,but the video is seeked to 0 currentTime(641) is succeeded,but the video is seeked to 0 Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: triage This issue needs to be reviewed
Projects
None yet
Development

No branches or pull requests

1 participant