Skip to content

Latest commit

 

History

History
83 lines (66 loc) · 3.51 KB

nf-mfmediaengine-imfmediaengine-load.md

File metadata and controls

83 lines (66 loc) · 3.51 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mfmediaengine.IMFMediaEngine.Load
IMFMediaEngine::Load (mfmediaengine.h)
Loads the current media source.
IMFMediaEngine interface [Media Foundation]
Load method
IMFMediaEngine.Load
IMFMediaEngine::Load
Load
Load method [Media Foundation]
Load method [Media Foundation]
IMFMediaEngine interface
mf.imfmediaengine_load
mfmediaengine/IMFMediaEngine::Load
mf\imfmediaengine_load.htm
mf
5ACE8143-DC14-495C-A644-A2076FB1980F
12/05/2018
IMFMediaEngine interface [Media Foundation],Load method, IMFMediaEngine.Load, IMFMediaEngine::Load, Load, Load method [Media Foundation], Load method [Media Foundation],IMFMediaEngine interface, mf.imfmediaengine_load, mfmediaengine/IMFMediaEngine::Load
mfmediaengine.h
Windows
Windows 8 [desktop apps \| UWP apps]
Windows Server 2012 [desktop apps \| UWP apps]
Windows
19H1
IMFMediaEngine::Load
mfmediaengine/IMFMediaEngine::Load
c++
APIRef
kbSyntax
COM
mfmediaengine.h
IMFMediaEngine.Load

IMFMediaEngine::Load

-description

Loads the current media source.

-returns

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

-remarks

The main purpose of this method is to reload a list of source elements after updating the list. For more information, see SetSourceElements. Otherwise, calling this method is generally not required. To load a new media source, call IMFMediaEngine::SetSource or IMFMediaEngine::SetSourceElements.

The Load method explicitly invokes the Media Engine's media resource loading algorithm. Before calling this method, you must set the media resource by calling IMFMediaEngine::SetSource or IMFMediaEngine::SetSourceElements.

This method completes asynchronously. When the Load operation starts, the Media Engine sends an MF_MEDIA_ENGINE_EVENT_LOADSTART event. If no errors occur during the Load operation, several other events are generated, including the following.

  • MF_MEDIA_ENGINE_EVENT_LOADEDMETADATA
  • MF_MEDIA_ENGINE_EVENT_LOADEDDATA
  • MF_MEDIA_ENGINE_EVENT_CANPLAY
  • MF_MEDIA_ENGINE_EVENT_CANPLAYTHROUGH
If the Media Engine is unable to load the file, the Media Engine sends an MF_MEDIA_ENGINE_EVENT_ERROR event.

For more information about event handling in the Media Engine, see IMFMediaEngineNotify.

This method corresponds to the load method of the HTMLMediaElement interface in HTML5.

-see-also

IMFMediaEngine