Commit 85b8e1f7 by tonihei Committed by Andrew Lewis

Add back deprecated MediaSource.prepareSource for ExoPlayerSampleExtractor.

This should be removed after releasing.

PiperOrigin-RevId: 231380393
parent a973b6f3
......@@ -18,6 +18,7 @@ package com.google.android.exoplayer2.source;
import android.os.Handler;
import android.support.annotation.Nullable;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.ExoPlayer;
import com.google.android.exoplayer2.Timeline;
import com.google.android.exoplayer2.upstream.Allocator;
import com.google.android.exoplayer2.upstream.TransferListener;
......@@ -226,11 +227,6 @@ public interface MediaSource {
return null;
}
/** @deprecated Will be removed in the next release. */
@Deprecated
void prepareSource(
ExoPlayer player, boolean isTopLevelSource, SourceInfoRefreshListener listener);
/**
* Starts source preparation if not yet started, and adds a listener for timeline and/or manifest
* updates.
......@@ -249,8 +245,7 @@ public interface MediaSource {
* and other data.
*/
void prepareSource(
SourceInfoRefreshListener listener,
@Nullable TransferListener mediaTransferListener);
SourceInfoRefreshListener listener, @Nullable TransferListener mediaTransferListener);
/**
* Throws any pending error encountered while loading or refreshing source information.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment