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

current time and duration blinking #175

Closed
bobyper opened this issue Oct 26, 2017 · 10 comments
Closed

current time and duration blinking #175

bobyper opened this issue Oct 26, 2017 · 10 comments
Assignees
Labels

Comments

@bobyper
Copy link

bobyper commented Oct 26, 2017

Description

for version 2.0.0
if duration time is greater than 9 minutes, for example 10 minutes, during second and every next record, current time and duration is blinking weird

Steps to reproduce

set maxLength: 600
make short record for example 5 seconds
make another record and watch into current time and duration

@thijstriemstra
Copy link
Member

@bobyper is this audio-video, video-only? both? audio-only?

@bobyper
Copy link
Author

bobyper commented Oct 26, 2017

i tested audio-video

@thijstriemstra
Copy link
Member

@bobyper I cannot reproduce this on Ubuntu 16.04 with Firefox 56. What browser. operating system, video.js versions?

@bobyper
Copy link
Author

bobyper commented Nov 2, 2017

windows - Firefox 56.0.2 and Chrome 61

The issue is caused from time format. Before start record current time and duration is showing as
0:00 / 10:00

start record -> current time is formatted as
00:00 / 10:00

reocrd 15 seconds and stop. Current time and duration is showing as

00:15 / 0:15

now duration of recorded stream is 0:15 but maxLength from recorder settings is 10:00

Sometimes time is formatted as
0:00 / 0:15 (duration of recorded string)
sometimes as
00:00 / 10:00 (duration of maxLength setting)

this cause current time and duration shifting and blinking during next records

@bobyper
Copy link
Author

bobyper commented Nov 23, 2017

I fixed this issue. Line 2792 version 2.0.2, function playbackTimeUpdate()
2792 this.setCurrentTime(this.player.currentTime(), this.streamDuration);

changed to
2792 if (!this.isRecording()) this.setCurrentTime(this.player.currentTime(), this.streamDuration);

setCurrentTime only in playback, not in record

@thijstriemstra
Copy link
Member

That sounds reasonable, thanks for the research @bobyper. Can you make a pull request so this fix can be properly accredited to you?

@thijstriemstra
Copy link
Member

The issue is caused from time format. Before start record current time and duration is showing as
0:00 / 10:00

Check.

start record -> current time is formatted as
00:00 / 10:00

Yep.

reocrd 15 seconds and stop. Current time and duration is showing as
00:15 / 0:15

I see this as well now, thanks for the details. This is a bug.

And I also see the blinking bug now: simply make another recording and it starts shifting. I'll take a look if your suggestion fixes it for all cases.

@thijstriemstra
Copy link
Member

@bobyper I committed a fix to master, can you see if that one helps?

@bobyper
Copy link
Author

bobyper commented Dec 5, 2017

Working fine for me. Good job!

@thijstriemstra
Copy link
Member

thanks for the feedback.

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

No branches or pull requests

2 participants