How to live-stream FPV video from Skydroid T12 to a React Native Android app over USB

Goal
Live-stream FPV video from a Skydroid T12 transmitter into a React Native Android app over USB. I’m bridging native Android via an RN SimpleViewManager, decoding H.264 with MediaCodec, and rendering to a Surface/TextureView

Issue
Has anyone achieved this without crashes? I receive fixed 504-byte packets with a 4-byte header FF 01 F8 A5. As soon as I feed the payload to the decoder, the app crashes natively (no Java stack). I’m looking for any working solution or a minimal example that handles this framing and avoids the crash. Thank you!

I did perhaps something similar but i streamed from a usb receiver , connected to a oculus quest 3.

Do you accumulate the payload in to a buffer ?

Usually you can scan for the h264 start code , something like “00 00 00 01 or 00 00 01", this would be the NAL unit boundary. And when you have it completley in buffer you can try and feed it to MediaCodec.

But in my case i was using UVC , much simpler.