ISystemMediaTransportControlsDisplayUpdater::CopyFromFileAsync method

Initializes the media properties using the specified file. IRandomAccessStreamReference

Syntax


HRESULT CopyFromFileAsync(
        MediaPlaybackType type,
        IStorageFile      *source,
  [out] IAsyncOperation   **operation
);

Parameters

type

Type: MediaPlaybackType

The type of media being played.

source

Type: IStorageFile*

The file to initialize the media properties.

operation [out]

Type: IAsyncOperation**

An asynchronous operation that returns a boolean indicating the success of the operation upon completion.

Return value

Type: HRESULT

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

Requirements

Minimum supported client

Windows 10

Minimum supported server

Windows Server 2016 Technical Preview [desktop apps only]

Header

Windows.Media.SystemMediaTransportControls.h

IDL

Windows.Media.SystemMediaTransportControls.idl

See also

ISystemMediaTransportControlsDisplayUpdater

 

 

Community Additions

ADD
Show: