Is it possible to add video file in node-webkit

Get help using Construct 2

Post » Mon Jun 24, 2013 1:48 am

I've tried it for 2 days. used of video plugin, html_iframe, html_div it can embed from youtube. but it cannot locate specific video file.

I've try to add video files in folder "win32" that export from node webkit but nothing happened.

Is it possible to add video file in node-webkit
if it impossible i going to be give up...

sorry for my poor english
B
4
S
1
Posts: 16
Reputation: 1,014

Post » Mon Jun 24, 2013 9:59 am

I did some digging and found a solution:

First, you have to use OGV format video. I don't know the technical details, but that's the only thing that works in Node-Webkit, even though MP4 works in regular Chrome.

Since handbrake doesn't seem to support OGV, I used this free online service to convert a sample file. EDIT: Turns out that VLC can do this, too, which is a lot easier than relying on an online converter.

Second, import your video into the project.

Finally, set up your video as usual. Set the source to videoname.ogv.GeometriX2013-06-24 10:04:26
B
57
S
15
G
11
Posts: 912
Reputation: 12,586

Post » Mon Jun 24, 2013 2:47 pm

Import your videos as project files.
Scirra Founder
B
382
S
223
G
86
Posts: 23,997
Reputation: 189,771

Post » Mon Jun 24, 2013 2:54 pm

@Ashley, that doesn't work with regular MP4s. They have to be OGVs.
B
57
S
15
G
11
Posts: 912
Reputation: 12,586

Post » Mon Jun 24, 2013 3:55 pm

Oh....Thank you ashley an Geometrix
i haven't thought this thing before

Thank you for your kindness
B
4
S
1
Posts: 16
Reputation: 1,014

Post » Mon Jun 24, 2013 4:37 pm

i've tried it But it's doesn't work it work when export in HTML5 but it's doesn't work when in Node-Webkit

i've changed file to .ogv already

could anybody send me capx file plzzzz...

This is my Capx

https://www.dropbox.com/s/miek7bdb8ww265u/test.capxmcnolia442013-06-24 16:59:10
B
4
S
1
Posts: 16
Reputation: 1,014

Post » Mon Jun 24, 2013 5:08 pm

Please remove the calls for the Div and iFrame plugins and re-upload. I don't have those installed.
B
57
S
15
G
11
Posts: 912
Reputation: 12,586

Post » Mon Jun 24, 2013 5:20 pm

Oh... Thank you for your kindness

https://www.dropbox.com/s/miek7bdb8ww265u/test.capx
B
4
S
1
Posts: 16
Reputation: 1,014

Post » Mon Jun 24, 2013 6:01 pm

Thank you i can solve my problem....

it's my fault to replace ffmpegsumo.dll from Chrome because i have read some topic to replace that file...


then i delete that file and export And Booom!!!!!

I got a video in Node-Webkit
Thanks so much
B
4
S
1
Posts: 16
Reputation: 1,014


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], pokka, robopunch and 6 guests