Exemplo n.º 1
0
 public TallyHub(
     ILogger <TallyHub> log,
     AtemSettings atemSettings,
     AtemStatus atemStatus)
 {
     Log          = log;
     AtemSettings = atemSettings;
     AtemStatus   = atemStatus;
 }
Exemplo n.º 2
0
 public XmlState()
 {
     MixEffectBlocks = new List <MixEffectBlock>();
     DownstreamKeys  = new List <DownstreamKey>();
     ColorGenerators = new List <ColorGenerator>();
     Auxiliaries     = new List <Auxiliary>();
     Settings        = new AtemSettings();
     AudioMixer      = new AudioMixer();
     MediaPlayers    = new List <MediaPlayer>();
     MediaPool       = new MediaPool();
     CameraControl   = new CameraControl();
     MacroPool       = new List <Macro>();
     MacroControl    = new MacroControl();
 }
Exemplo n.º 3
0
        public AtemService(
            AtemSettings atemSettings,
            AtemStatus atemStatus,
            ILogger <AtemService> logger,
            IHubContext <TallyHub, ITallyClient> tallyHub)
        {
            Log          = logger;
            AtemSettings = atemSettings;
            TallyHub     = tallyHub;
            AtemStatus   = atemStatus;

            Client               = new AtemClient(AtemSettings.Mixer);
            Client.OnReceive    += OnCommand;
            Client.OnConnection += OnConnect;
            Client.OnDisconnect += OnDisconnect;
        }