Package org.mozilla.geckoview
Class MediaSession.ElementMetadata
Object
org.mozilla.geckoview.MediaSession.ElementMetadata
- Enclosing class:
- MediaSession
The representation of a media element's metadata.
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
The number of audio tracks contained in this element.final double
The duration of the media in seconds.final long
The height of the video in device pixels.final String
The media source URI.final int
The number of video tracks contained in this element.final long
The width of the video in device pixels. -
Constructor Summary
ConstructorDescriptionElementMetadata
(String source, double duration, long width, long height, int audioTrackCount, int videoTrackCount) ElementMetadata constructor. -
Method Summary
-
Field Details
-
source
The media source URI. -
duration
public final double durationThe duration of the media in seconds. 0.0 if unknown. -
width
public final long widthThe width of the video in device pixels. 0 if unknown. -
height
public final long heightThe height of the video in device pixels. 0 if unknown. -
audioTrackCount
public final int audioTrackCountThe number of audio tracks contained in this element. -
videoTrackCount
public final int videoTrackCountThe number of video tracks contained in this element.
-
-
Constructor Details
-
ElementMetadata
public ElementMetadata(@Nullable String source, double duration, long width, long height, int audioTrackCount, int videoTrackCount) ElementMetadata constructor.- Parameters:
source
- The media URI.duration
- The media duration in seconds.width
- The video width in device pixels.height
- The video height in device pixels.audioTrackCount
- The audio track count.videoTrackCount
- The video track count.
-