Ejemplo n.º 1
0
 private void _videoDevice_PushData(VideoDeviceDataContext value)
 {
     lock (syncState)
     {
         PowerMsPlayer.InputDecVideo(value.Data, value.DataLength);
     }
 }
Ejemplo n.º 2
0
 public void OpenDevice(IVideoDevice videoDevice)
 {
     if (_currentVideoDevice != null)
     {
         _currentVideoDevice.PushingData -= _videoDevice_PushData;
     }
     _currentVideoDevice              = videoDevice;
     _currentVideoDevice.PushingData += _videoDevice_PushData;
     PowerMsPlayer.StopDecData();
     PowerMsPlayer.StartInputDecData(0, videoDevice.DeviceBitmapInfoHeader);
 }