AndroidDvbDriver icon indicating copy to clipboard operation
AndroidDvbDriver copied to clipboard

Remote Network Access

Open IanSchofield opened this issue 7 years ago • 2 comments

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

IanSchofield avatar Jan 21 '18 00:01 IanSchofield

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.

dmgouriev avatar Jan 21 '18 18:01 dmgouriev

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

IanSchofield avatar Jan 21 '18 20:01 IanSchofield