Some times, Flashwrapper crashed in android. Here are my device details:
Android os Version: 23
Device: Moto G
Flashy Wrapper Version: 2.55
Error in flash builder:
Error: [FlashyWrappers error] java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Message android.os.Handler.obtainMessage()' on a null object reference
at com.rainbowcreatures.FlashyWrappersAndroidHW.z.a(Unknown Source)
at com.rainbowcreatures.FlashyWrappersAndroidHW.j.call(Unknown Source)
at com.adobe.air.customHandler.callTimeoutFunction(Native Method)
at com.adobe.air.customHandler.handleMessage(customHandler.java:22)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5443)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
at com.rainbowcreatures::FWVideoEncoder/throwError()[C:\wamp\www\flashywrappers_svn\FW_src_stable\com\rainbowcreatures\FWVideoEncoder.as:1376]
at com.rainbowcreatures::FWVideoEncoder/onStatus()[C:\wamp\www\flashywrappers_svn\FW_src_stable\com\rainbowcreatures\FWVideoEncoder.as:1370]
Try to search log at "/storage/emulated/0/Android/data/air.com.mycommUnity.app/files", but failed to find the files, because when i redirect to "/storage/emulated/" i don't have "0" directory in it. "/storage/emulated/" is completely empty
if(Utils.isIOS)
{
_fwEncoder.start(24, FWVideoEncoder.AUDIO_STEREO);
}
else
{
_fwEncoder.setDimensions(_container.stage.stageWidth, _container.stage.stageHeight);
_fwEncoder.start(24, FWVideoEncoder.AUDIO_STEREO, false);
_fwEncoder.forcePTSMode(FWVideoEncoder.PTS_REALTIME); // force software mode to work in realtime
_fwEncoder.forceFramedropMode(FWVideoEncoder.FRAMEDROP_ON); // force software mode to work in realtime
}
Hello @rainbowcreatures
Some times, Flashwrapper crashed in android. Here are my device details: Android os Version: 23 Device: Moto G Flashy Wrapper Version: 2.55
Error in flash builder:
Try to search log at "/storage/emulated/0/Android/data/air.com.mycommUnity.app/files", but failed to find the files, because when i redirect to "/storage/emulated/" i don't have "0" directory in it. "/storage/emulated/" is completely empty
Here is the log from Android monitor:
Here is code to start the recording:
Code for init the encoder: