0 Favourites

How do I play a video in an exported file?

  • So, I can play videos when I Run them in a browser (however for some reason the videos don't play if they are too long). I have the Personal License version of Construct 2 and I exported my project to my computer to play the game without needing a browser. For some reason, the video doesn't play. Why does it work in a browser and not when exported? Do I have to do something different? Change a setting? How do I get videos to work when exported to Windows using NW.is? Any help is very much appreciated!

  • What format are your videos in? Are you supporting more than one codec?

    It appears from THIS article that whilst most browsers support the MP4 H.264 codec, chromium - which NW.js uses - does not.

    [quote:2tc7a8ed]The MP4 container format with the H.264 video codec and the AAC audio codec is natively supported by desktop/mobile Internet Explorer, Safari and Chrome, but Chromium and Opera do not support the format.

    After a quick test, I verified that NW.js after export plays webm and ogg but not MP4 H.264.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • I actually figured out the same problem myself earlier this week. But thank you anyhow. I got the video to work when changing the video format to Webm and then exporting it. I find it bizarre that such a common and popular format (MP4 H.264) does not work in NW.js. I almost feel as though this information needs to be given on the scirra article "exporting desktop apps with node webkit." --> https://www.scirra.com/tutorials/1276/e ... ode-webkit

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread sticky
1,586 437,189
matriax's avatar
matriax
Unread sticky
763 305,597
asikanddestroy's avatar
asikanddestroy
Unread hot topic
0 Favourites
New Android Export Experiences
494 67,262
jabk's avatar
jabk