Share via


GlobalSystemMediaTransportControlsSession.TryChangePlaybackPositionAsync Method

Definition

Attempts to change the playback position on the session to the specified time, in ticks.

public:
 virtual IAsyncOperation<bool> ^ TryChangePlaybackPositionAsync(long long requestedPlaybackPosition) = TryChangePlaybackPositionAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryChangePlaybackPositionAsync(long const& requestedPlaybackPosition);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryChangePlaybackPositionAsync(long requestedPlaybackPosition);
function tryChangePlaybackPositionAsync(requestedPlaybackPosition)
Public Function TryChangePlaybackPositionAsync (requestedPlaybackPosition As Long) As IAsyncOperation(Of Boolean)

Parameters

requestedPlaybackPosition
Int64

long long

long

The requested playback position to seek to, specified in ticks.

Returns

True indicates success; False otherwise

Attributes

Windows requirements

App capabilities
globalMediaControl

Applies to