Class HlsMultivariantPlaylist.Variant

  • Enclosing class:
    HlsMultivariantPlaylist

    public static final class HlsMultivariantPlaylist.Variant
    extends Object
    A variant (i.e. an #EXT-X-STREAM-INF tag) in a multivariant playlist.
    • Field Detail

      • url

        public final Uri url
        The variant's url.
      • format

        public final Format format
        Format information associated with this variant.
      • videoGroupId

        @Nullable
        public final String videoGroupId
        The video rendition group referenced by this variant, or null.
      • audioGroupId

        @Nullable
        public final String audioGroupId
        The audio rendition group referenced by this variant, or null.
      • subtitleGroupId

        @Nullable
        public final String subtitleGroupId
        The subtitle rendition group referenced by this variant, or null.
      • captionGroupId

        @Nullable
        public final String captionGroupId
        The caption rendition group referenced by this variant, or null.
    • Method Detail

      • createMediaPlaylistVariantUrl

        public static HlsMultivariantPlaylist.Variant createMediaPlaylistVariantUrl​(Uri url)
        Creates a variant for a given media playlist url.
        Parameters:
        url - The media playlist url.
        Returns:
        The variant instance.