Makes it possible to fetch multiple media samples (having different media types) from the ConvertCtrl and CaptureCtrl objects.
public class MultiStreamTarget : System.IDisposable
Public Class MultiStreamTarget
Implements System.IDisposable
public ref class MultiStreamTarget : public System.IDisposable
The MultiStreamTarget object accepts samples having different media types (each stream having its own media type) from the ConvertCtrl and CaptureCtrl objects. Specify the number of streams the object can support by using the StreamCount property.
Set the media type of each stream with the MediaType property. Use SetAcceptedMediaType method to set the media type for a specific target stream. To determine which media type is accepted from a stream, call the GetAcceptedMediaType method.
After the target for the ConvertCtrl or CaptureCtrl object is set, capturing or conversion can begin. At that point the MultiStreamTarget object can begin receiving samples. Use the WaitForSample and GetSample methods to deliver the MultiStreamTarget object samples for all streams.
When the end of the stream is reached, stop the conversion or capture process.
An overview of the whole process is as follows:
a. Call WaitForSample(timeout, …) , which will return the index of the stream most recently having a sample to retrieve.
b. Call GetSample(stream, …) to retrieve the sample.
c. It may be necessary to call GetConnectedMediaType(stream, …) to learn the media type of the sample being retrieved (or retrieved).
When working with only one stream, use the SampleTarget object instead of the MultiStreamTarget object.
Products |
Support |
Feedback: MultiStreamTarget Class - 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.