Example #1
0
 private void SetupInput(BitmapFormat format)
 {
     var streamInfo = StreamInfo.FromBitmapFormat(format);
     streamInfo.ID = VIDEO_ID;
     streamInfo.FPS = (int)Math.Floor(m_sourcePlayer.FPS != 0 ? m_sourcePlayer.FPS : 24);
     m_inputMedia.AddOrUpdateStream(streamInfo, streamInfo.FPS);
     
     m_inputMedia.SetExceptionHandler(OnErrorCallback);
     
 }