简体   繁体   English

如何从我们的PhoneGap应用程序中播放所有iPhone和iPad版本中的本地音频/视频文件?

[英]How to play local audio/video files in all iPhone and iPad versions from with in our PhoneGap application?

My requirement is to play local (bundled with the app) audio and video files in all iPhone and iPad versions from within in the PhoneGap application. 我的要求是从PhoneGap应用程序中播放所有iPhone和iPad版本中的本地(与应用程序捆绑在一起)音频和视频文件。

I have tried using HTML5 audio and video tags to play local audio and video files respectively. 我尝试使用HTML5音频和视频标签分别播放本地音频和视频文件。 I am able to play them in the iPhone and iPad 5.0 and 4.2.x simulators. 我可以在iPhone和iPad 5.0和4.2.x模拟器中播放它们。

I am not sure if HTML5 video and audio tags are supported on which versions of iPad and iPhone iOS. 我不确定在iPad和iPhone iOS的哪个版本上是否支持HTML5视频和音频标签。

Cam you please let me know which versions support HTML5? Cam,请让我知道哪些版本支持HTML5? If only new versions support them how can i play audio and video files on all versions from within PhoneGap application? 如果只有新版本支持它们,如何在PhoneGap应用程序中播放所有版本的音频和视频文件?

Thanks, Prasanth 谢谢,Prasanth

Take a look at this list: http://www.expertisemobile.com/2011/10/28/html5-video-and-audio-tags-support-on-mobile-device-real-world-feedback/ 请看以下列表: http : //www.expertisemobile.com/2011/10/28/html5-video-and-audio-tags-support-on-mobile-device-real-world-feedback/

In my opinion today's apps don't have to work in very old version of iOS so supporting iOS 4 and newer would be ok. 在我看来,当今的应用程序不必在非常旧的iOS版本中运行,因此可以支持iOS 4和更高版本。

Go ahead, even if the tag is not fully supported by older version, it still works! 继续,即使旧版本不完全支持该标签,它仍然可以使用!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM