NME has native component access that might be a good place to look for
integrating android Java with NME/OpenFL android c++.
You can try coding Native Android Java in Haxe, not many people seem to
be doing it yet but should work fine once you get the setup right, and
then maybe port your as3 code to OpenFL and include the android stuff as
a dll or something it's probably not simple.
For Rtmp there is Haxe video but I don't think it get much use, there is
Nicolas version and this one of Jan's with modifications.
https://code.google.com/p/hxis/source/browse/trunk/hxvid/Rtmp.hx
You might want to talk to Influxis they had something called HaxeFMS so
might be able to help and provide video hosting streaming you used to be
able to download some stuff from their server.
But to answer your question any as3 swc should be useable in haxe air
project and vicer verser. Exception is stuff like flex where it's not
pure as3 bytecode.
Certainly you can do pure haxe as3 for air with video no problem, haxe
will have access to the same stuff as as3, for instance see my old
peer2peer tutorial.
http://old.haxe.org/doc/flash/peer2peer
Not sure if that is helpful, currently haxe support for video on Mobile
is probably not good or minimal, but it will work fine on AIR, but it
would be great if some dev's improved video support on OpenFL. I would
check gamehaxe to see what video support NME has.
Best Justin.
On 16/08/2014 14:46, Hengshuo Zhang wrote:
> Thank you for your reply Benjamin! That means the Flash library is not
> available when targeting adobe Air?
>
>
> On Fri, Aug 15, 2014 at 8:18 PM, Benjamin Dubois <
bubbl...@gmail.com
> <mailto:
bubbl...@gmail.com>> wrote:
>
> Depending on what you need in the flash library you may find it
> (crossplatform) in NME/OpenFL libraries.
> Without one of these, flash libs are only available when targetting
> flash.
>
> But I doubt FMS and RTMP are available, they are really adobe
> specific stuff, plus there are no cam capture outside flash target
> at the moment.
>
>
> On Fri, Aug 15, 2014 at 10:54 PM, bugfree
> <
hengshuoz...@depauw.edu
> <mailto:
hengshuoz...@depauw.edu>> wrote:
>
> Hi there,
>
> I have a Adobe Air for Android project which is a simple video
> chat application which uses Flash Media server and stream RTMP
> protocol. I want to integrate the Adobe Air for Android project
> to my Java android project. So I want to use Haxe to compile my
> Air project to Java/Java library. The code editor I am using is
> FlashDevelop.
>
> I have convert my ASC code to Haxe code. However, when I build
> the Air project by using haxe -main Main, it keeps telling me
> that "You cannot access the flash package while targeting cross
> <for flash.Lib>". How can I solve this issue?
>
> Also, I am curious, is there any documentation for compiling Air
> to Java? And if I compile Air to Java, will the .jar keeps Air
> environment and let me be able to use Flash Media server and
> stream RTMP protocol?
>
> Thank you for your time in advance.
>
> Best,
>
> --
> To post to this group
haxe...@googlegroups.com
> <mailto:
haxe...@googlegroups.com>
> <mailto:
haxe...@googlegroups.com>