I am writing an app for android boxes (not Android TV), that have HDMI input port. How do I read raw video stream from HDMI input and display it in android videoView ?
The Android boxes I am using have Amlogic processors. It uses API level 19 (Android 4.4) and above.
Well, it's not straightforward. You would need a modified kernel to detect and interface with the HDMI device. To get the HDMI input data from the device itself you'll need to write NDK code. Then after modifying the input data into an appropriate format which is compatible, such as encoding it to H264, you'll be able to feed it into a VideoView.
See this thread for someone who did something similar, taking HDMI input on a Nexus 7
How to detect an HDMI connection on Android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With