How do I play Youtube videos using the phonegap-videoplayer-plugin?

南楼画角 提交于 2019-12-01 19:41:32

There are some methods that will give you direct link to youtube videos. Use "gdata" option to find all possible video formats.

Then parse the result to get desired link. Hope this might be useful

YouTube Terms of Service: "You agree not to access Content through any technology or means other than the video playback pages of the Service itself, the Embeddable Player, or other explicitly authorized means YouTube may designate."

But everywhere I found the code to be edited in .m and .h files. None have explained how to use it.

That's because you can only directly use MPMoviePlayerController from native apps (written in Objective-C). For any other technology you'll have to have an intermediary layer in between.

From googling, I found this plugin for PhoneGap that claims to integrate with MPMoviePlayerController. I've no idea if it's any good, but it might do as a starting point.

Vijay Rama Raju Samanuri

try to give the youtube url in this format.

http://www.youtube.com/embed/jxXukpxNSx4

You will get the desired result. But Autoplay is not enabled, as Apple stopped supporting autoplay to save user's bandwidth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!