[plugin] Youtube player

Post your completed addons to share with the community

Post » Thu Aug 18, 2016 7:14 pm

I've been trying for a while to make it possible to draw on top of a video.

Things I've tried:
- Putting things directly on top of the video. (someone in this topic asked, and it was said it wasn't possible)

- Taking a snapshot and moving the video away and drawing on the snapshot.
Which doesn't work, because snapshot doesn't actually capture the video.

Anything I could do to draw on a video? or somehow take a screenshot and draw on that?
Thanks for much for the great add-on :D
Eat ALL THE BACON!
B
47
S
17
G
3
Posts: 290
Reputation: 5,070

Post » Thu Aug 18, 2016 11:57 pm

@antares330

No, sprites can not put in front of html5 elements (youtube player).
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Fri Aug 19, 2016 1:41 am

rexrainbow wrote:@antares330

No, sprites can not put in front of html5 elements (youtube player).


That was just one of the things I tried... (that I saw others asked, but it wasn't possible)


I was asking if there is a way to include a snapshot of a youtube video to put things in front of instead.
The built in snapshot function doesn't capture the video.

If it doesn't work, then I'll try to find some kind of work around.
Eat ALL THE BACON!
B
47
S
17
G
3
Posts: 290
Reputation: 5,070

Post » Fri Aug 19, 2016 2:45 am

@antares330

I had tried html2canvas, it could take a snapshot of a text box object. But It could not take a snapshot of youtube video. So it does not have solution now.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Fri Aug 26, 2016 3:51 pm

@rexrainbow

thanx for this plugin
ive implemented in a construct demo, i will make it that it adjusted size for resolution.. work in progress

link
http://www.vtrixdev.com/#illumina > click on button demo
ImageImage
B
71
S
22
G
7
Posts: 827
Reputation: 10,177

Post » Fri Sep 09, 2016 2:54 pm

Hi @rexrainbow

Thank you so much for your plugins. You are really amazing.

I'm having a problem with this one and loading a saved game. When I try it says:

Javascript error!
ReferenceError: pendingCallbacks is not defined
http://localhost:50000/rex_youtube_player_plugin.js, line 502 (col 9)

This may be a bug in Construct 2 or a third party plugin or behavior - please report it to the developer following the bug report guidelines. Subsequent errors will be logged to the console.


The plugin is not even in use yet, just loaded, but still not implemented in my game.

Thanks again!
B
7
S
1
G
3
Posts: 12
Reputation: 1,239

Post » Fri Sep 09, 2016 3:07 pm

@FERdeBOER

Fixed, thanks for notification.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Fri Sep 09, 2016 3:23 pm

rexrainbow wrote:@FERdeBOER

Fixed, thanks for notification.


Than was fast! Thanks!
But I'm having a new one:

Code: Select all
Javascript error!
ReferenceError: cmd is not defined
http://localhost:50000/rex_youtube_player_plugin.js, line 373 (col 31)

This may be a bug in Construct 2 or a third party plugin or behavior - please report it to the developer following the bug report guidelines. Subsequent errors will be logged to the console.
B
7
S
1
G
3
Posts: 12
Reputation: 1,239

Post » Fri Sep 09, 2016 3:52 pm

@FERdeBOER

Oops, fixed it again, here is a sample capx for official save-load.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Fri Sep 09, 2016 5:04 pm

rexrainbow wrote:@FERdeBOER

Oops, fixed it again, here is a sample capx for official save-load.


Working great now! Thanks!
B
7
S
1
G
3
Posts: 12
Reputation: 1,239

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests