[plugin] Youtube player

Post your completed addons to share with the community

Post » Fri May 06, 2016 1:39 am

@xoros

1) Youtube player is put at a div element, like all other html element objects (official textbox for example), sprites could not show above these html element objects.

2) Set property "Control bar" to "No" to disable control bar. But the video still could be paused or resumed by clicked. Thus, add a condition to play the video while pausing ( sample capx )
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Post » Fri May 06, 2016 8:30 am

Is there any other way how to show sprites above the video? Not plugin, but if it's technically possible at all
B
45
S
11
G
4
Posts: 511
Reputation: 7,381

Post » Fri May 06, 2016 8:34 am

@xoros

I have no idea.
Google map plugins also has this issue.
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Post » Thu Jun 16, 2016 8:32 pm

Hey, I see you said that right now it isnt't possible to show other objects above the video. Although I dont need the video to be playing when I want the objects to appear, so I thought about taking a canvas snapshot but the snapshot won't show the video contents.
Any idea if that can be achieved?
B
19
S
3
G
3
Posts: 56
Reputation: 2,496

Post » Fri Jun 17, 2016 12:55 am

@Tuiii

It can't be now, since this youtube object does not have real texture.
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Post » Fri Jun 17, 2016 1:50 pm

Very cool ; thanks again ...
B
2
Posts: 2
Reputation: 154

Post » Fri Jun 17, 2016 2:35 pm

@tuongtrante1

I had tried to get the link of youtube video directly before but failed.
If I got the link of video, I could play video by official video plugin, then draw the video image on canvas.
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Post » Thu Jun 23, 2016 7:00 pm

@rexrainbow

Why is that I can't get the cursor's coordinates if the cursor is hovering over the youtube player? The cursor's X,Y coordinates don't update if the cursor is moved over to the youtube player window. Is there any way to get the cursor's coordinates when the cursor is above the player?

And also. When I used the mouse object, and set the cursor image to a sprite, and when the cursor is right at the border of the youtube player, half the sprite overlaps the player( as the sprites midpoint is set at the pointer tip location. So half of the sprite is above pointer tip and other half below). But once the cursor goes fully into the player, it turns back into a pointer. I hope you understood what I meant. Maybe this can help in some way to get sprites to show over the youtube player.
B
16
S
4
Posts: 138
Reputation: 1,454

Post » Fri Jun 24, 2016 1:56 am

@Pandy

1. Sorry, I failed to pass mouse/touch event to canvas.
2. Sprites are put in a canvas object, but youtube is another html element, it only can place in front of canvas, therefore all sprites can not put in front of youtube object.
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Post » Fri Jun 24, 2016 8:57 am

@rexrainbow

1. Sorry, I failed to pass mouse/touch event to canvas.

Does that mean it can be done? Or no matter what we can't get mouse coordinates if it's hovering over the player?
B
16
S
4
Posts: 138
Reputation: 1,454

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: Alisson2804 and 0 guests