MediaSource.StateChanged MediaSource.StateChanged MediaSource.StateChanged MediaSource.StateChanged MediaSource.StateChanged Event

Definition

Occurs when the current state of the MediaSource changes.

public : event TypedEventHandler<MediaSource, MediaSourceStateChangedEventArgs> StateChanged
// Register
event_token StateChanged(TypedEventHandler<MediaSource, MediaSourceStateChangedEventArgs> const& handler) const;

// Revoke with event_token
void StateChanged(event_token const& cookie) const;

// Revoke with event_revoker
StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<MediaSource, MediaSourceStateChangedEventArgs> const& handler) const;
public event TypedEventHandler<MediaSource, MediaSourceStateChangedEventArgs> StateChanged
Public Event StateChanged As TypedEventHandler (Of MediaSource, MediaSourceStateChangedEventArgs)
function onStateChanged(eventArgs){/* Your code */}


mediaSource.addEventListener("statechanged", onStateChanged);
mediaSource.removeEventListener("statechanged", onStateChanged);