public int VideoHeight { get; } public:property int VideoHeight {int get();}
A value representing the current video height, in pixels.
This property is updated automatically when the CurrentStream property is set to a video stream. This property will not be updated if the current stream is not a video stream. The current source media file, found in the SourceFile property, is the file that the MediaInfo object gets information for. The SourceFile property must be set before retrieving information from any of the other MediaInfo properties.
using Leadtools;using Leadtools.Multimedia;using LeadtoolsMultimediaExamples.Fixtures;public PlayCtrlForm _form = new PlayCtrlForm();public bool _result = false;public void ResetSourceExample(){// reference the play controlPlayCtrl playctrl = _form.PlayCtrl;// input filestring inFile = Path.Combine(LEAD_VARS.MediaDir, "MediaInfo_Source.avi");string info = string.Empty;try{// create a new media info objectMediaInfo mi = new MediaInfo();// set the input and output filesmi.SourceFile = inFile;// set the info stringinfo = string.Format("Source File={0}\nSource File Size={1}\nSource BitRate={2}\nDuration={3}\nVideoBitRate={4}\nVideoBitCount={5}\n\nAre these values correct?",// AudioBitsPerSample={5}\nAudioChannels={6}\nmi.SourceFile, mi.SourceFileSize, mi.SourceBitRate, mi.SourceDuration, mi.VideoBitRate, mi.VideoBitCount); //, mi.AudioBitsPerSample, mi.AudioChannels);// verify the values_result = (MessageBox.Show(_form, info, "Media Info", MessageBoxButtons.YesNo) == DialogResult.Yes);// reset the sourcemi.ResetSource();// set the result to what we expect_result = (mi.SourceFile == null);}catch (Exception){_result = false;}}static class LEAD_VARS{public const string MediaDir = @"C:\LEADTOOLS22\Media";}
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
