对于 iOS 应用程序,我使用 AIR 还是本机代码? [英] Do I use AIR or native code for iOS application?

查看:27
本文介绍了对于 iOS 应用程序,我使用 AIR 还是本机代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我多年来一直使用 Flex 进行桌面开发.我是移动开发新手,需要为 iPhone 6 创建一个应用程序,但不知道我应该使用 Flex/AIR 还是本机代码.

I have been using Flex for desktop development for years. I'm new to mobile development and need to create an app for the iPhone 6 but have no idea whether I should be using Flex/AIR or native code.

iOS 应用的要求如下:

The requirements of the iOS app is as follows:

  • 将视频录制到应用内的本地存储
  • 在应用内播放本地存储中的视频
  • 在应用内暂停/寻找视频
  • 在视频顶部叠加控件,例如 TextInput、TextArea 和 DropDownList,以便用户可以在录制视频时做笔记
  • 通过 TextInput/TextArea/DropDownList 输入的数据保存到本地存储
  • 上传视频和文本数据到本地服务器的选项

我可以使用 AIR 实现所有这些还是应该使用本机代码?

Can I achieve all of this using AIR or should I be using native code?

推荐答案

我可以使用 AIR 实现所有这些吗?

Can I achieve all of this using AIR?

是的.使用 CameraUI 在设备上捕获视频(使用设备的原生相机 UI),并使用 StageVideo 播放视频(使用 GPU).覆盖您的应用程序 UI(Flex 或您自己的)以控制视频播放.使用 FileEncryptedLocalStoreSharedObject 保存本地数据.使用 File/upload() 上传到服务器.

Yes. Use CameraUI to capture video on the device (using the device's native camera UI), and StageVideo to play the video (using GPU). Overlay your app UIs (Flex or your own) to control video playback. Save local data using File or EncryptedLocalStore or SharedObject. Upload to a server using File/upload().

还是应该使用本机代码?

Or should I be using native code?

这取决于你.有取舍,每个人都会有自己的看法.如果您对 Flex/AS3 有很多经验,那么您应该能够很容易地在 AIR 中开发这个应用程序,看看它是否满足您的需求.

That's up to you. There are trade-offs, and everyone will have their own opinion. If you have a lot of experience with Flex/AS3, then you should be able to work out this app in AIR quite easily and see if it meets your needs.

这篇关于对于 iOS 应用程序,我使用 AIR 还是本机代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆