[plugin] Youtube player

Post your completed addons to share with the community

Post » Thu Jan 28, 2016 11:43 am

@rexrainbow
Yeh!
it was a really good workaround!
B
18
S
4
G
1
Posts: 138
Reputation: 1,856

Post » Wed Feb 03, 2016 2:18 pm

I have a Problem with this plugin, Under Android

When i play the video on Portrait format video is right scaled
BUT when i change the orientation of my mobile to horizontal (landscape) The video has not the right Scale, the video become very very small
I added on start of layout Resize to Fullscreen But that change nothing

I want the video to be allways fullscreen i mean video fill all the mobile screen, actually i don't know HOW to solve this when i switch from Portrait To Landscape view

My app is 480, 800px

This is what happens when i run my app

First screenshot app is in portrait 480x800px
Image

When i run the video with my mobile vertically holded (portrait) it looks like this
Image
its in full screen and runs well

When i move my mobile from vertical to horizontal for the video (Landscape) i get this
Image
Video keep 480x800px in landscape mode

When the video start it looks like this

Image

How to solve this problem???

Thanks
B
31
S
11
G
6
Posts: 1,582
Reputation: 8,362

Post » Thu Feb 04, 2016 11:10 am

@imothep85

I am not sure.
I also found that the object size is strange while rotating mobile device without full screen. I need more time to find out the reason.
B
104
S
25
G
212
Posts: 4,272
Reputation: 121,556

Post » Thu Feb 04, 2016 11:34 am

Thanks a lot Rexrainbow, im actually working on an app who need to play youtube video for my work office, and im stuck with this problem hope you can quickly solve that bug.

Thanks again
B
31
S
11
G
6
Posts: 1,582
Reputation: 8,362

Post » Thu Feb 04, 2016 11:55 am

@imothep85

I'm afraid that I can not find solution quickly. I have no idea about this problem.
B
104
S
25
G
212
Posts: 4,272
Reputation: 121,556

Post » Thu Feb 04, 2016 12:21 pm

Can you get some help from others developers? :D
B
31
S
11
G
6
Posts: 1,582
Reputation: 8,362

Post » Thu Feb 04, 2016 1:59 pm

Maybe this can help???

http://stackoverflow.com/questions/22429866/embed-youtube-videos-that-play-in-fullscreen-automatically

Code: Select all
<iframe id="video" src="//www.youtube.com/embed/5iiPC-VGFLU?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>

http://www.youtube.com/embed/5iiPC-VGFLU?rel=0&autoplay=1
B
31
S
11
G
6
Posts: 1,582
Reputation: 8,362

Post » Thu Feb 04, 2016 2:05 pm

Something has to be wrong with the iframe or encapsueld link if you make an app 480,800px with youtube plugin size 480x800px, EXPORT to cordova and then inside INTEL XDK if you change from Portrait to Landscape the youtubeplayer stay in portrait mode 480x800

IF you CLICK on the name "YOUTUBE" at the bottom of the video player THEN youtube website appears FULL SCREEN at the RIGHT SCALE LANDSCAPE, how this is possible???

its a full browser????
This plugin is reall wierd is not a real "video player" it looks like an ambed player who just play urls from youtube.
it show all the youtube website in full screen mode....

THIS IS WHAT I GET:

i click on the word "YOUTUBE" at the bottom of the video
Image

AND I END WITH THIS
Image
B
31
S
11
G
6
Posts: 1,582
Reputation: 8,362

Post » Thu Feb 04, 2016 2:25 pm

Also i was reading this:

In the location bar (where you enter URLs), type "about:permissions" and hit enter.
Under "All sites", look at the permissions for sites you may have used fullscreen on, like youtube.com
You'll see a Fullscreen setting. Select "Always ask" or "Allow" to allow YouTube to go fullscreen on these sites.
Try using fullscreen on YouTube again.

Its maybe something from the browser permissions who is not working with your plugin
B
31
S
11
G
6
Posts: 1,582
Reputation: 8,362

Post » Thu Feb 04, 2016 2:32 pm

@imothep85

I only can test it on pc or ipad browser. Sorry I could not test it in mobile app.

I just set the size of plugin to window size for fullscreen. The player is not controlled by my plugin side (maybe controlled by youtube api I guess), I could not set the orientation of player.
B
104
S
25
G
212
Posts: 4,272
Reputation: 121,556

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests