Skip to main content
Inspiring
November 29, 2016
Answered

Bizarre Android VideoTexture / VideoTextureSurface bug - OS X and iOS work fine

  • November 29, 2016
  • 1 reply
  • 433 views

Hi all,

We've recently been experimenting with using VideoTexture (via Starling Texture.FromNetStream) to render HLS,H264,AAC video supplied by the mangui flashls library.

Works fine on desktop, also works fine on iOS (when using native HLS, not flashls)

On Android, we can hear the AAC sound but instead of seeing the video, we see a miniature copy of the entire displaylist based interface! The colours don't look right, but it actually updates in real time as the play position moves along the seek bar.

Having enabled error logging on the Context3D we see this stack trace:

W/System.err( 6961): java.lang.NoSuchMethodError: no method with name='getHeight' signature='()I' in class Lcom/adobe/flashruntime/air/VideoTextureSurface;

W/System.err( 6961):     at com.adobe.air.customHandler.callTimeoutFunction(Native Method)

W/System.err( 6961):     at com.adobe.air.customHandler.handleMessage(customHandler.java:22)

W/System.err( 6961):     at android.os.Handler.dispatchMessage(Handler.java:102)

W/System.err( 6961):     at android.os.Looper.loop(Looper.java:146)

W/System.err( 6961):     at android.app.ActivityThread.main(ActivityThread.java:5602)

W/System.err( 6961):     at java.lang.reflect.Method.invokeNative(Native Method)

W/System.err( 6961):     at java.lang.reflect.Method.invoke(Method.java:515)

W/System.err( 6961):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)

W/System.err( 6961):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)

W/System.err( 6961):     at dalvik.system.NativeStart.main(Native Method)

Has anyone else seen an error like this? We are using the latest AIR 23.

Cheers,

Dave

This topic has been closed for replies.
Correct answer dqh360

Ok - this is fixed in Air 24 beta.

1 reply

dqh360AuthorCorrect answer
Inspiring
November 29, 2016

Ok - this is fixed in Air 24 beta.