How do I Play a Video in the Game [White Screen Issue]

Get help using Construct 2

Post » Wed Dec 24, 2014 6:09 pm

I would like to play a video inside my game. I am having the issue of the video just being a white screen.

I have read the Video tutorial and many online i even advanced searched the forums but i couldn't find anything that actually solves the problem.
I did find one topic with the exact same problem as mine but it was unanswered (1 year unanswered ;p).....

If their is a step by step procedure that would be of great help , current delay time (2 days) Please help!
B
9
S
3
Posts: 28
Reputation: 887

Post » Wed Dec 24, 2014 6:53 pm

A user is generally likely to get a more useful response if they provide a minimal .capx that both highlights the problem, and also allows others to test if they experience the same issue.

Without a .capx, it's just guesswork and therefore pretty useless.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,485
Reputation: 59,756

Post » Wed Dec 24, 2014 7:18 pm

I don't need someone to fix my problem as much as i need someone with a working demo?

Is there any games with video that i can download in a .capx file to see how it works?
B
9
S
3
Posts: 28
Reputation: 887

Post » Wed Dec 24, 2014 9:22 pm

Bump?

Is there any game that has a .capx file which has a video working? I am surprised there are no examples haha
B
9
S
3
Posts: 28
Reputation: 887

Post » Thu Dec 25, 2014 12:38 am

Did you try the iframe plugin ? Instead of a website give the .mp4 url.
To look it good, type border:0px; for css.
B
32
S
10
G
3
Posts: 310
Reputation: 6,081

Post » Thu Dec 25, 2014 1:19 am

https://www.scirra.com/manual/181/video

Maybe you got the compatibility problem

Compatibility
On Safari for iOS and Chrome for Android, video playback cannot begin unless triggered by a user input event. The Play action will work in a user input trigger like On touch start, but if done outside of that it cannot play right away. To work around this the video plugin will wait until the next touch event to start playing the video. This also applies to autoplaying videos: it will not start until the first touch.

Safari on iOS does not currently support rendering video inside the game canvas itself. To work around this, the Video plugin creates a video element floating above the game, similar to a form control. This ensures the video can appear, but prevents other objects being displayed on top of it.
Read this:
yeah, i really like to say that you should "Read this:"
B
13
S
6
Posts: 138
Reputation: 1,615

Post » Thu Dec 25, 2014 3:42 am

Nope both of those solutions are ineffective as i have already tried them.

If their is an experienced user on the forums who can get the video to work then you will one either understand my pain or two find a viable solution haha

Thanks for the help guys but i need more to get this to work!
B
9
S
3
Posts: 28
Reputation: 887

Post » Thu Dec 25, 2014 4:33 am

I just tried to add a video and everything worked with no problem.
I even made a test view on my phone too and got no problems (except the loading time over WLAN)
Here is a example file for you too:

https://www.dropbox.com/s/7e2vunq2nl9jo ... .capx?dl=0
(It's a royaltiy free video)
Last edited by EyeForcz on Thu Dec 25, 2014 4:48 am, edited 1 time in total.
Read this:
yeah, i really like to say that you should "Read this:"
B
13
S
6
Posts: 138
Reputation: 1,615

Post » Thu Dec 25, 2014 4:35 am

Thats weird, it works when i do it. Maybe you should check your codecs and convert your video to the one that all devices can play ?
Or upload to youtube and embed it in the div plugin ?
B
32
S
10
G
3
Posts: 310
Reputation: 6,081

Post » Thu Dec 25, 2014 4:42 am

LOLOLOLOLOLOLOL OMG

That is so funny because i followed Scirra instructions of converting it to a WebM and it didnt work!!!!! (That and the fact i thought it auto puts the .ETC part but apparently it didnt thanks)

But if i just keep it in an mp4 like you did it did WOW

Thanks alot man you just saved me a nother 3 days of pain haha
B
9
S
3
Posts: 28
Reputation: 887


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests