Code Monkey home page Code Monkey logo

Comments (13)

Jalle19 avatar Jalle19 commented on July 21, 2024

Sounds good in general, feel free to work on it. Can you elaborate on the timeshift settings?

from pvr.hts.

Glenn-1990 avatar Glenn-1990 commented on July 21, 2024

@Jalle19
Well now, timeshift is enabled when it's enabled on the server, but a user might want to use timeshift on his main box, but not on the bedroom box, as multiple timeshift instances are stressing for the server..

If the user uses predictive tuning (till 10 subscriptions) with timeshift enabled, that will also stress the server quite a bit.. Allow him to disable timeshift

Additionally we can add also a period, so the master client can be configured with a big timeshift period and the bedroom client can be configured with a small timeshift period.

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 21, 2024

Is this controlable via HTSP?

from pvr.hts.

Glenn-1990 avatar Glenn-1990 commented on July 21, 2024

Yes we can set the timeshift period on subsribe, 0 = force off, infinity = server config

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 21, 2024

The part about setting it to infinity is not mentioned in the HTSP spec, are you sure that's the case? If so someone should probably update the wiki.

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 21, 2024

I would keep it simple for now and only have a checkbox like "Disable timeshifting" which defaults to false. To me it sounds like being able to control the timeshift buffer size from the client is a very edge case.

@ksooo what do you think?

from pvr.hts.

Glenn-1990 avatar Glenn-1990 commented on July 21, 2024

It's currently set to infinity https://github.com/kodi-pvr/pvr.hts/blob/master/src/tvheadend/Subscription.cpp#L120

wiki -> timeshiftPeriod u32 optional The number of seconds to keep in the timeshift buffer
Note: this may be bounded by server configuration settings

So infinity will bounded by the server config, i.e. if the server config is 10 minutes -> 10 minutes will be used instead of infinity -> so basically you are always using the server config in this case.

If the client period is smaller than the server one, this will be used, so basically the smallest config is used, server or client. If the client uses 0 as period, this will be used. Maybe this can be added to the config as this is indeed not clear.

You can check it here: https://github.com/tvheadend/tvheadend/blob/master/src/htsp_server.c#L2082

from pvr.hts.

ksooo avatar ksooo commented on July 21, 2024

I would keep it simple for now and only have a checkbox like "Disable timeshifting" which defaults to false. To me it sounds like being able to control the timeshift buffer size from the client is a very edge case.

Well, I do not really see the use case for the timeshift settings. I do get that the idea for this settings is "I have a server which is not powerful enough to feed all my clients and therefore I need some client-side settings to make it work". Why not just invest in a server that suits your needs? If a Raspy is not powerful enough, buy something more suitable. Honestly, I do not buy that one will have timeshifting in living room but not in bedroom? Why? I'm pretty sure my wife would tell me that the bedroom HTPC is broken if Live TV there behaves different from living room HTPC. ;-)

Okay, just my 2 Ct, I don't want to block this.

from pvr.hts.

ksooo avatar ksooo commented on July 21, 2024

And for the rest - I like it. Thanks @Glenn-1990.

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 21, 2024

If we don't want the ability to control timeshifting from the client we can just skip that for now and still go through with the rest of the changes @Glenn-1990 has outlined.

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 21, 2024

@Glenn-1990 I just merged the selectable profile stuff so feel free to start working on this now :-)

from pvr.hts.

Glenn-1990 avatar Glenn-1990 commented on July 21, 2024

Is it possible to get #79 in first?
Then we can pickup that setting also.

from pvr.hts.

Jalle19 avatar Jalle19 commented on July 21, 2024

Probably a good idea, yeah.

from pvr.hts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.