Android.Media.Metrics Namespace

Provides media session identifiers, metric reports, and playback and editing events.

Classes

Name Description
BundleSession

An instance of this class represents a session with data stored in a bundle.

EditingEndedEvent

Event for an editing operation having ended.

EditingEndedEvent.Builder

Builder for EditingEndedEvent

EditingEndedEvent.InterfaceConsts

Contains the parcelable interface constants exposed by EditingEndedEvent.

EditingSession

Represents a session of media editing, for example, transcoding between formats, transmuxing or applying trimming or audio/video effects to a stream.

Event

Abstract class for metrics events.

LogSessionId

An instances of this class represents the ID of a log session.

MediaItemInfo

Represents information about a piece of media (for example, an audio or video file).

MediaItemInfo.Builder

Builder for MediaItemInfo.

MediaItemInfo.InterfaceConsts

Contains the parcelable interface constants exposed by MediaItemInfo.

MediaMetricsManager

This class gives information about, and interacts with media metrics.

NetworkEvent

Media network event.

NetworkEvent.Builder

A builder for NetworkEvent

NetworkEvent.InterfaceConsts

Contains the parcelable interface constants exposed by NetworkEvent.

PlaybackErrorEvent

Playback error event.

PlaybackErrorEvent.Builder

A builder for PlaybackErrorEvent

PlaybackErrorEvent.InterfaceConsts

Contains the parcelable interface constants exposed by PlaybackErrorEvent.

PlaybackMetrics

This class is used to store playback data.

PlaybackMetrics.Builder

A builder for PlaybackMetrics

PlaybackMetrics.InterfaceConsts

Contains the parcelable interface constants exposed by PlaybackMetrics.

PlaybackSession

An instance of this class represents a session of media playback used to report playback metrics and events.

PlaybackStateEvent

Playback state event.

PlaybackStateEvent.Builder

A builder for PlaybackStateEvent

PlaybackStateEvent.InterfaceConsts

Contains the parcelable interface constants exposed by PlaybackStateEvent.

RecordingSession

An instances of this class represents a session of media recording.

TrackChangeEvent

Playback track change event.

TrackChangeEvent.Builder

A builder for TrackChangeEvent

TrackChangeEvent.InterfaceConsts

Contains the parcelable interface constants exposed by TrackChangeEvent.

TranscodingSession

An instances of this class represents a session of media Transcoding.

Enums

Name Description
EditingEndedEventErrorCode

Specifies the error reported when a media editing operation fails.

EditingEndedEventFinalState

Specifies how a media editing operation ended.

MediaItemInfoSourceType

Specifies where a media item came from.

NetworkType

Specifies the network connection type reported by a media event.

PlaybackContentType

Specifies the kind of content in a playback report.

PlaybackDrmType

Specifies the digital rights management system used for playback.

PlaybackError

Specifies the error category reported for media playback.

PlaybackState

Specifies the playback state reported by a media event.

PlaybackStreamSource

Specifies where a playback stream is read from.

PlaybackStreamType

Specifies the streaming format in a playback report.

PlaybackType

Specifies whether playback is live, on demand, or another type.

TrackChangeReason

Specifies why a media track changed.

TrackState

Specifies whether a media track is on or off.

TrackType

Specifies whether a media track contains audio, video, or text.

Remarks

Use MediaMetricsManager to create a metrics session. Use the event and report builders to supply measurements, then pass the result to the corresponding session reporting method.

LogSessionId identifies a session and can associate it with lower-level media components. Event timestamps are elapsed milliseconds since creation of the associated log session, not wall-clock timestamps. Close a session to release its identifier.

Source: Android implementation.

Source: Android implementation.

Source: Android implementation.

Source: Android implementation.