Can Enterprise be implemented with one code-base for both iOS and Android?

It is apparent from the Enterprise Tutorials that so many details are hardware specific, and for this reason, each tutorial is completely different from each other.

However, is there a simple way for the code to perform a hardware check and setup a platform variable to handle branching for iOS, or Android just as we would normally in Lua, so that we can use just one code-base for all development?

No.  You would have to write native code (ie: Objective-C, Swift, Java, etc.) and set up the Lua bindings yourself.  But that’s the whole point of Corona Enterprise.  It allows you to write native code and customize your app’s Xcode/Android project as you see fit.  Corona Enterprise is intended more for experienced native developers.  Meaning that you are expected to already know how to use Xcode and the Android SDK for app development.  So, for a native developer, Corona Enterprise offers an iOS/Android library which will handle Lua script handling, OpenGL rendering, audio processing, and other services for you which are typically much more code intensive.

Thank you for your thoughtful reply.

All I need is to be able to display streaming video properly in my Corona SDK project. I have not found any plug-in to do this and the features in Corona to do this do not work consistently from platform-to-platform.

For this reason, I am considering Enterprise.

Is there any other possible solution to display streaming video (not YouTube, but from a streaming server)?

Is really my only option to display video from my Corona project using Enterprise and create native code to make video work on all differing hardware on numerous platforms?

There is no Corona SDK way of streaming video.  You have two options, 1. develop it yourself for the different platforms with Enterprise. 2. get an existing developer who’s more comfortable in native development to build a plugin for you. You will still need to develop in Enterprise until we get the store up…

Rob

Troy,

Our media.playVideo() and native.newVideo() APIs do support playing pre-recorded videos (aka: progressive streaming) from a web server via HTTP, HTTPS, and RTSP.  But I assume you are talking about live streaming like what Twitch does, right?  According to Google’s documentation (link below), the standard Android Java “VideoView” which Corona uses does support “MPEG-2 TS” encoded videos for live streaming on Android 3.x and newer devices.  So, if you have control over the streaming server, then you may want to try that encoding to see if it’ll work with our existing video APIs.

   http://developer.android.com/guide/appendix/media-formats.html

No.  You would have to write native code (ie: Objective-C, Swift, Java, etc.) and set up the Lua bindings yourself.  But that’s the whole point of Corona Enterprise.  It allows you to write native code and customize your app’s Xcode/Android project as you see fit.  Corona Enterprise is intended more for experienced native developers.  Meaning that you are expected to already know how to use Xcode and the Android SDK for app development.  So, for a native developer, Corona Enterprise offers an iOS/Android library which will handle Lua script handling, OpenGL rendering, audio processing, and other services for you which are typically much more code intensive.

Thank you for your thoughtful reply.

All I need is to be able to display streaming video properly in my Corona SDK project. I have not found any plug-in to do this and the features in Corona to do this do not work consistently from platform-to-platform.

For this reason, I am considering Enterprise.

Is there any other possible solution to display streaming video (not YouTube, but from a streaming server)?

Is really my only option to display video from my Corona project using Enterprise and create native code to make video work on all differing hardware on numerous platforms?

There is no Corona SDK way of streaming video.  You have two options, 1. develop it yourself for the different platforms with Enterprise. 2. get an existing developer who’s more comfortable in native development to build a plugin for you. You will still need to develop in Enterprise until we get the store up…

Rob

Troy,

Our media.playVideo() and native.newVideo() APIs do support playing pre-recorded videos (aka: progressive streaming) from a web server via HTTP, HTTPS, and RTSP.  But I assume you are talking about live streaming like what Twitch does, right?  According to Google’s documentation (link below), the standard Android Java “VideoView” which Corona uses does support “MPEG-2 TS” encoded videos for live streaming on Android 3.x and newer devices.  So, if you have control over the streaming server, then you may want to try that encoding to see if it’ll work with our existing video APIs.

   http://developer.android.com/guide/appendix/media-formats.html