When porting players to Rockchip Android devices, you should start with the codec components and output targets actually selected by the application.
Record the basic facts of a playback
Save the video MIME type, resolution, profile, actual codec name, and whether the output is to Surface or read from the buffer by the application. Select a short clip within the system’s capabilities as a baseline. The MPP example of the same chip under Linux can be played, but it can only be used as a clue to the hardware capabilities.
Find the display along the first frame
Confirm whether the output format change is received, whether the output buffer is obtained, and whether rendering is required when releasing the buffer. The Surface life cycle may change when you rotate the screen, switch to the background, or rebuild the page. Play without switching pages first, and then repeat the switching action.
Verify recovery instead of just watching the premiere
Test pause continuation, front and back resumption, horizontal and vertical screen switching and second playback. Correspond each Surface creation and destruction to the first frame record. In this way, we can distinguish two types of problems: video is not supported and the picture is lost after the interface is restored.
Board documentation and references

- ArmSoM Sige7 · hardware and interface manual · Sige7 · product page
- Android MediaCodec API
- Rockchip MPP and codec examples
