wasm4 icon indicating copy to clipboard operation
wasm4 copied to clipboard

Record videos at any duration

Open MrRafael-dev opened this issue 3 years ago • 5 comments

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:

  1. Press F10 once.
  2. 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.
  3. Press F10 again, and it will immediately stop the recording and generate one webm file for you.
  4. If you forget to press F10 again, the recording will stop after a certain time limit (30 seconds?).

MrRafael-dev avatar Jan 09 '22 07:01 MrRafael-dev

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.

christopher-kleine avatar Jan 09 '22 20:01 christopher-kleine

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.

aduros avatar Jan 10 '22 13:01 aduros

While you're at it, I think we should add categories or something like that.

christopher-kleine avatar Jan 10 '22 17:01 christopher-kleine

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.

aduros avatar Jan 10 '22 19:01 aduros

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.

TLAlice avatar Jan 11 '22 13:01 TLAlice