wasm4
wasm4 copied to clipboard
Record videos at any duration
Currently, it's possible to record only 4 seconds of gameplay. You hit F10 once, and it will automatically generate one webm file.
This is being handled here, at line 148.
It would be cool if we could record longer videos, though. So I think video recording could be done like this:
- Press F10 once.
- Gameplay is now being recorded. We could set some sort of indicator on top of the screen, so you don't forget to stop the recording later.
- Press F10 again, and it will immediately stop the recording and generate one
webmfile for you. - If you forget to press F10 again, the recording will stop after a certain time limit (30 seconds?).
Aside from Point 4, I agree with you there. But I tried this once. Kinda. I increased the duration from 4 to .. I think 30 seconds. The video quality got real bad then. It was completely unusable. But it's totally possible I screwed up somewhere.
For background, the reason this feature exists is because it was originally planned to have short gameplay preview thumbnails on the Play page at wasm.org. I want to redesign the Play page at some point (especially now that we have more games!), and maybe implement that idea.
While you're at it, I think we should add categories or something like that.
I'll create a new issue about redesigning the Play page, I didn't want to hijack this issue but just give some context :smiley: Being able to record longer videos would be cool.
Changed it to work that way in #301. I'm not very familiar with JS and this is my first contribution so I'm not sure if I did anything wrong but it did work while I was testing it.