How do I embed a YouTube video into a layout?

Get help using Construct 2

Post » Wed Jul 11, 2012 4:00 am

Hi Guys

How would I embed a YouTube video into an app? Ideally I want to be able to click a button and have a YouTube video play, then return back to the layout with the button afterwards. is this possible?

Cheers

Lucas
B
16
S
1
Posts: 6
Reputation: 1,363

Post » Sat Aug 18, 2012 9:43 pm

Bump because i'm interested too.
B
4
G
2
Posts: 6
Reputation: 1,144

Post » Mon Sep 03, 2012 9:30 pm

I'm interested too.
B
3
Posts: 1
Reputation: 789

Post » Mon Sep 03, 2012 9:34 pm

As am I. I have a strange compulsion to add an easter egg which immediately rickrolls you.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Sep 03, 2012 11:39 pm

Here is the sample .capx

http://dl.dropbox.com/u/76227787/YoutubeDemo.capx

But you need a Pode's HTML Div Plugin before to test this demo
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Thu Oct 18, 2012 2:37 pm

@Joannesalfa (or @Pode) i dont know what is going on but i your example all links display a clip on youtube but in my project html_div_pode cant.
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Thu Oct 18, 2012 2:48 pm

@delgado : can you post a test .capx ?
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Thu Oct 18, 2012 3:10 pm

@Pode https://dl.dropbox.com/u/44710358/yt.capx
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Thu Oct 18, 2012 10:03 pm

@delgado i can see a video on your .capx, i guess i turned on HTML5 for my youtube settings.
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Fri Oct 19, 2012 2:15 pm

@delgado : I have no problem when loading your project, I can see the video.
By the way, it's better to use an <iframe> directly, instead of embedding an iframe with an url inside a <div> .
Like that : https://dl.dropbox.com/u/1412774/yt_mod.capx
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Next

Return to How do I....?

Who is online

Users browsing this forum: makkancs and 29 guests