Gets or sets a value that indicates which streams the target format can have.
public Leadtools.Multimedia.StreamFormatType Streams {get; set;} Public Property Streams As Leadtools.Multimedia.StreamFormatType public:property Leadtools.Multimedia.StreamFormatType Streams {Leadtools.Multimedia.StreamFormatType get();void set ( Leadtools.Multimedia.StreamFormatType );}
A StreamFormatType enumeration value indicating which streams the target can have.
Gets or sets a value that indicates which streams the target format can have. The format to be used for the converted file. This includes the file format, any special settings used by that format, and which audio and/or video codec is to be used for the conversion, and any special settings used by the codecs. For a list of possible values, refer to StreamFormatType constants. Individual values can be combined by using the bitwise OR operator.
using Leadtools;using Leadtools.Multimedia;using LeadtoolsMultimediaExamples.Fixtures;public bool _result = false;public CaptureCtrlForm _form = new CaptureCtrlForm();public void HasCacheDialogExample(){// reference the capture controlCaptureCtrl capturectrl = _form.CaptureCtrl;try{// set a video device first. use your video device's name hereif (capturectrl.VideoDevices["Analog"] == null)throw new Exception("No Analog audio device available");capturectrl.VideoDevices["Analog"].Selected = true;// set the video compressorcapturectrl.VideoCompressors.Mpeg2.Selected = true;// reference the target formats collectionTargetFormat fmt = capturectrl.TargetFormats.MPEG2Program;// enumerate through the list of formatsforeach (TargetFormat af in capturectrl.TargetFormats){// check the formats valid compressor and stream typebool isValid = (af.IsValidCompressor(capturectrl.VideoCompressors.Mpeg2.Name) == TargetFormatCompressor.Valid);StreamFormatType types = af.Streams;// if valid, select itif (isValid && ((types & StreamFormatType.Video) == StreamFormatType.Video)){fmt = af;fmt.Selected = true;break;}}// check to see if the current target format has a cache dialogif (fmt != null && fmt.HasCacheDialog(TargetFormatDlg.VideoCompressor)){// show the dialogfmt.ShowCacheDialog(TargetFormatDlg.VideoCompressor, _form);// set the result_result = true;}}catch (Exception){_result = false;}}
Imports LeadtoolsImports Leadtools.MultimediaImports LeadtoolsMultimediaExamples.FixturesPublic _result As Boolean = FalsePublic _form As CaptureCtrlForm = New CaptureCtrlForm()Public Sub HasCacheDialogExample()' reference the capture controlDim capturectrl As CaptureCtrl = _form.CaptureCtrlTry' set a video device first, you should use your video device name hereIf capturectrl.VideoDevices("Analog") Is Nothing ThenThrow New Exception("No Analog audio device available")End Ifcapturectrl.VideoDevices("Analog").Selected = True' set the video compressorcapturectrl.VideoCompressors.Mpeg2.Selected = True' reference the target formats collectionDim fmt As TargetFormat = capturectrl.TargetFormats.MPEG2Program' enumerate through the list of formatsFor Each af As TargetFormat In capturectrl.TargetFormats' check the formats valid compressor and stream typeDim isValid As Boolean = (af.IsValidCompressor(capturectrl.VideoCompressors.Mpeg2.Name) = TargetFormatCompressor.Valid)Dim types As StreamFormatType = af.Streams' if valid, select itIf isValid AndAlso ((types And StreamFormatType.Video) = StreamFormatType.Video) Thenfmt = affmt.Selected = TrueExit ForEnd IfNext af' check to see if the current target format has a cache dialogIf Not fmt Is Nothing AndAlso fmt.HasCacheDialog(TargetFormatDlg.VideoCompressor) Then' show the dialogfmt.ShowCacheDialog(TargetFormatDlg.VideoCompressor, _form)' set the result_result = TrueEnd IfCatch e1 As Exception_result = FalseEnd TryEnd Sub
|
Products |
Support |
Feedback: Streams Property - Leadtools.Multimedia |
Introduction |
Help Version 19.0.2017.6.16
|

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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.