public double MaxKeyFrameSpacing { get; set; }
A value that represents the maximum key frame time interval in 100-nanosecond units.
Gets or sets the maximum key frame time interval in 100-nanosecond units. Do not use long intervals because that might affect the streaming or playback of the contents when seeking the stream.
using Leadtools;using Leadtools.Multimedia;using LeadtoolsMultimediaExamples.Fixtures;public bool _result = false;public CaptureCtrlForm _form = new CaptureCtrlForm();public void StreamTypeExample(){// reference the capture controlCaptureCtrl capturectrl = _form.CaptureCtrl;try{// reference the profile if availableWMProfile CurrentProfile = capturectrl.WMProfile;// if we have a profile display the infoif (CurrentProfile != null)MessageBox.Show(GetStreamInfo(CurrentProfile), "Stream Info", MessageBoxButtons.OK);_result = true;}catch (Exception){_result = false;}}// discovering streamsprivate string GetStreamInfo(WMProfile Profile){WMStreamConfig streamConfig;string streamInfo = string.Empty;// show all the information regarding the streamsfor (int i = 0; i < Profile.StreamCount - 1; i++){streamConfig = Profile.GetStream(0);streamInfo += "[[ Stream " + (i + 1).ToString() + " ]]";// get the major type of the streamstreamInfo += "\n type: " + streamConfig.StreamType;// get Stream numberstreamInfo += "\n number: " + streamConfig.StreamNumber.ToString();// get Stream namestreamInfo += "\n name: " + streamConfig.StreamName;// get connection namestreamInfo += "\n connection name: " + streamConfig.ConnectionName;// get BitratestreamInfo += "\n bitrate: " + streamConfig.Bitrate.ToString();// get the maximum latency (time in milliseconds) between stream reception and displaystreamInfo += "\n buffer window: " + streamConfig.BufferWindow.ToString();// get the major type of the media in the streamstreamInfo += "\n majortype: " + streamConfig.Type;// get the maximum key frame time interval (in 100-nano seconds)streamInfo += "\n max keyframe spacing: " + streamConfig.MaxKeyFrameSpacing.ToString();// get the Quality, range from 0 to 100// where zero denotes maximum frame rate and 100 denotes maximum quality.streamInfo += "\n stream quality: ";if (streamConfig.Quality > -1)streamInfo += streamConfig.Quality.ToString();elsestreamInfo += "(unknown)";}return streamInfo;}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
