Add an Dvr Service API Add/Delete/Update RecordLiveTV

What would you like to see in MythTV and why? Find others who might want to help implement your ideas!
Forum rules
Please be reasonable and positive with your feature requests, remember that all contributions to MythTV are by volunteers in their spare time. MythTV won't support piracy in any form, including torrents and use of soft cams, so to avoid embarrassment please do not ask.

* One suggestion per thread please. Do not post new suggestions in replies. *
Post Reply
hamelg
Newcomer
Posts: 11
Joined: Fri Jan 03, 2020 8:57 pm
France

Add an Dvr Service API Add/Delete/Update RecordLiveTV

Post by hamelg »

It could be very useful to have an API to manage LiveTV recording [1].
This API would implement all steps except starting the file transfer [2].
The goal is to allow LiveTV streaming via HLS exposed by mythtv [3]. Currently, there is no way to start a LiveTV recording with the service API, you must use the Myth Protocol to achieve this.

[1] https://www.mythtv.org/wiki/LiveTV
[2] https://www.mythtv.org/wiki/Myth_Protoc ... ing_LiveTV
[3] https://www.mythtv.org/wiki/HTTP_Live_Streaming_Server
User avatar
pgbennett
Developer
Posts: 575
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: Add an Dvr Service API Add/Delete/Update RecordLiveTV

Post by pgbennett »

I looked into this for leanfront. (https://github.com/bennettpeter/android ... -Leanfront)

Live TV is complicated by the fact that it creates a recording for the current show on the channel, and then at the end of that recording it starts recording the next show, and so on. There is a lot of communication between frontend and backend with the switch over from one show to the next.

I created a workaround, where leanfront sets up a manual recording for the channel and plays that. You can watch "Live TV" with pausing etc., but you get a recording file that has a generic name instead of the name of a show, and can contain more than one show.

When the user stops play on leanfront, the recording is stopped.

Leanfront uses the service API for everything and does not use HLS streaming.
hamelg
Newcomer
Posts: 11
Joined: Fri Jan 03, 2020 8:57 pm
France

Re: Add an Dvr Service API Add/Delete/Update RecordLiveTV

Post by hamelg »

Yes, I tried LeanFront and it's an amazing and light mythtv client for Android. The major drawback I encounter is the poor exoplayer support with old devices. Exoplayer crashes too often with my Kindle Fire HD running android v5.1 : logs show errors in the hardware decoder mediaCodecVideoRender OMX.TI.DUCATI1.VIDEO.DECODER. VLC is the only reliable player for my old device and it works great via HLS streamed by the mythbackend.
Post Reply