How do I invoke canvas' recording download on NW.js?

Get help using Construct 2

Post » Mon Mar 20, 2017 8:09 pm

I have an app that records canvas using UserMedia. Then, you left click, and it prepares the webm for download. The last step would be to invoke the download through the browser object, BUT - It does not work when exported to NW.js (while it does work on NW.js preview, which is odd.) Please help me save the resulting webm in NWjs.AppFolder.

Image

Conclusion 1 : NWjs's Write file does not work, instead, it makes a corrupt webm.
Last edited by HellMax on Tue Mar 21, 2017 8:06 pm, edited 1 time in total.
B
6
S
3
Posts: 114
Reputation: 1,616

Post » Tue Mar 21, 2017 10:08 am

You possibly should add the "NW.JS" object to your project, and instead of invoke download, try to "write file" UserMedia.CanvasRecordingURL.
I haven't tried it, so no guarantee it will work.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
291
S
114
G
95
Posts: 7,293
Reputation: 70,144

Post » Tue Mar 21, 2017 2:35 pm

The NWjs is already in.
Thank you, will try.
Last edited by HellMax on Tue Mar 21, 2017 8:06 pm, edited 1 time in total.
B
6
S
3
Posts: 114
Reputation: 1,616

Post » Tue Mar 21, 2017 8:05 pm

UPDATE : It doesn't work. The video saved is only 64bits of size and is corrupt.
Please help with a solution, my app is very dependent on canvas recording...
:(
B
6
S
3
Posts: 114
Reputation: 1,616


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests