signalwareltd / AndroidDvbDriver

Android driver framework for USB TV tuners
GNU General Public License v2.0
196 stars 65 forks source link

Remote Network Access #12

Open IanSchofield opened 6 years ago

IanSchofield commented 6 years ago

Hi I am new to Android programming. To help learn I am going to write a TV program front end to your driver. I would like my application to be on another device so will need to use the socket interface. Can I connect to the "dtvdriver" activity remotely? If my app runs on the same machine it works fine. I would prefer to not modify your source code to use something like "Network Service Discovery (NSD)". Any help much appreciated.

Thanks Ian

dmgouriev commented 6 years ago

Hey Ian!

There is not full API to write your own TV app. First you need to write transport stream parser API and make some corrections in Martin's driver - there is no PLP select method... And after that you can use Martin's PID filter to play channels elementary steams. If you will not do it and you will try to parse stream and filter PIDs in your app - by my own observations - the device begins to heat up strongly and eventually breaks down. The good way will be write transport stream parser module and PLP select method in driver, write simple control server (http as example) and streaming server to stream program elementary streams to another device. I chosee local http steaming server to this task.

Best regards, Dmitry G.

IanSchofield commented 6 years ago

Hi Dmitry Thanks for the reply, it helps to clarify my idea. In Australia as far as I know we only use DVB-T which does not support PLP (I may be wrong). I was awhere that I would have to parse the raw transport stream from the driver. I was hoping to not make changes to Martin's driver. It seems from your experience that it would be better to modify driver, moving all the control logic/parsing to the driver and just use http to stream elementary stream to my app. Well I wanted to learn Kotlin for Android so this will make a good project.

Thanks for your help. Ian