@Test public void getTrackGroups_returnsTrackGroups() throws Exception { prepareDownloadHelper(downloadHelper); TrackGroupArray trackGroupArrayPeriod0 = downloadHelper.getTrackGroups( 0); TrackGroupArray trackGroupArrayPeriod1 = downloadHelper.getTrackGroups( 1); assertThat(trackGroupArrayPeriod0).isEqualTo(TRACK_GROUP_ARRAYS[0]); assertThat(trackGroupArrayPeriod1).isEqualTo(TRACK_GROUP_ARRAYS[1]); }
public TrackGroupArray getTrackGroups(int periodIndex) { assertPreparedWithMedia(); return trackGroupArrays[periodIndex]; }
DownloadHelper { public TrackGroupArray getTrackGroups(int periodIndex) { assertPreparedWithMedia(); return trackGroupArrays[periodIndex]; } }
DownloadHelper { public TrackGroupArray getTrackGroups(int periodIndex) { assertPreparedWithMedia(); return trackGroupArrays[periodIndex]; } DownloadHelper(
      String downloadType,
      Uri uri,
      @Nullable String cacheKey,
      @Nullable MediaSource mediaSource,
      DefaultTrackSelector.Parameters trackSelectorParameters,
      RendererCapabilities[] rendererCapabilities); }
DownloadHelper { public TrackGroupArray getTrackGroups(int periodIndex) { assertPreparedWithMedia(); return trackGroupArrays[periodIndex]; } DownloadHelper(
      String downloadType,
      Uri uri,
      @Nullable String cacheKey,
      @Nullable MediaSource mediaSource,
      DefaultTrackSelector.Parameters trackSelectorParameters,
      RendererCapabilities[] rendererCapabilities); static DownloadHelper forProgressive(Uri uri); static DownloadHelper forProgressive(Uri uri, @Nullable String cacheKey); static DownloadHelper forDash(
      Uri uri, DataSource.Factory dataSourceFactory, RenderersFactory renderersFactory); static DownloadHelper forDash(
      Uri uri,
      DataSource.Factory dataSourceFactory,
      RenderersFactory renderersFactory,
      @Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
      DefaultTrackSelector.Parameters trackSelectorParameters); static DownloadHelper forHls(
      Uri uri, DataSource.Factory dataSourceFactory, RenderersFactory renderersFactory); static DownloadHelper forHls(
      Uri uri,
      DataSource.Factory dataSourceFactory,
      RenderersFactory renderersFactory,
      @Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
      DefaultTrackSelector.Parameters trackSelectorParameters); static DownloadHelper forSmoothStreaming(
      Uri uri, DataSource.Factory dataSourceFactory, RenderersFactory renderersFactory); static DownloadHelper forSmoothStreaming(
      Uri uri,
      DataSource.Factory dataSourceFactory,
      RenderersFactory renderersFactory,
      @Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
      DefaultTrackSelector.Parameters trackSelectorParameters); void prepare(Callback callback); void release(); @Nullable Object getManifest(); int getPeriodCount(); TrackGroupArray getTrackGroups(int periodIndex); MappedTrackInfo getMappedTrackInfo(int periodIndex); List<TrackSelection> getTrackSelections(int periodIndex, int rendererIndex); void clearTrackSelections(int periodIndex); void replaceTrackSelections(
      int periodIndex, DefaultTrackSelector.Parameters trackSelectorParameters); void addTrackSelection(
      int periodIndex, DefaultTrackSelector.Parameters trackSelectorParameters); void addAudioLanguagesToSelection(String... languages); void addTextLanguagesToSelection(
      boolean selectUndeterminedTextLanguage, String... languages); void addTrackSelectionForSingleRenderer(
      int periodIndex,
      int rendererIndex,
      DefaultTrackSelector.Parameters trackSelectorParameters,
      List<SelectionOverride> overrides); DownloadRequest getDownloadRequest(@Nullable byte[] data); DownloadRequest getDownloadRequest(String id, @Nullable byte[] data); }
DownloadHelper { public TrackGroupArray getTrackGroups(int periodIndex) { assertPreparedWithMedia(); return trackGroupArrays[periodIndex]; } DownloadHelper(
      String downloadType,
      Uri uri,
      @Nullable String cacheKey,
      @Nullable MediaSource mediaSource,
      DefaultTrackSelector.Parameters trackSelectorParameters,
      RendererCapabilities[] rendererCapabilities); static DownloadHelper forProgressive(Uri uri); static DownloadHelper forProgressive(Uri uri, @Nullable String cacheKey); static DownloadHelper forDash(
      Uri uri, DataSource.Factory dataSourceFactory, RenderersFactory renderersFactory); static DownloadHelper forDash(
      Uri uri,
      DataSource.Factory dataSourceFactory,
      RenderersFactory renderersFactory,
      @Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
      DefaultTrackSelector.Parameters trackSelectorParameters); static DownloadHelper forHls(
      Uri uri, DataSource.Factory dataSourceFactory, RenderersFactory renderersFactory); static DownloadHelper forHls(
      Uri uri,
      DataSource.Factory dataSourceFactory,
      RenderersFactory renderersFactory,
      @Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
      DefaultTrackSelector.Parameters trackSelectorParameters); static DownloadHelper forSmoothStreaming(
      Uri uri, DataSource.Factory dataSourceFactory, RenderersFactory renderersFactory); static DownloadHelper forSmoothStreaming(
      Uri uri,
      DataSource.Factory dataSourceFactory,
      RenderersFactory renderersFactory,
      @Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
      DefaultTrackSelector.Parameters trackSelectorParameters); void prepare(Callback callback); void release(); @Nullable Object getManifest(); int getPeriodCount(); TrackGroupArray getTrackGroups(int periodIndex); MappedTrackInfo getMappedTrackInfo(int periodIndex); List<TrackSelection> getTrackSelections(int periodIndex, int rendererIndex); void clearTrackSelections(int periodIndex); void replaceTrackSelections(
      int periodIndex, DefaultTrackSelector.Parameters trackSelectorParameters); void addTrackSelection(
      int periodIndex, DefaultTrackSelector.Parameters trackSelectorParameters); void addAudioLanguagesToSelection(String... languages); void addTextLanguagesToSelection(
      boolean selectUndeterminedTextLanguage, String... languages); void addTrackSelectionForSingleRenderer(
      int periodIndex,
      int rendererIndex,
      DefaultTrackSelector.Parameters trackSelectorParameters,
      List<SelectionOverride> overrides); DownloadRequest getDownloadRequest(@Nullable byte[] data); DownloadRequest getDownloadRequest(String id, @Nullable byte[] data); static final DefaultTrackSelector.Parameters DEFAULT_TRACK_SELECTOR_PARAMETERS; }