Gets the number of output streams available in the current program.
public int OutputStreams { get; } Public ReadOnly Property OutputStreams As Integer public:property int OutputStreams {int get();}
A value representing the number of output streams available in the current program.
The current source media file is the file that the MediaInfo object gets information for. To set the current source media file, set the SourceFile property. The source file has one or more programs and each program has one or more output streams. The value of this property might change if you change the value of the current program using the CurrentProgram property. The value of this property can be used to iterate through all streams, acquiring information on each. To set the current stream, set the CurrentStream property. Once the current stream has been set, other MediaInfo properties are updated with information about the current stream.
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:\Program Files (x86)\LEAD Technologies\LEADTOOLS 19\Media";}
Imports LeadtoolsImports Leadtools.MultimediaImports LeadtoolsMultimediaExamples.FixturesPublic _form As PlayCtrlForm = New PlayCtrlForm()Public _result As Boolean = FalsePublic Sub ResetSourceExample()' reference the play controlDim playctrl As PlayCtrl = _form.PlayCtrl' input fileDim inFile As String = Path.Combine(LEAD_VARS.MediaDir, "MediaInfo_Source.avi")Dim info As String = String.EmptyTry' create a new media info objectDim mi As MediaInfo = New MediaInfo()' set the input and output filesmi.SourceFile = inFile' set the info stringinfo = String.Format("Source File={0}" _& Microsoft.VisualBasic.Constants.vbLf _& "Source File Size={1}" & Microsoft.VisualBasic.Constants.vbLf _& "Source BitRate={2}" & Microsoft.VisualBasic.Constants.vbLf _& "Duration={3}" & Microsoft.VisualBasic.Constants.vbLf _& "VideoBitRate={4}" _& Microsoft.VisualBasic.Constants.vbLf _& "VideoBitCount={5}" _& Microsoft.VisualBasic.Constants.vbLf + Microsoft.VisualBasic.Constants.vbLf _& "Are these values correct?",mi.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 = _result And (mi.SourceFile Is Nothing)Catch e1 As Exception_result = FalseEnd TryEnd SubPublic NotInheritable Class LEAD_VARSPublic Const MediaDir As String = "C:\Program Files (x86)\LEAD Technologies\LEADTOOLS 19\Media"End Class
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
