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
FieldsModifier and TypeFieldDescriptionfinal intThe number of audio tracks contained in this element.final doubleThe duration of the media in seconds.final longThe height of the video in device pixels.final StringThe media source URI.final intThe number of video tracks contained in this element.final longThe width of the video in device pixels. -
Constructor Summary
ConstructorsConstructorDescriptionElementMetadata(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.
-