Android.Media.Metrics Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.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.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.InterfaceConsts |
Contains the parcelable interface constants exposed by NetworkEvent. |
| PlaybackErrorEvent |
Playback error event. |
| PlaybackErrorEvent.Builder |
A builder for |
| 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.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.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.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.