Including file with node-webkit extraction

Get help using Construct 2

Post » Fri Oct 25, 2013 5:42 pm

I currently am using HTML_Div_Pode to display a video in my game. I'm using the following code and it's working perfectly for me:

<video><source src="http://www.mysite.com/video.ogv" type="video/ogg"></video>

What I would like to do though is simply include the video file in the node-webkit extraction so I can fetch the video from the local files rather then from over the internet.

Something like this:

<video><source src="files/video.ogv" type="video/ogg"></video>

Is this possible and if so how would I go about doing that?

Thank you.
B
62
S
20
G
57
Posts: 1,077
Reputation: 36,531

Post » Fri Oct 25, 2013 7:08 pm

If you're importing the video file into your project you don't need to use the file path, just the name of the file. Even if you have your files nice and organized in subdirectories, on export C2 tosses them all in the same place.

So it would become:
<video><source src="video.ogv" type="video/ogg"></video>digitalsoapbox2013-10-25 19:09:22
B
107
S
58
G
27
Posts: 566
Reputation: 24,411

Post » Fri Oct 25, 2013 7:13 pm

@digitalsoapbox

How do I import the video into the project?
B
62
S
20
G
57
Posts: 1,077
Reputation: 36,531

Post » Fri Oct 25, 2013 7:21 pm


@digitalsoapbox

Nevermind, I figured it out. I'm such a noob....

Thank you for your help!
B
62
S
20
G
57
Posts: 1,077
Reputation: 36,531


Return to How do I....?

Who is online

Users browsing this forum: gloater2 and 10 guests