Noob looking for help to develop an Android TV app that plays back stream from external USB camera device

by ZainAjam

I've tinkered in app development here and there over my life and did a computer science course in university focused on Java around 15 years ago, but I've never really practiced app development. I'm saying this because I'm trying to build an Android TV app and I need help and I'm hoping I'll be a quick learner.

I have an HDMI to USB dongle that I have in my android TV box and I want to build an app that can take that stream and display it. There should be nothing else on the app except the stream. If I press the back button, it must exit the app. If I press the ok button, a settings menu must come up where I can change the currently active HDMI-to-USB device (in the case where multiple adaptor devices are connected). If I press the home button, the stream just go into pip. Also, when the app starts up, it must always be the last used hdmihtohusb device that streams. I'll also like the user to be able to rename the list of devices in the settings app to whatever they choose.

If anyone can guide me on how to build this, I will really appreciate it. I also have some dollars saved to pay someone who can assist me in either building this or providing me with specifics on how to build this.

What I'm trying to achieve is have an HDMI Input Viewer for any Android TV. This would allow me to pass any HDMI feed through the adaptor and play it in this HDMI input Viewer app. If the user has multiple HDMI devices connected through multiple hdmi-to-usb adaptors, the user will be able to switch devices in this app too. I'm really trying to make a simple HDMI input Viewer with hdmi source switching.

Anyone who can help?

Edit : If there is anyone who can help me build this app, here is the detail of the requirements I have for this app: https://docs.google.com/presentation/d/1j8ZM96vaJjdsG-35qsaU_-g8lfU46mydyIehPrC_wjw/edit?usp=sharing

Se7enLC

The hardware interface will be the hard part. In Android (and Android TV, Linux in general), drivers are part of the kernel. If the device is supported in the kernel, you're good to go. If it's not, you are hosed.

So first, does that HDMI to USB device work in standard Linux (like for a PC)? Does it appear as a standard uvc video device? (Which would allow it to work in standard video players)

Next, does it come up and work in Android / Android TV? Not all drivers that are supported by the Linux kernel are included in the kernel built for an Android device. And each manufacturer/model may include different configurations and versions.

If the device does show up as a video input, you should be able to use an app that already exists in the Google play store to view the video. Perhaps try a few of them out to see.

If ALL of that is true, you will be in good shape to write an application. There should be examples online for how to access video devices. Might even be able to find full open source applications you can start from.

If some of those are not true, what you want might just not be possible without partnering with a device manufacturer to get them to include a driver for your hardware. Or rooting a device and changing the kernel yourself. Neither of which is very condusive to a successful app.

xiaolinstyle

Wouldn't this technically be competition for YouTube live?

arghness

To be honest, I didn't even know HDMI to USB was a thing. I've seen plenty of USB to HDMI but not the other way around.

I guess you're really just making a USB webcam viewer, assuming these output in some standard format. I suspect that if they support switching, the way it's done may vary between adapters, though. You might need the details of how particular dongles work.