Playing video in PhoneGap/Cordova-app for iOs and Android

后端 未结 5 1513
长情又很酷
长情又很酷 2020-12-13 22:39

I need to play video in an app that\'s built on PhoneGap 2.7. Is it possible to make this work for both iOs and Android - covering most of todays Android devices?

Pr

5条回答
  •  醉话见心
    2020-12-13 23:08

    I know this is an old question, but it still comes up in searches.

    For playing video in a Cordova app the best plugin to use, from my research, at this time, is :

    https://github.com/nchutchind/cordova-plugin-streaming-media

    This plays local or streaming video's in a native player, is configurable, and is up kept up to date.

    Note that HTML5 video does have strange quirks on Android version, and on an iPhone (but not an iPad), the video will automatically play in the native iPhone player anyway, making the HTML5 video tag a poor choice IMHO, if you want to have video in your application.

提交回复
热议问题