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
2
Posts: 6
Reputation: 1,513

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
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

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
97
S
35
G
29
Posts: 3,139
Reputation: 28,361

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
109
S
26
G
43
Posts: 1,883
Reputation: 33,655

Post » Thu Oct 18, 2012 2:48 pm

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

Post » Thu Oct 18, 2012 3:10 pm

@Pode https://dl.dropbox.com/u/44710358/yt.capx
B
109
S
26
G
43
Posts: 1,883
Reputation: 33,655

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
97
S
35
G
29
Posts: 3,139
Reputation: 28,361

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: 708
Reputation: 6,704

Next

Return to How do I....?

Who is online

Users browsing this forum: KTML5 and 2 guests