Class SideloadedTrack

    • Field Detail

      • url

        @NonNull
        public final String url
        The URL or URL template for this track.
      • mimeType

        @Nullable
        public final String mimeType
        The MIME type of the track.
      • intervalMs

        public final long intervalMs
        The interval per-thumbnail for THUMBNAILS tracks. This is optional and not required for subtitle tracks or thumbnail tracks that come with an index such as BIF or WebVTT.
      • gridWidth

        public final long gridWidth
        The grid width as number of thumbnails per row. This is optional and not required for subtitle tracks or thumbnail tracks that come with an index such as BIF or WebVTT.
      • gridHeight

        public final long gridHeight
        The grid height as number of thumbnails per column. This is optional and not required for subtitle tracks or thumbnail tracks that come with an index such as BIF or WebVTT.
      • language

        @Nullable
        public final String language
        Two latter language code for text tracks
      • label

        @Nullable
        public final String label
        The label for text tracks
      • kind

        @Nullable
        public final String kind
        The kind attribute for text tracks
    • Constructor Detail

      • SideloadedTrack

        public SideloadedTrack​(@NonNull
                               SideloadedTrack.Type trackType,
                               @NonNull
                               String url,
                               @Nullable
                               String mimeType,
                               long intervalMs,
                               long gridWidth,
                               long gridHeight,
                               int thumbnailFormat,
                               @Nullable
                               String language,
                               @Nullable
                               String label,
                               @Nullable
                               String kind)
        Parameters:
        trackType - track type
        url - track url
        mimeType - mime type
        intervalMs - The interval per-thumbnail for THUMBNAILS tracks.
        gridWidth - The grid width as number of thumbnails per row.
        gridHeight - The grid height as number of thumbnails per column.
        thumbnailFormat - The thumbnail type for THUMBNAIL tracks.
        language - Two latter language code for text tracks
        label - The label for text tracks
        kind - The kind attribute for text tracks