Class MediaSession.ElementMetadata

Object
org.mozilla.geckoview.MediaSession.ElementMetadata
Enclosing class:
MediaSession

public static class MediaSession.ElementMetadata extends Object
The representation of a media element's metadata.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final 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

    Constructors
    Constructor
    Description
    ElementMetadata(String source, double duration, long width, long height, int audioTrackCount, int videoTrackCount)
    ElementMetadata constructor.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • source

      @Nullable public final String source
      The media source URI.
    • duration

      public final double duration
      The duration of the media in seconds. 0.0 if unknown.
    • width

      public final long width
      The width of the video in device pixels. 0 if unknown.
    • height

      public final long height
      The height of the video in device pixels. 0 if unknown.
    • audioTrackCount

      public final int audioTrackCount
      The number of audio tracks contained in this element.
    • videoTrackCount

      public final int videoTrackCount
      The 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.