Videos won't show up when previewing with NW.js

Get help using Construct 2

Post » Thu Apr 13, 2017 2:08 pm

Hi Guys

Weird Problem here, i got an interactive Display i'm making with C2 and when i preview the Project with Chrome the Videos are getting shown without a Problem. When i preview with NW.js however, the videos won't show up. They're regular .mp4 files with h.264 compression.

I would use a normal HTML 5 Export but the Display and it's computer won't have Internet Access at the fare where it'll be running.

Any ideas? Thanks!

Best,

Joel
B
15
S
5
G
1
Posts: 85
Reputation: 1,222

Post » Thu Apr 13, 2017 2:39 pm

NW.js Documentation

Due to the license issue, the prebuilt binaries of NW.js doesn’t support proprietary codecs, like H.264. ..
So you can’t play MP3/MP4 with <audio> and <video> tags with prebuilt NW.js. ...


so .. you need to convert .mp4 to .webm or .ogv

another "solution"..you can replace NW.js ffmpeg.dll file..but

Using MP3 and H.264 codecs requires you to pay attention to the patent royalties and the license of the source code. Consult a lawyer if you do not understand the licensing constraints and using patented media formats in your application..
.
Image
B
64
S
23
G
7
Posts: 1,481
Reputation: 10,823


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, dimitriosfl, InfiniteRockets, jkmalau, newday198913 and 16 guests