feat: add safe Tornado K3D playout adapter
This commit is contained in:
18
src/MBN_STOCK_WEBVIEW.Playout/Safety/LiveAuthorization.cs
Normal file
18
src/MBN_STOCK_WEBVIEW.Playout/Safety/LiveAuthorization.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace MBN_STOCK_WEBVIEW.Playout.Safety;
|
||||
|
||||
internal interface ILiveAuthorization
|
||||
{
|
||||
bool IsAuthorizedForThisLaunch { get; }
|
||||
}
|
||||
|
||||
internal sealed class EnvironmentLiveAuthorization : ILiveAuthorization
|
||||
{
|
||||
public EnvironmentLiveAuthorization()
|
||||
{
|
||||
// Capture once. Changing a process environment variable after launch cannot arm output.
|
||||
IsAuthorizedForThisLaunch =
|
||||
Configuration.PlayoutOptionsLoader.IsLiveAuthorizedForThisLaunch();
|
||||
}
|
||||
|
||||
public bool IsAuthorizedForThisLaunch { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user