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

前端 未结 4 1114
天涯浪人
天涯浪人 2021-01-19 13:10

I am using a Phonegap plugin for playing a video in my iOS app. I\'m able to play a video with the URL format like http://easyhtml5video.com/images/happyfit2.mp4

4条回答
  •  情书的邮戳
    2021-01-19 13:29

    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.

提交回复
热议问题