简体   繁体   中英

Chromecast & Air for Android Apps (AS3)

Anyone one know a simple way to use / intergrate a chromecast sender for my Air for Android Apps so they can cast directly to a TV.

I've done a few successful tests on webpages.
but as for intergrating the code into an entirely AS3 project, I don't know were to begin? and I can't seem to find any docs on how to do this.

Thank you in advance for your help.

有一个Air Native Extension可以处理此问题: Github上的ANE-Chromecast

The ANE on Github is not a solution (line 19 of AirCast.as specifically excludes Android).

More fundamentally, even after re-engineering the ANE to get around the original block, it is currently not possible to get a reference to android.os.Bundle (which is required) as the class is not reachable, no matter how many SDK jars you build into the ANE .

Until there is a means to get the bundle, then this call will always fail:

CastDevice mSelectedDevice = CastDevice.getFromBundle(route.getExtras());

With:

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/cast/CastDevice;

But if anybody can get around this, please let me know as I would dearly like to get there...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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