Add back deprecated MediaSource.prepareSource for ExoPlayerSampleExtractor.

This should be removed after releasing.

PiperOrigin-RevId: 231380393
This commit is contained in:
tonihei 2019-01-29 12:01:33 +00:00 committed by Oliver Woodman
parent 39505452de
commit f74e0eb992

View file

@ -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 {
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 {
* 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.