[plugin] Youtube player

Post your completed addons to share with the community

Post » Thu Feb 04, 2016 3:47 pm

Update

Fix "Action:Full window" and "Action:Full screen".
"Action:Full window" sets the size of player to the window size, it can be called at any time.
"Action:Full screen" is a real full screen mode, it only can be called after player had been initialized and under a user input like touch (sample capx), i.e "Action:Full screen" can not be called under condition:on start of layout.
Error will be shown at console if calls this action not under user input -
Failed to execute 'requestFullScreen' on 'Element': API can only be initiated by a user gesture.



@imothep85
I am not sure if this updating is helpful for you (or not).
Last edited by rexrainbow on Fri Feb 05, 2016 12:13 am, edited 1 time in total.
B
107
S
25
G
230
Posts: 4,358
Reputation: 130,906

Post » Thu Feb 04, 2016 7:20 pm

Rexrainbow you are my saver :D i don't know how much time it tooks to you but im going to try this right now, :D

THANKS SO MUCH for all your help and time on this exellent plugin.
B
32
S
12
G
6
Posts: 1,625
Reputation: 8,575

Post » Thu Feb 04, 2016 9:51 pm

You solved that problem :D

this is my result NOW with your last bug corrections under Intel XDK

in Portrait mode
Image

in Landscape mode

Image


THANKS so much for all your help during this development.
:D
B
32
S
12
G
6
Posts: 1,625
Reputation: 8,575

Post » Tue Feb 09, 2016 8:21 pm

It is possible to keep a bitmap sprite in front(top) of the video?
i need to keep visible a button, for the user, he can use for full screen and also for leaving the full screen.
B
32
S
12
G
6
Posts: 1,625
Reputation: 8,575

Post » Wed Feb 10, 2016 1:05 am

@imothep85

1. no sprite could be placed in front of the youtube player, since it is a html element. But user could put a image element which made by @pode in front of this player.
2. full screen mode of youtube player will cover all things, there is no object could be placed in front of it.
B
107
S
25
G
230
Posts: 4,358
Reputation: 130,906

Post » Wed Feb 10, 2016 10:39 am

whats the plugin name of pode?

in fact , now your plugi niw workign perfectly full screen but what im trying to achive is, if the player tap the screen i want the youtube player to be or fullscreen OR not in fullscreen mode but i don't know how to achieve that.
B
32
S
12
G
6
Posts: 1,625
Reputation: 8,575

Post » Wed Feb 10, 2016 1:27 pm

Update
Change "Action: resize full screen" to "Action:Set full screen mode", now this action could enter/exit/toggle full screen. (sample capx)

@imothep85
Try to use "action: exit full screen" under "condition: on tap".
B
107
S
25
G
230
Posts: 4,358
Reputation: 130,906

Post » Wed Feb 10, 2016 2:22 pm

thanks again rexrainbow you did an exellent job on this plugin and all the others :D
B
32
S
12
G
6
Posts: 1,625
Reputation: 8,575

Post » Wed Feb 10, 2016 2:47 pm

if i add, on start of layout enter fullscreen and then, toggle fullscreen when i tap, nothing happens
B
32
S
12
G
6
Posts: 1,625
Reputation: 8,575

Post » Wed Feb 10, 2016 3:31 pm

@imothep85

"Enter full screen" could not be executed "on start of layout", it only could be called under user input like "on touch start".
( It is for security, to prevent application full screen always. )
B
107
S
25
G
230
Posts: 4,358
Reputation: 130,906

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests