Contains constant string values for predefined values used to identify preferred media source handlers.
public static class Constants.PreferredMediaSourceHandlers
Public MustInherit NotInheritable Class Constants.PreferredMediaSourceHandlers
public ref class Constants.PreferredMediaSourceHandlers abstract sealed
The constants in this class are designed to be used with the following methods:
using Leadtools;
using Leadtools.MediaFoundation;
using LeadtoolsMediaFoundationExamples.Fixtures;
public bool _result = false;
public PlayCtrlForm _form = new PlayCtrlForm();
public void PlayerPreferredMediaSourceHandlersExample()
{
PlayCtrl playctrl = _form.PlayCtrl;
try
{
// set the preferred ISO(MP4) media source handler to the LEAD default (which is the LEAD ISO Media Source handler)
playctrl.SetPreferredMediaSourceHandler(PreferredMediaSourceHandler.ISO, Constants.PreferredMediaSourceHandlers.LEADDefault);
// the default ISO(MP4) media source handler should be the LEAD ISO(MP4) media source handler now
_result = (string.Compare(playctrl.GetPreferredMediaSourceHandler(PreferredMediaSourceHandler.ISO),
Constants.PreferredMediaSourceHandlers.ISO, true) == 0);
}
catch (Exception)
{
_result = false;
}
}
Imports Leadtools
Imports Leadtools.MediaFoundation
Imports LeadtoolsMediaFoundationExamples.Fixtures
Public _result As Boolean = False
Public _form As PlayCtrlForm = New PlayCtrlForm()
Public Sub PlayerPreferredMediaSourceHandlersExample()
Try
' reference the forms play control
Dim playctrl As PlayCtrl = _form.PlayCtrl
' set the preferred ISO(MP4) media source handler to the LEAD default (which is the LEAD ISO Media Source handler)
playctrl.SetPreferredMediaSourceHandler(PreferredMediaSourceHandler.ISO,
Leadtools.MediaFoundation.Constants.PreferredMediaSourceHandlers.LEADDefault)
' the default ISO(MP4) media source handler should be the LEAD ISO(MP4) media source handler now
_result = (String.Compare(playctrl.GetPreferredMediaSourceHandler(PreferredMediaSourceHandler.ISO),
Leadtools.MediaFoundation.Constants.PreferredMediaSourceHandlers.ISO, True) = 0)
Catch e1 As Exception
_result = False
End Try
End Sub
Constants.PreferredMediaSourceHandlers Members
Leadtools.MediaFoundation Namespace
GetPreferredMediaSourceHandler Method
SetPreferredMediaSourceHandler Method
Products |
Support |
Feedback: Constants.PreferredMediaSourceHandlers Class - Leadtools.MediaFoundation |
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.