EN
本內容沒有您的語言版本,但有英文版本。

IMFMediaEngineSrcElements interface

Provides the Media Engine with a list of media resources.

When to implement

Implement this interface if you want the Media Engine to load media resources from an ordered list of URLs.

Members

The IMFMediaEngineSrcElements interface inherits from the IUnknown interface. IMFMediaEngineSrcElements also has these types of members:

Methods

The IMFMediaEngineSrcElements interface has these methods.

MethodDescription
AddElement

Adds a source element to the end of the list.

GetLength

Gets the number of source elements in the list.

GetMedia

Gets the intended media type of an element in the list.

GetType

Gets the MIME type of an element in the list.

GetURL

Gets the URL of an element in the list.

RemoveAllElements

Removes all of the source elements from the list.

 

Remarks

The IMFMediaEngineSrcElements interface represents an ordered list of media resources.

This interface enables the application to provide the same audio/video content in several different encoding formats, such as H.264 and Windows Media Video. If a particular codec is not present on the user's computer, the Media Engine will try the next URL in the list. To use this interface, do the following:

  1. Create an implementation of this interface.
  2. Initialize your implementation with a list of URLs. Optionally, provide MIME types and media query strings for each URL.
  3. Call the IMFMediaEngine::SetSourceElements method.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfmediaengine.h

 

 

社群新增項目

新增
顯示:
© 2014 Microsoft