11 lines
376 B
C#
11 lines
376 B
C#
using System;
|
|
|
|
namespace Jellyfin.Plugin.Enigma2;
|
|
|
|
public static class StartupBudget
|
|
{
|
|
public static int Seconds => Math.Clamp(Plugin.Instance?.Configuration?.StreamStartupWaitSeconds ?? 90, 25, 180);
|
|
public static int StallSeconds => Math.Clamp(Plugin.Instance?.Configuration?.StreamStallWaitSeconds ?? 30, 8, 60);
|
|
public static int WebSeconds => Seconds + 45;
|
|
}
|