mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add back deprecated MediaSource.prepareSource for ExoPlayerSampleExtractor.
This should be removed after releasing. PiperOrigin-RevId: 231380393
This commit is contained in:
parent
39505452de
commit
f74e0eb992
1 changed files with 2 additions and 3 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue