YouTube and Cordova

214 views
Skip to first unread message

Maxime De Bruyn

unread,
Feb 27, 2014, 4:32:13 AM2/27/14
to phon...@googlegroups.com
Does anyone knows why some embedded YouTube videos start to play right away and others stay in a loading mode forever ?
It seems it is notre due to restriction. When one clicks on the title and goes to YouTube the videos plays on mobile.
Is there any plugin that solves this problem ?

Thanks a lot!
Max

jcesarmobile

unread,
Feb 27, 2014, 5:39:59 AM2/27/14
to phon...@googlegroups.com
Try the video player plugin for android, I think it supported youtube videos

Maxime De Bruyn

unread,
Feb 27, 2014, 8:38:05 AM2/27/14
to phon...@googlegroups.com
Thank you for your answer.

Is is this one ? https://github.com/macdonst/VideoPlayer 

I will try to install it now! 

But do you think it is possible to use it with the iframe API of youtube ? It would be nice to have access to it!

Maxime De Bruyn

unread,
Feb 27, 2014, 9:20:33 AM2/27/14
to phon...@googlegroups.com
Thanks to this link (https://github.com/justinobney/PhoneGap-Video) I managed to install the plugin easily. Indeed the videos are playing well but the user is taken to a Youtube webpage.. Not the best user experience! Does anyone has an idea of how to display the video on the app and not an a youtube webpage ? 

Thanks a lot! 
Max

jcesarmobile

unread,
Feb 27, 2014, 9:39:57 AM2/27/14
to phon...@googlegroups.com
you can create a phonegap plugin using youtube API https://developers.google.com/youtube/android/player/

Maxime De Bruyn

unread,
Feb 27, 2014, 10:07:36 AM2/27/14
to phon...@googlegroups.com
I'd love to but my programing skills are limited to a bit of javascript/jquery... 
Anyway thank you very much! I'll start to study java in order to build a native app using this API :-)


Le jeudi 27 février 2014 10:32:13 UTC+1, Maxime De Bruyn a écrit :

C SBCERA

unread,
Feb 27, 2014, 5:08:31 PM2/27/14
to phon...@googlegroups.com
I'm using a YouTube plugin that works well.
Reply all
Reply to author
Forward
0 new messages