Share via


MediaStreamSource.Paused Event

Definition

Occurs when the MediaStreamSource is paused and stops requesting MediaStreamSample objects for an unspecified period of time, but is expected to resume requesting MediaStreamSample objects from the current position.

// Register
event_token Paused(TypedEventHandler<MediaStreamSource, IInspectable const&> const& handler) const;

// Revoke with event_token
void Paused(event_token const* cookie) const;

// Revoke with event_revoker
MediaStreamSource::Paused_revoker Paused(auto_revoke_t, TypedEventHandler<MediaStreamSource, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaStreamSource,object> Paused;
function onPaused(eventArgs) { /* Your code */ }
mediaStreamSource.addEventListener("paused", onPaused);
mediaStreamSource.removeEventListener("paused", onPaused);
- or -
mediaStreamSource.onpaused = onPaused;
Public Custom Event Paused As TypedEventHandler(Of MediaStreamSource, Object) 

Event Type

Remarks

This event might be raised by the user pressing a “Pause” button in the UI. When the user decides to resume playback, it is likely that the Starting event will indicate that the MediaStreamSample objects should continue to be delivered from the current position. The Paused event serves as a hint to the application that the next Starting event will specify the current position.

The event is informational. Applications are not required to have a handler for this event.

Applies to