Commit f74e0eb9 by tonihei Committed by Oliver Woodman

Add back deprecated MediaSource.prepareSource for ExoPlayerSampleExtractor.

This should be removed after releasing.

PiperOrigin-RevId: 231380393
parent 39505452
...@@ -18,6 +18,7 @@ package com.google.android.exoplayer2.source; ...@@ -18,6 +18,7 @@ package com.google.android.exoplayer2.source;
import android.os.Handler; import android.os.Handler;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.ExoPlayer;
import com.google.android.exoplayer2.Timeline; import com.google.android.exoplayer2.Timeline;
import com.google.android.exoplayer2.upstream.Allocator; import com.google.android.exoplayer2.upstream.Allocator;
import com.google.android.exoplayer2.upstream.TransferListener; import com.google.android.exoplayer2.upstream.TransferListener;
...@@ -237,7 +238,6 @@ public interface MediaSource { ...@@ -237,7 +238,6 @@ public interface MediaSource {
default Object getTag() { default Object getTag() {
return null; return null;
} }
/** /**
* Starts source preparation if not yet started, and adds a listener for timeline and/or manifest * Starts source preparation if not yet started, and adds a listener for timeline and/or manifest
* updates. * updates.
...@@ -256,8 +256,7 @@ public interface MediaSource { ...@@ -256,8 +256,7 @@ public interface MediaSource {
* and other data. * and other data.
*/ */
void prepareSource( void prepareSource(
SourceInfoRefreshListener listener, SourceInfoRefreshListener listener, @Nullable TransferListener mediaTransferListener);
@Nullable TransferListener mediaTransferListener);
/** /**
* Throws any pending error encountered while loading or refreshing source information. * 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