private void _videoDevice_PushData(VideoDeviceDataContext value) { lock (syncState) { PowerMsPlayer.InputDecVideo(value.Data, value.DataLength); } }
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); }