video in Node-Webkit

Discussion and feedback on Construct 2

Post » Fri Feb 01, 2013 10:44 am

Hi there,

Please help. Do anyone know how can I embed video with Node-Webkit? I'm using the video plugin from rexrainbow. It works on web. However, when I try to export my project to a standalone exe with NOde-Webkit, the embedded video gone away.

Many thanks
B
9
S
4
Posts: 14
Reputation: 1,436

Post » Tue Feb 19, 2013 3:13 pm

I am also very interested if this can be done, I also need it for a project.
B
10
S
1
Posts: 26
Reputation: 1,007

Post » Tue Feb 19, 2013 3:55 pm

You could try this to turn the video into GIF:

http://www.video-gif-converter.com/

Then do "Import frames" on a Sprite's animation, and highlight all the frames.

And this to get the audio from the video:

http://www.free-audio-editor.com/otherfreeproducts/free-video-to-audio-converter.htm

Then you could try making some events to sync them :)
Hopefully construct 2 will get a video plugin that works with Node Webkit/ Cocoonjs eventually, but this is what I do to get around it. Good Luck.
B
13
S
3
G
3
Posts: 62
Reputation: 2,192

Post » Tue Feb 19, 2013 5:35 pm

gifs as replacement to videos? oh gawd. That's terrible. But a workaround for now....
Image
B
57
S
14
G
6
Posts: 493
Reputation: 11,253

Post » Tue Feb 19, 2013 6:08 pm

I don't know how the plugin works, but I'm guessing you'll need to find a way to get your project to include the video in export - perhaps using the files system?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue Feb 19, 2013 6:22 pm

Gifs? I would say no! Even linking Youtube videos would be better option. I think videos would be important for desktop games for multiple reasons.
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Post » Tue Feb 19, 2013 6:56 pm

Sorry I tried. -_-
B
13
S
3
G
3
Posts: 62
Reputation: 2,192

Post » Tue Feb 19, 2013 10:21 pm

Yeah, this is issue that Scirra doesn't add plugins to access Node-webkit API
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Wed Feb 20, 2013 2:33 pm

Thanks for all of your input. Eventually, I found a way to solve that issue. Just a few steps.

1. Input your video(mp4) to 'Files'
2. Setup your video in the 'Video' plugin
3. Export with Node-webkit... Probably, it doesn't work
4. Then, it's the tricky thing... replace the 'ffmpegsumo.dll'. It comes with the latest Chrome.
B
9
S
4
Posts: 14
Reputation: 1,436

Post » Wed Feb 20, 2013 3:19 pm

[QUOTE=Joannesalfa] Yeah, this is issue that Scirra doesn't add plugins to access Node-webkit API[/QUOTE]

I really can't imagine why you'd want to directly access the Node-Webkit API through a graphical interface.

What would you even gain from this?

Other than changing the icon (which doesn't really require a new plugin but rather the exporter to add more user input to the package.json than it does right now), I can't think of a simple reason.

Having access to a specific API isn't magically transforming all your code and what little you might want to add can already be done by using the browser object.
B
6
S
2
Posts: 206
Reputation: 1,685

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests