MediaCapture.CameraStreamStateChanged Evento

Definição

Ocorre quando o estado do fluxo da câmera é alterado.

// Register
event_token CameraStreamStateChanged(TypedEventHandler<MediaCapture, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
MediaCapture::CameraStreamStateChanged_revoker CameraStreamStateChanged(auto_revoke_t, TypedEventHandler<MediaCapture, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaCapture,object> CameraStreamStateChanged;
function onCameraStreamStateChanged(eventArgs) { /* Your code */ }
mediaCapture.addEventListener("camerastreamstatechanged", onCameraStreamStateChanged);
mediaCapture.removeEventListener("camerastreamstatechanged", onCameraStreamStateChanged);
- or -
mediaCapture.oncamerastreamstatechanged = onCameraStreamStateChanged;
Public Custom Event CameraStreamStateChanged As TypedEventHandler(Of MediaCapture, Object) 

Tipo de evento

Requisitos do Windows

Funcionalidades do aplicativo
backgroundMediaRecording

Comentários

O estado do fluxo da câmera será alterado quando a gravação for pausada ou retomada, quando o sistema descartar quadros por motivos de privacidade ou quando o fluxo da câmera for perdido.

Aplica-se a