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
56
Posts: 1,077
Reputation: 36,021

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
88
S
47
G
25
Posts: 535
Reputation: 21,802

Post » Fri Oct 25, 2013 7:13 pm

@digitalsoapbox

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

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
56
Posts: 1,077
Reputation: 36,021


Return to How do I....?

Who is online

Users browsing this forum: draiza and 5 guests