public final class

HlsMasterPlaylist

extends HlsMultivariantPlaylist

 java.lang.Object

androidx.media3.exoplayer.hls.playlist.HlsPlaylist

androidx.media3.exoplayer.hls.playlist.HlsMultivariantPlaylist

↳androidx.media3.exoplayer.hls.playlist.HlsMasterPlaylist

Summary

Fields
from HlsMultivariantPlaylistaudios, closedCaptions, EMPTY, GROUP_INDEX_AUDIO, GROUP_INDEX_SUBTITLE, GROUP_INDEX_VARIANT, mediaPlaylistUrls, muxedAudioFormat, muxedCaptionFormats, sessionKeyDrmInitData, subtitles, variableDefinitions, variants, videos
from HlsPlaylistbaseUri, hasIndependentSegments, tags
Constructors
publicHlsMasterPlaylist(java.lang.String baseUri, java.util.List<java.lang.String> tags, java.util.List<HlsMultivariantPlaylist.Variant> variants, java.util.List<HlsMultivariantPlaylist.Rendition> videos, java.util.List<HlsMultivariantPlaylist.Rendition> audios, java.util.List<HlsMultivariantPlaylist.Rendition> subtitles, java.util.List<HlsMultivariantPlaylist.Rendition> closedCaptions, Format muxedAudioFormat, java.util.List<Format> muxedCaptionFormats, boolean hasIndependentSegments, java.util.Map<java.lang.String, java.lang.String> variableDefinitions, java.util.List<DrmInitData> sessionKeyDrmInitData)

Creates an HLS multivariant playlist.

Methods
from HlsMultivariantPlaylistcopy, createSingleVariantMultivariantPlaylist
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public HlsMasterPlaylist(java.lang.String baseUri, java.util.List<java.lang.String> tags, java.util.List<HlsMultivariantPlaylist.Variant> variants, java.util.List<HlsMultivariantPlaylist.Rendition> videos, java.util.List<HlsMultivariantPlaylist.Rendition> audios, java.util.List<HlsMultivariantPlaylist.Rendition> subtitles, java.util.List<HlsMultivariantPlaylist.Rendition> closedCaptions, Format muxedAudioFormat, java.util.List<Format> muxedCaptionFormats, boolean hasIndependentSegments, java.util.Map<java.lang.String, java.lang.String> variableDefinitions, java.util.List<DrmInitData> sessionKeyDrmInitData)

Deprecated: Use HlsMultivariantPlaylist.HlsMultivariantPlaylist(String, List, List, List, List, List, List, Format, List, boolean, Map, List) instead.

Creates an HLS multivariant playlist.

Source

/*
 * Copyright (C) 2016 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package androidx.media3.exoplayer.hls.playlist;

import androidx.annotation.Nullable;
import androidx.media3.common.DrmInitData;
import androidx.media3.common.Format;
import androidx.media3.common.util.UnstableApi;
import java.util.List;
import java.util.Map;

/** @deprecated Use {@link HlsMultivariantPlaylist} instead. */
@UnstableApi
@Deprecated
public final class HlsMasterPlaylist extends HlsMultivariantPlaylist {

  /**
   * Creates an HLS multivariant playlist.
   *
   * @deprecated Use {@link HlsMultivariantPlaylist#HlsMultivariantPlaylist} instead.
   */
  @Deprecated
  public HlsMasterPlaylist(
      String baseUri,
      List<String> tags,
      List<Variant> variants,
      List<Rendition> videos,
      List<Rendition> audios,
      List<Rendition> subtitles,
      List<Rendition> closedCaptions,
      @Nullable Format muxedAudioFormat,
      @Nullable List<Format> muxedCaptionFormats,
      boolean hasIndependentSegments,
      Map<String, String> variableDefinitions,
      List<DrmInitData> sessionKeyDrmInitData) {
    super(
        baseUri,
        tags,
        variants,
        videos,
        audios,
        subtitles,
        closedCaptions,
        muxedAudioFormat,
        muxedCaptionFormats,
        hasIndependentSegments,
        variableDefinitions,
        sessionKeyDrmInitData);
  }
}