mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Make @HlsMediaSource.MetadataType TYPE_USE
PiperOrigin-RevId: 397717018
This commit is contained in:
parent
0f3a86b89d
commit
8a910fd0aa
2 changed files with 5 additions and 2 deletions
|
|
@ -57,7 +57,9 @@ import com.google.android.exoplayer2.util.MimeTypes;
|
||||||
import com.google.android.exoplayer2.util.Util;
|
import com.google.android.exoplayer2.util.Util;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.Target;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
@ -83,6 +85,7 @@ public final class HlsMediaSource extends BaseMediaSource
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(SOURCE)
|
@Retention(SOURCE)
|
||||||
|
@Target({ElementType.TYPE_USE})
|
||||||
@IntDef({METADATA_TYPE_ID3, METADATA_TYPE_EMSG})
|
@IntDef({METADATA_TYPE_ID3, METADATA_TYPE_EMSG})
|
||||||
public @interface MetadataType {}
|
public @interface MetadataType {}
|
||||||
|
|
||||||
|
|
@ -104,7 +107,7 @@ public final class HlsMediaSource extends BaseMediaSource
|
||||||
private DrmSessionManagerProvider drmSessionManagerProvider;
|
private DrmSessionManagerProvider drmSessionManagerProvider;
|
||||||
private LoadErrorHandlingPolicy loadErrorHandlingPolicy;
|
private LoadErrorHandlingPolicy loadErrorHandlingPolicy;
|
||||||
private boolean allowChunklessPreparation;
|
private boolean allowChunklessPreparation;
|
||||||
@MetadataType private int metadataType;
|
private @MetadataType int metadataType;
|
||||||
private boolean useSessionKeys;
|
private boolean useSessionKeys;
|
||||||
private List<StreamKey> streamKeys;
|
private List<StreamKey> streamKeys;
|
||||||
@Nullable private Object tag;
|
@Nullable private Object tag;
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
||||||
private final LoadErrorHandlingPolicy loadErrorHandlingPolicy;
|
private final LoadErrorHandlingPolicy loadErrorHandlingPolicy;
|
||||||
private final Loader loader;
|
private final Loader loader;
|
||||||
private final MediaSourceEventListener.EventDispatcher mediaSourceEventDispatcher;
|
private final MediaSourceEventListener.EventDispatcher mediaSourceEventDispatcher;
|
||||||
@HlsMediaSource.MetadataType private final int metadataType;
|
private final @HlsMediaSource.MetadataType int metadataType;
|
||||||
private final HlsChunkSource.HlsChunkHolder nextChunkHolder;
|
private final HlsChunkSource.HlsChunkHolder nextChunkHolder;
|
||||||
private final ArrayList<HlsMediaChunk> mediaChunks;
|
private final ArrayList<HlsMediaChunk> mediaChunks;
|
||||||
private final List<HlsMediaChunk> readOnlyMediaChunks;
|
private final List<HlsMediaChunk> readOnlyMediaChunks;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue