-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Add 3-2-1 countdown #604
base: master
Are you sure you want to change the base?
Add 3-2-1 countdown #604
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @denismosolov!
the deviceButton
option should go into a separate PR.
In order to make this countdown more flexible I was thinking people would want to configure the:
- time between steps (default: 1000msec)
- amount of steps (default: 3)
The time between steps could be either a nr (1000 is default) or an array of integers.
Thoughts?
Oh, I just forked it to tweak to my own use :) But I can add the parameters to make it customizable later. Also it does not have css yet. Sorry, I mistyped the target repo :) |
@thijstriemstra thanks for the feedback! I've updated some docs and got 69 files after running the |
No, they'll be updated later. |
@thijstriemstra Finally, I'd like to lock the record button while the countdown is running. Is that acceptable? Probably, I have to add a state |
Makes sense. |
Also, instead of adding two new options, what about adding one that takes an array of msec. This way we only need one option (length of array is amount of steps in the countdown, step length is array element value). var steps = [1000, 1000, 1000]; or many steps: var steps = [];
for (var d=0;d<10;d++) {
steps.push(1000);
} |
How about this:
A bit more complicated, but flexible. |
Right, makes a lot of sense. I forgot you want to have a custom label for the countdown (or up). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also needs a changelog entry.
…s options with countdown.
Not ready yet |
Hi @thijstriemstra , any luck with the failing tests? I've just added the final tweaks. Do you think this PR can be merged? |
@denismosolov sorry for the long wait, I would like to get this merged, so could you merge master into your branch? |
@thijstriemstra merged. I use that countdown for two years in production and it works great. But I need to take a look at everything one more time. I think I'll do it during the April. Would be great if we can merge it, so I can stop using my fork and switch to the upstream :) |
@thijstriemstra I wonder if |
Yea all tests are run except 1 or so, similar to github actions: https://github.com/collab-project/videojs-record/actions/runs/8589870403/job/23541384429#step:12:2075 What OS/browser versions are you using @denismosolov? |
Thanks! I'll take a closer look this month. I can see 106 tests here https://github.com/collab-project/videojs-record/actions/runs/8589870403/job/23541384429#step:12:2075 |
@thijstriemstra do you think this can be merged? I tested and it looks good to me |
Do you have firefox and chrome installed? |
examples/video-only.html
Outdated
@@ -44,6 +44,14 @@ | |||
video: true, | |||
maxLength: 10, | |||
displayMilliseconds: false, | |||
countdown: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd rather not add it to the default video demo, to keep the example as simple as possible.
I'll have to test it first, thanks. |
Chrome only. I'll install FF and try one more time |
No description provided.