예제 #1
0
 public void Notify(_BMDSwitcherEventType eventType)
 {
     if (eventType == _BMDSwitcherEventType.bmdSwitcherEventTypeTimeCodeChanged)
     {
         onChange();
     }
 }
예제 #2
0
 void IBMDSwitcherCallback.Notify(_BMDSwitcherEventType eventType, _BMDSwitcherVideoMode coreVideoMode)
 {
     if (eventType == _BMDSwitcherEventType.bmdSwitcherEventTypeDisconnected)
     {
         SwitcherDisconnected?.Invoke(this, null);
     }
 }
예제 #3
0
 public void Notify(_BMDSwitcherEventType eventType, _BMDSwitcherVideoMode coreVideoMode)
 {
     switch (eventType)
     {
     case _BMDSwitcherEventType.bmdSwitcherEventTypeDisconnected:
         SwitcherDisconnected?.Invoke(Switcher, this);
         break;
     }
 }
예제 #4
0
 void IBMDSwitcherCallback.Notify(_BMDSwitcherEventType eventType, _BMDSwitcherVideoMode coreVideoMode)
 {
     if (eventType == _BMDSwitcherEventType.bmdSwitcherEventTypeDisconnected)
     {
         if (SwitcherDisconnected != null)
         {
             SwitcherDisconnected();
         }
     }
 }
예제 #5
0
        public void Notify(_BMDSwitcherEventType eventType, _BMDSwitcherVideoMode coreVideoMode)
        {
            switch (eventType)
            {
            case _BMDSwitcherEventType.bmdSwitcherEventTypeDisconnected:
                _mediator.Publish(new ConnectionChangeNotify {
                    Connected = false
                });
                break;

            case _BMDSwitcherEventType.bmdSwitcherEventTypeTimeCodeChanged:
                break;

            default:
                _mediator.Publish(new SwitcherMessageNotify {
                    Message = $"Switcher says: {eventType}"
                });
                break;
            }
        }
예제 #6
0
        void IBMDSwitcherCallback.Notify(_BMDSwitcherEventType eventType, _BMDSwitcherVideoMode coreVideoMode)
        {
            this._switcherEventArgs = new SwitcherEventArgs();
            switch (eventType)
            {
            case _BMDSwitcherEventType.bmdSwitcherEventType3GSDIOutputLevelChanged:
                this.SwitcherEventType3GSDIOutputLevelChanged?.Invoke(this, this._switcherEventArgs);
                break;

            case _BMDSwitcherEventType.bmdSwitcherEventTypeDisconnected:
                this._switcherEventArgs = new SwitcherEventArgs {
                    _coreVideoMode = coreVideoMode
                };
                this.SwitcherEventTypeDisconnected?.Invoke(this, this._switcherEventArgs);
                break;

            case _BMDSwitcherEventType.bmdSwitcherEventTypeDownConvertedHDVideoModeChanged:
                this.SwitcherEventTypeDownConvertedHDVideoModeChanged?.Invoke(this, this._switcherEventArgs);
                break;

            case _BMDSwitcherEventType.bmdSwitcherEventTypeMethodForDownConvertedSDChanged:
                this.SwitcherEventTypeMethodForDownConvertedSDChanged?.Invoke(this, this._switcherEventArgs);
                break;

            case _BMDSwitcherEventType.bmdSwitcherEventTypeMultiViewVideoModeChanged:
                this.SwitcherEventTypeMultiViewVideoModeChanged?.Invoke(this, this._switcherEventArgs);
                break;

            case _BMDSwitcherEventType.bmdSwitcherEventTypePowerStatusChanged:
                this.SwitcherEventTypePowerStatusChanged?.Invoke(this, this._switcherEventArgs);
                break;

            case _BMDSwitcherEventType.bmdSwitcherEventTypeVideoModeChanged:
                this.SwitcherEventTypeVideoModeChanged?.Invoke(this, this._switcherEventArgs);
                break;
            }
        }
예제 #7
0
        public void Notify(_BMDSwitcherEventType eventType, _BMDSwitcherVideoMode coreVideoMode)
        {
            switch (eventType)
            {
            case _BMDSwitcherEventType.bmdSwitcherEventTypeVideoModeChanged:
                VideoModeChangedEvent?.Invoke(this, new EventArgs());
                break;

            case _BMDSwitcherEventType.bmdSwitcherEventTypeMethodForDownConvertedSDChanged:
                MethodForDownConvertedSDChangedEvent?.Invoke(this, new EventArgs());
                break;

            case _BMDSwitcherEventType.bmdSwitcherEventTypeDownConvertedHDVideoModeChanged:
                DownConvertedHDVideoModeChangedEvent?.Invoke(this, new EventArgs());
                break;

            case _BMDSwitcherEventType.bmdSwitcherEventTypeMultiViewVideoModeChanged:
                MultiViewVideoModeChangedEvent?.Invoke(this, new EventArgs());
                break;

            case _BMDSwitcherEventType.bmdSwitcherEventTypePowerStatusChanged:
                PowerStatusChangedEvent?.Invoke(this, new EventArgs());
                break;

            case _BMDSwitcherEventType.bmdSwitcherEventTypeDisconnected:
                DisconnectedEvent?.Invoke(this, new EventArgs());
                break;

            case _BMDSwitcherEventType.bmdSwitcherEventType3GSDIOutputLevelChanged:
                SDI3GOutputLevelChangedEvent?.Invoke(this, new EventArgs());
                break;

            default:
                break;
            }
        }
예제 #8
0
 public void Notify(_BMDSwitcherEventType eventType, _BMDSwitcherVideoMode coreVideoMode)
 {
     throw new NotImplementedException();
 }
예제 #9
0
 public void Notify(_BMDSwitcherEventType eventType, _BMDSwitcherVideoMode coreVideoMode)
 {
     Notify(eventType);
 }
예제 #10
0
 void IBMDSwitcherCallback.Notify(_BMDSwitcherEventType eventType)
 {
     if (eventType == _BMDSwitcherEventType.bmdSwitcherEventTypeDisconnected)
     {
         if (SwitcherDisconnected != null)
             SwitcherDisconnected(this, null);
     }
 }