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

Seek variable gives buggy output #3

Open
mhaddon opened this issue Feb 8, 2023 · 0 comments
Open

Seek variable gives buggy output #3

mhaddon opened this issue Feb 8, 2023 · 0 comments

Comments

@mhaddon
Copy link

mhaddon commented Feb 8, 2023

This line:

mediaElement.currentTime = seek;

In my scene I have long running media files, and their currentTime is often configured incorrectly by this line.

I find at the beginning of the scene, the "seek" variable is set too low, and at the end of the scene, it is set too high.

For exmaple, if time is the real time, and rate is the playback rate:

{"time":0.033359999999993305,"rate":1,"seek":0.000013625982574020153}
{"time":1.851479999999993,"rate":1,"seek":0.03184492789259128}

{"time":212.4885,"rate":1,"seek":236.26231815046992}

When I change the line to mediaElement.currentTime = time;, everything seems to work as expected.

Is there a reason why it is set to seek? What is the purpose?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant