Udostępnij za pośrednictwem


MediaElement.PartialMediaFailureDetected Event

Definition

Occurs when one or more streams fails to decode in content containing multiple streams.

// Register
event_token PartialMediaFailureDetected(TypedEventHandler<MediaElement, PartialMediaFailureDetectedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MediaElement::PartialMediaFailureDetected_revoker PartialMediaFailureDetected(auto_revoke_t, TypedEventHandler<MediaElement, PartialMediaFailureDetectedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaElement,PartialMediaFailureDetectedEventArgs> PartialMediaFailureDetected;
function onPartialMediaFailureDetected(eventArgs) { /* Your code */ }
mediaElement.addEventListener("partialmediafailuredetected", onPartialMediaFailureDetected);
mediaElement.removeEventListener("partialmediafailuredetected", onPartialMediaFailureDetected);
- or -
mediaElement.onpartialmediafailuredetected = onPartialMediaFailureDetected;
Public Custom Event PartialMediaFailureDetected As TypedEventHandler(Of MediaElement, PartialMediaFailureDetectedEventArgs) 

Event Type

Remarks

If at least one stream in the content is successfully decoded, the decoded media is played and this event is raised. If the stream that fails to decode is the only stream contained in the content, playback fails and the MediaFailed event is raised.

Applies to