Set ExoPlayer's MediaCodecOperationMode

PiperOrigin-RevId: 288868298
This commit is contained in:
christosts 2020-01-09 11:35:20 +00:00 committed by Oliver Woodman
parent 91d2b8581e
commit f47d06e7b3

View File

@ -48,8 +48,10 @@ import com.google.android.exoplayer2.util.TimedValueQueue;
import com.google.android.exoplayer2.util.TraceUtil;
import com.google.android.exoplayer2.util.Util;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.nio.ByteBuffer;
import java.util.ArrayDeque;
import java.util.ArrayList;
@ -74,6 +76,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
*/
@Documented
@Retention(RetentionPolicy.SOURCE)
@Target({ElementType.TYPE_PARAMETER, ElementType.TYPE_USE})
@IntDef({
OPERATION_MODE_SYNCHRONOUS,
OPERATION_MODE_ASYNCHRONOUS_PLAYBACK_THREAD,