PreferredMediaSourceHandlers Class

Summary
Contains constant string values for predefined values used to identify preferred media source handlers.
Syntax
C#
C++/CLI
public sealed abstract class PreferredMediaSourceHandlers 
public ref class Constants.PreferredMediaSourceHandlers abstract sealed  
Example
C#
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; 
   } 
} 
Requirements

Target Platforms

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MediaFoundation Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.