MediaCapture.CameraStreamStateChanged MediaCapture.CameraStreamStateChanged MediaCapture.CameraStreamStateChanged MediaCapture.CameraStreamStateChanged MediaCapture.CameraStreamStateChanged Event

Definition

Occurs when the state of the camera stream changes.

public : event TypedEventHandler<MediaCapture, object> CameraStreamStateChanged
// Register
event_token CameraStreamStateChanged(TypedEventHandler<MediaCapture, object> const& handler) const;

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

// Revoke with event_revoker
CameraStreamStateChanged_revoker CameraStreamStateChanged(auto_revoke_t, TypedEventHandler<MediaCapture, object> const& handler) const;
public event TypedEventHandler<MediaCapture, object> CameraStreamStateChanged
Public Event CameraStreamStateChanged As TypedEventHandler (Of MediaCapture, object)
function onCameraStreamStateChanged(eventArgs){/* Your code */}


mediaCapture.addEventListener("camerastreamstatechanged", onCameraStreamStateChanged);
mediaCapture.removeEventListener("camerastreamstatechanged", onCameraStreamStateChanged);

Remarks

The state of the camera stream will change when recording is paused or resumed, when the system drops frames for privacy reasons, or when the camera stream is lost.