Reformat some javadoc
This commit is contained in:
parent
061aac7ab2
commit
38717ce969
@ -260,7 +260,9 @@ public class PlayerActivity extends AppCompatActivity
|
|||||||
setContentView(R.layout.player_activity);
|
setContentView(R.layout.player_activity);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return Whether initialization was successful. */
|
/**
|
||||||
|
* @return Whether initialization was successful.
|
||||||
|
*/
|
||||||
protected boolean initializePlayer() {
|
protected boolean initializePlayer() {
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
|
@ -31,7 +31,9 @@ import androidx.media3.common.util.Assertions;
|
|||||||
|
|
||||||
private final TrackGroup trackGroup;
|
private final TrackGroup trackGroup;
|
||||||
|
|
||||||
/** @param trackGroup The {@link TrackGroup} from which the first track will only be selected. */
|
/**
|
||||||
|
* @param trackGroup The {@link TrackGroup} from which the first track will only be selected.
|
||||||
|
*/
|
||||||
public CastTrackSelection(TrackGroup trackGroup) {
|
public CastTrackSelection(TrackGroup trackGroup) {
|
||||||
this.trackGroup = trackGroup;
|
this.trackGroup = trackGroup;
|
||||||
}
|
}
|
||||||
|
@ -97,14 +97,18 @@ public final class AdOverlayInfo {
|
|||||||
/** An optional, detailed reason that the overlay view is needed. */
|
/** An optional, detailed reason that the overlay view is needed. */
|
||||||
@Nullable public final String reasonDetail;
|
@Nullable public final String reasonDetail;
|
||||||
|
|
||||||
/** @deprecated Use {@link Builder} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Builder} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public AdOverlayInfo(View view, @Purpose int purpose) {
|
public AdOverlayInfo(View view, @Purpose int purpose) {
|
||||||
this(view, purpose, /* detailedReason= */ null);
|
this(view, purpose, /* detailedReason= */ null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Builder} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Builder} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public AdOverlayInfo(View view, @Purpose int purpose, @Nullable String detailedReason) {
|
public AdOverlayInfo(View view, @Purpose int purpose, @Nullable String detailedReason) {
|
||||||
|
@ -170,11 +170,17 @@ public final class C {
|
|||||||
@IntDef({CRYPTO_MODE_UNENCRYPTED, CRYPTO_MODE_AES_CTR, CRYPTO_MODE_AES_CBC})
|
@IntDef({CRYPTO_MODE_UNENCRYPTED, CRYPTO_MODE_AES_CTR, CRYPTO_MODE_AES_CBC})
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
public @interface CryptoMode {}
|
public @interface CryptoMode {}
|
||||||
/** @see MediaCodec#CRYPTO_MODE_UNENCRYPTED */
|
/**
|
||||||
|
* @see MediaCodec#CRYPTO_MODE_UNENCRYPTED
|
||||||
|
*/
|
||||||
@UnstableApi public static final int CRYPTO_MODE_UNENCRYPTED = MediaCodec.CRYPTO_MODE_UNENCRYPTED;
|
@UnstableApi public static final int CRYPTO_MODE_UNENCRYPTED = MediaCodec.CRYPTO_MODE_UNENCRYPTED;
|
||||||
/** @see MediaCodec#CRYPTO_MODE_AES_CTR */
|
/**
|
||||||
|
* @see MediaCodec#CRYPTO_MODE_AES_CTR
|
||||||
|
*/
|
||||||
@UnstableApi public static final int CRYPTO_MODE_AES_CTR = MediaCodec.CRYPTO_MODE_AES_CTR;
|
@UnstableApi public static final int CRYPTO_MODE_AES_CTR = MediaCodec.CRYPTO_MODE_AES_CTR;
|
||||||
/** @see MediaCodec#CRYPTO_MODE_AES_CBC */
|
/**
|
||||||
|
* @see MediaCodec#CRYPTO_MODE_AES_CBC
|
||||||
|
*/
|
||||||
@UnstableApi public static final int CRYPTO_MODE_AES_CBC = MediaCodec.CRYPTO_MODE_AES_CBC;
|
@UnstableApi public static final int CRYPTO_MODE_AES_CBC = MediaCodec.CRYPTO_MODE_AES_CBC;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -243,11 +249,17 @@ public final class C {
|
|||||||
ENCODING_PCM_FLOAT
|
ENCODING_PCM_FLOAT
|
||||||
})
|
})
|
||||||
public @interface PcmEncoding {}
|
public @interface PcmEncoding {}
|
||||||
/** @see AudioFormat#ENCODING_INVALID */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_INVALID
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_INVALID = AudioFormat.ENCODING_INVALID;
|
@UnstableApi public static final int ENCODING_INVALID = AudioFormat.ENCODING_INVALID;
|
||||||
/** @see AudioFormat#ENCODING_PCM_8BIT */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_PCM_8BIT
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_PCM_8BIT = AudioFormat.ENCODING_PCM_8BIT;
|
@UnstableApi public static final int ENCODING_PCM_8BIT = AudioFormat.ENCODING_PCM_8BIT;
|
||||||
/** @see AudioFormat#ENCODING_PCM_16BIT */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_PCM_16BIT
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_PCM_16BIT = AudioFormat.ENCODING_PCM_16BIT;
|
@UnstableApi public static final int ENCODING_PCM_16BIT = AudioFormat.ENCODING_PCM_16BIT;
|
||||||
/** Like {@link #ENCODING_PCM_16BIT}, but with the bytes in big endian order. */
|
/** Like {@link #ENCODING_PCM_16BIT}, but with the bytes in big endian order. */
|
||||||
@UnstableApi public static final int ENCODING_PCM_16BIT_BIG_ENDIAN = 0x10000000;
|
@UnstableApi public static final int ENCODING_PCM_16BIT_BIG_ENDIAN = 0x10000000;
|
||||||
@ -255,35 +267,63 @@ public final class C {
|
|||||||
@UnstableApi public static final int ENCODING_PCM_24BIT = 0x20000000;
|
@UnstableApi public static final int ENCODING_PCM_24BIT = 0x20000000;
|
||||||
/** PCM encoding with 32 bits per sample. */
|
/** PCM encoding with 32 bits per sample. */
|
||||||
@UnstableApi public static final int ENCODING_PCM_32BIT = 0x30000000;
|
@UnstableApi public static final int ENCODING_PCM_32BIT = 0x30000000;
|
||||||
/** @see AudioFormat#ENCODING_PCM_FLOAT */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_PCM_FLOAT
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_PCM_FLOAT = AudioFormat.ENCODING_PCM_FLOAT;
|
@UnstableApi public static final int ENCODING_PCM_FLOAT = AudioFormat.ENCODING_PCM_FLOAT;
|
||||||
/** @see AudioFormat#ENCODING_MP3 */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_MP3
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_MP3 = AudioFormat.ENCODING_MP3;
|
@UnstableApi public static final int ENCODING_MP3 = AudioFormat.ENCODING_MP3;
|
||||||
/** @see AudioFormat#ENCODING_AAC_LC */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_AAC_LC
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_AAC_LC = AudioFormat.ENCODING_AAC_LC;
|
@UnstableApi public static final int ENCODING_AAC_LC = AudioFormat.ENCODING_AAC_LC;
|
||||||
/** @see AudioFormat#ENCODING_AAC_HE_V1 */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_AAC_HE_V1
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_AAC_HE_V1 = AudioFormat.ENCODING_AAC_HE_V1;
|
@UnstableApi public static final int ENCODING_AAC_HE_V1 = AudioFormat.ENCODING_AAC_HE_V1;
|
||||||
/** @see AudioFormat#ENCODING_AAC_HE_V2 */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_AAC_HE_V2
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_AAC_HE_V2 = AudioFormat.ENCODING_AAC_HE_V2;
|
@UnstableApi public static final int ENCODING_AAC_HE_V2 = AudioFormat.ENCODING_AAC_HE_V2;
|
||||||
/** @see AudioFormat#ENCODING_AAC_XHE */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_AAC_XHE
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_AAC_XHE = AudioFormat.ENCODING_AAC_XHE;
|
@UnstableApi public static final int ENCODING_AAC_XHE = AudioFormat.ENCODING_AAC_XHE;
|
||||||
/** @see AudioFormat#ENCODING_AAC_ELD */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_AAC_ELD
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_AAC_ELD = AudioFormat.ENCODING_AAC_ELD;
|
@UnstableApi public static final int ENCODING_AAC_ELD = AudioFormat.ENCODING_AAC_ELD;
|
||||||
/** AAC Error Resilient Bit-Sliced Arithmetic Coding. */
|
/** AAC Error Resilient Bit-Sliced Arithmetic Coding. */
|
||||||
@UnstableApi public static final int ENCODING_AAC_ER_BSAC = 0x40000000;
|
@UnstableApi public static final int ENCODING_AAC_ER_BSAC = 0x40000000;
|
||||||
/** @see AudioFormat#ENCODING_AC3 */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_AC3
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_AC3 = AudioFormat.ENCODING_AC3;
|
@UnstableApi public static final int ENCODING_AC3 = AudioFormat.ENCODING_AC3;
|
||||||
/** @see AudioFormat#ENCODING_E_AC3 */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_E_AC3
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_E_AC3 = AudioFormat.ENCODING_E_AC3;
|
@UnstableApi public static final int ENCODING_E_AC3 = AudioFormat.ENCODING_E_AC3;
|
||||||
/** @see AudioFormat#ENCODING_E_AC3_JOC */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_E_AC3_JOC
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_E_AC3_JOC = AudioFormat.ENCODING_E_AC3_JOC;
|
@UnstableApi public static final int ENCODING_E_AC3_JOC = AudioFormat.ENCODING_E_AC3_JOC;
|
||||||
/** @see AudioFormat#ENCODING_AC4 */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_AC4
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_AC4 = AudioFormat.ENCODING_AC4;
|
@UnstableApi public static final int ENCODING_AC4 = AudioFormat.ENCODING_AC4;
|
||||||
/** @see AudioFormat#ENCODING_DTS */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_DTS
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_DTS = AudioFormat.ENCODING_DTS;
|
@UnstableApi public static final int ENCODING_DTS = AudioFormat.ENCODING_DTS;
|
||||||
/** @see AudioFormat#ENCODING_DTS_HD */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_DTS_HD
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_DTS_HD = AudioFormat.ENCODING_DTS_HD;
|
@UnstableApi public static final int ENCODING_DTS_HD = AudioFormat.ENCODING_DTS_HD;
|
||||||
/** @see AudioFormat#ENCODING_DOLBY_TRUEHD */
|
/**
|
||||||
|
* @see AudioFormat#ENCODING_DOLBY_TRUEHD
|
||||||
|
*/
|
||||||
@UnstableApi public static final int ENCODING_DOLBY_TRUEHD = AudioFormat.ENCODING_DOLBY_TRUEHD;
|
@UnstableApi public static final int ENCODING_DOLBY_TRUEHD = AudioFormat.ENCODING_DOLBY_TRUEHD;
|
||||||
|
|
||||||
/** Represents the behavior affecting whether spatialization will be used. */
|
/** Represents the behavior affecting whether spatialization will be used. */
|
||||||
@ -324,19 +364,33 @@ public final class C {
|
|||||||
STREAM_TYPE_DEFAULT
|
STREAM_TYPE_DEFAULT
|
||||||
})
|
})
|
||||||
public @interface StreamType {}
|
public @interface StreamType {}
|
||||||
/** @see AudioManager#STREAM_ALARM */
|
/**
|
||||||
|
* @see AudioManager#STREAM_ALARM
|
||||||
|
*/
|
||||||
@UnstableApi public static final int STREAM_TYPE_ALARM = AudioManager.STREAM_ALARM;
|
@UnstableApi public static final int STREAM_TYPE_ALARM = AudioManager.STREAM_ALARM;
|
||||||
/** @see AudioManager#STREAM_DTMF */
|
/**
|
||||||
|
* @see AudioManager#STREAM_DTMF
|
||||||
|
*/
|
||||||
@UnstableApi public static final int STREAM_TYPE_DTMF = AudioManager.STREAM_DTMF;
|
@UnstableApi public static final int STREAM_TYPE_DTMF = AudioManager.STREAM_DTMF;
|
||||||
/** @see AudioManager#STREAM_MUSIC */
|
/**
|
||||||
|
* @see AudioManager#STREAM_MUSIC
|
||||||
|
*/
|
||||||
@UnstableApi public static final int STREAM_TYPE_MUSIC = AudioManager.STREAM_MUSIC;
|
@UnstableApi public static final int STREAM_TYPE_MUSIC = AudioManager.STREAM_MUSIC;
|
||||||
/** @see AudioManager#STREAM_NOTIFICATION */
|
/**
|
||||||
|
* @see AudioManager#STREAM_NOTIFICATION
|
||||||
|
*/
|
||||||
@UnstableApi public static final int STREAM_TYPE_NOTIFICATION = AudioManager.STREAM_NOTIFICATION;
|
@UnstableApi public static final int STREAM_TYPE_NOTIFICATION = AudioManager.STREAM_NOTIFICATION;
|
||||||
/** @see AudioManager#STREAM_RING */
|
/**
|
||||||
|
* @see AudioManager#STREAM_RING
|
||||||
|
*/
|
||||||
@UnstableApi public static final int STREAM_TYPE_RING = AudioManager.STREAM_RING;
|
@UnstableApi public static final int STREAM_TYPE_RING = AudioManager.STREAM_RING;
|
||||||
/** @see AudioManager#STREAM_SYSTEM */
|
/**
|
||||||
|
* @see AudioManager#STREAM_SYSTEM
|
||||||
|
*/
|
||||||
@UnstableApi public static final int STREAM_TYPE_SYSTEM = AudioManager.STREAM_SYSTEM;
|
@UnstableApi public static final int STREAM_TYPE_SYSTEM = AudioManager.STREAM_SYSTEM;
|
||||||
/** @see AudioManager#STREAM_VOICE_CALL */
|
/**
|
||||||
|
* @see AudioManager#STREAM_VOICE_CALL
|
||||||
|
*/
|
||||||
@UnstableApi public static final int STREAM_TYPE_VOICE_CALL = AudioManager.STREAM_VOICE_CALL;
|
@UnstableApi public static final int STREAM_TYPE_VOICE_CALL = AudioManager.STREAM_VOICE_CALL;
|
||||||
/** The default stream type used by audio renderers. Equal to {@link #STREAM_TYPE_MUSIC}. */
|
/** The default stream type used by audio renderers. Equal to {@link #STREAM_TYPE_MUSIC}. */
|
||||||
@UnstableApi public static final int STREAM_TYPE_DEFAULT = STREAM_TYPE_MUSIC;
|
@UnstableApi public static final int STREAM_TYPE_DEFAULT = STREAM_TYPE_MUSIC;
|
||||||
@ -359,16 +413,26 @@ public final class C {
|
|||||||
CONTENT_TYPE_UNKNOWN
|
CONTENT_TYPE_UNKNOWN
|
||||||
})
|
})
|
||||||
public @interface AudioContentType {}
|
public @interface AudioContentType {}
|
||||||
/** @see android.media.AudioAttributes#CONTENT_TYPE_MOVIE */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#CONTENT_TYPE_MOVIE
|
||||||
|
*/
|
||||||
public static final int CONTENT_TYPE_MOVIE = android.media.AudioAttributes.CONTENT_TYPE_MOVIE;
|
public static final int CONTENT_TYPE_MOVIE = android.media.AudioAttributes.CONTENT_TYPE_MOVIE;
|
||||||
/** @see android.media.AudioAttributes#CONTENT_TYPE_MUSIC */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#CONTENT_TYPE_MUSIC
|
||||||
|
*/
|
||||||
public static final int CONTENT_TYPE_MUSIC = android.media.AudioAttributes.CONTENT_TYPE_MUSIC;
|
public static final int CONTENT_TYPE_MUSIC = android.media.AudioAttributes.CONTENT_TYPE_MUSIC;
|
||||||
/** @see android.media.AudioAttributes#CONTENT_TYPE_SONIFICATION */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#CONTENT_TYPE_SONIFICATION
|
||||||
|
*/
|
||||||
public static final int CONTENT_TYPE_SONIFICATION =
|
public static final int CONTENT_TYPE_SONIFICATION =
|
||||||
android.media.AudioAttributes.CONTENT_TYPE_SONIFICATION;
|
android.media.AudioAttributes.CONTENT_TYPE_SONIFICATION;
|
||||||
/** @see android.media.AudioAttributes#CONTENT_TYPE_SPEECH */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#CONTENT_TYPE_SPEECH
|
||||||
|
*/
|
||||||
public static final int CONTENT_TYPE_SPEECH = android.media.AudioAttributes.CONTENT_TYPE_SPEECH;
|
public static final int CONTENT_TYPE_SPEECH = android.media.AudioAttributes.CONTENT_TYPE_SPEECH;
|
||||||
/** @see android.media.AudioAttributes#CONTENT_TYPE_UNKNOWN */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#CONTENT_TYPE_UNKNOWN
|
||||||
|
*/
|
||||||
public static final int CONTENT_TYPE_UNKNOWN = android.media.AudioAttributes.CONTENT_TYPE_UNKNOWN;
|
public static final int CONTENT_TYPE_UNKNOWN = android.media.AudioAttributes.CONTENT_TYPE_UNKNOWN;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -386,7 +450,9 @@ public final class C {
|
|||||||
flag = true,
|
flag = true,
|
||||||
value = {FLAG_AUDIBILITY_ENFORCED})
|
value = {FLAG_AUDIBILITY_ENFORCED})
|
||||||
public @interface AudioFlags {}
|
public @interface AudioFlags {}
|
||||||
/** @see android.media.AudioAttributes#FLAG_AUDIBILITY_ENFORCED */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#FLAG_AUDIBILITY_ENFORCED
|
||||||
|
*/
|
||||||
public static final int FLAG_AUDIBILITY_ENFORCED =
|
public static final int FLAG_AUDIBILITY_ENFORCED =
|
||||||
android.media.AudioAttributes.FLAG_AUDIBILITY_ENFORCED;
|
android.media.AudioAttributes.FLAG_AUDIBILITY_ENFORCED;
|
||||||
|
|
||||||
@ -424,46 +490,78 @@ public final class C {
|
|||||||
USAGE_VOICE_COMMUNICATION_SIGNALLING
|
USAGE_VOICE_COMMUNICATION_SIGNALLING
|
||||||
})
|
})
|
||||||
public @interface AudioUsage {}
|
public @interface AudioUsage {}
|
||||||
/** @see android.media.AudioAttributes#USAGE_ALARM */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_ALARM
|
||||||
|
*/
|
||||||
public static final int USAGE_ALARM = android.media.AudioAttributes.USAGE_ALARM;
|
public static final int USAGE_ALARM = android.media.AudioAttributes.USAGE_ALARM;
|
||||||
/** @see android.media.AudioAttributes#USAGE_ASSISTANCE_ACCESSIBILITY */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_ASSISTANCE_ACCESSIBILITY
|
||||||
|
*/
|
||||||
public static final int USAGE_ASSISTANCE_ACCESSIBILITY =
|
public static final int USAGE_ASSISTANCE_ACCESSIBILITY =
|
||||||
android.media.AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY;
|
android.media.AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY;
|
||||||
/** @see android.media.AudioAttributes#USAGE_ASSISTANCE_NAVIGATION_GUIDANCE */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_ASSISTANCE_NAVIGATION_GUIDANCE
|
||||||
|
*/
|
||||||
public static final int USAGE_ASSISTANCE_NAVIGATION_GUIDANCE =
|
public static final int USAGE_ASSISTANCE_NAVIGATION_GUIDANCE =
|
||||||
android.media.AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE;
|
android.media.AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE;
|
||||||
/** @see android.media.AudioAttributes#USAGE_ASSISTANCE_SONIFICATION */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_ASSISTANCE_SONIFICATION
|
||||||
|
*/
|
||||||
public static final int USAGE_ASSISTANCE_SONIFICATION =
|
public static final int USAGE_ASSISTANCE_SONIFICATION =
|
||||||
android.media.AudioAttributes.USAGE_ASSISTANCE_SONIFICATION;
|
android.media.AudioAttributes.USAGE_ASSISTANCE_SONIFICATION;
|
||||||
/** @see android.media.AudioAttributes#USAGE_ASSISTANT */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_ASSISTANT
|
||||||
|
*/
|
||||||
public static final int USAGE_ASSISTANT = android.media.AudioAttributes.USAGE_ASSISTANT;
|
public static final int USAGE_ASSISTANT = android.media.AudioAttributes.USAGE_ASSISTANT;
|
||||||
/** @see android.media.AudioAttributes#USAGE_GAME */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_GAME
|
||||||
|
*/
|
||||||
public static final int USAGE_GAME = android.media.AudioAttributes.USAGE_GAME;
|
public static final int USAGE_GAME = android.media.AudioAttributes.USAGE_GAME;
|
||||||
/** @see android.media.AudioAttributes#USAGE_MEDIA */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_MEDIA
|
||||||
|
*/
|
||||||
public static final int USAGE_MEDIA = android.media.AudioAttributes.USAGE_MEDIA;
|
public static final int USAGE_MEDIA = android.media.AudioAttributes.USAGE_MEDIA;
|
||||||
/** @see android.media.AudioAttributes#USAGE_NOTIFICATION */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_NOTIFICATION
|
||||||
|
*/
|
||||||
public static final int USAGE_NOTIFICATION = android.media.AudioAttributes.USAGE_NOTIFICATION;
|
public static final int USAGE_NOTIFICATION = android.media.AudioAttributes.USAGE_NOTIFICATION;
|
||||||
/** @see android.media.AudioAttributes#USAGE_NOTIFICATION_COMMUNICATION_DELAYED */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_NOTIFICATION_COMMUNICATION_DELAYED
|
||||||
|
*/
|
||||||
public static final int USAGE_NOTIFICATION_COMMUNICATION_DELAYED =
|
public static final int USAGE_NOTIFICATION_COMMUNICATION_DELAYED =
|
||||||
android.media.AudioAttributes.USAGE_NOTIFICATION_COMMUNICATION_DELAYED;
|
android.media.AudioAttributes.USAGE_NOTIFICATION_COMMUNICATION_DELAYED;
|
||||||
/** @see android.media.AudioAttributes#USAGE_NOTIFICATION_COMMUNICATION_INSTANT */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_NOTIFICATION_COMMUNICATION_INSTANT
|
||||||
|
*/
|
||||||
public static final int USAGE_NOTIFICATION_COMMUNICATION_INSTANT =
|
public static final int USAGE_NOTIFICATION_COMMUNICATION_INSTANT =
|
||||||
android.media.AudioAttributes.USAGE_NOTIFICATION_COMMUNICATION_INSTANT;
|
android.media.AudioAttributes.USAGE_NOTIFICATION_COMMUNICATION_INSTANT;
|
||||||
/** @see android.media.AudioAttributes#USAGE_NOTIFICATION_COMMUNICATION_REQUEST */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_NOTIFICATION_COMMUNICATION_REQUEST
|
||||||
|
*/
|
||||||
public static final int USAGE_NOTIFICATION_COMMUNICATION_REQUEST =
|
public static final int USAGE_NOTIFICATION_COMMUNICATION_REQUEST =
|
||||||
android.media.AudioAttributes.USAGE_NOTIFICATION_COMMUNICATION_REQUEST;
|
android.media.AudioAttributes.USAGE_NOTIFICATION_COMMUNICATION_REQUEST;
|
||||||
/** @see android.media.AudioAttributes#USAGE_NOTIFICATION_EVENT */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_NOTIFICATION_EVENT
|
||||||
|
*/
|
||||||
public static final int USAGE_NOTIFICATION_EVENT =
|
public static final int USAGE_NOTIFICATION_EVENT =
|
||||||
android.media.AudioAttributes.USAGE_NOTIFICATION_EVENT;
|
android.media.AudioAttributes.USAGE_NOTIFICATION_EVENT;
|
||||||
/** @see android.media.AudioAttributes#USAGE_NOTIFICATION_RINGTONE */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_NOTIFICATION_RINGTONE
|
||||||
|
*/
|
||||||
public static final int USAGE_NOTIFICATION_RINGTONE =
|
public static final int USAGE_NOTIFICATION_RINGTONE =
|
||||||
android.media.AudioAttributes.USAGE_NOTIFICATION_RINGTONE;
|
android.media.AudioAttributes.USAGE_NOTIFICATION_RINGTONE;
|
||||||
/** @see android.media.AudioAttributes#USAGE_UNKNOWN */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_UNKNOWN
|
||||||
|
*/
|
||||||
public static final int USAGE_UNKNOWN = android.media.AudioAttributes.USAGE_UNKNOWN;
|
public static final int USAGE_UNKNOWN = android.media.AudioAttributes.USAGE_UNKNOWN;
|
||||||
/** @see android.media.AudioAttributes#USAGE_VOICE_COMMUNICATION */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_VOICE_COMMUNICATION
|
||||||
|
*/
|
||||||
public static final int USAGE_VOICE_COMMUNICATION =
|
public static final int USAGE_VOICE_COMMUNICATION =
|
||||||
android.media.AudioAttributes.USAGE_VOICE_COMMUNICATION;
|
android.media.AudioAttributes.USAGE_VOICE_COMMUNICATION;
|
||||||
/** @see android.media.AudioAttributes#USAGE_VOICE_COMMUNICATION_SIGNALLING */
|
/**
|
||||||
|
* @see android.media.AudioAttributes#USAGE_VOICE_COMMUNICATION_SIGNALLING
|
||||||
|
*/
|
||||||
public static final int USAGE_VOICE_COMMUNICATION_SIGNALLING =
|
public static final int USAGE_VOICE_COMMUNICATION_SIGNALLING =
|
||||||
android.media.AudioAttributes.USAGE_VOICE_COMMUNICATION_SIGNALLING;
|
android.media.AudioAttributes.USAGE_VOICE_COMMUNICATION_SIGNALLING;
|
||||||
|
|
||||||
@ -901,11 +999,17 @@ public final class C {
|
|||||||
@Target(TYPE_USE)
|
@Target(TYPE_USE)
|
||||||
@IntDef({Format.NO_VALUE, COLOR_SPACE_BT709, COLOR_SPACE_BT601, COLOR_SPACE_BT2020})
|
@IntDef({Format.NO_VALUE, COLOR_SPACE_BT709, COLOR_SPACE_BT601, COLOR_SPACE_BT2020})
|
||||||
public @interface ColorSpace {}
|
public @interface ColorSpace {}
|
||||||
/** @see MediaFormat#COLOR_STANDARD_BT709 */
|
/**
|
||||||
|
* @see MediaFormat#COLOR_STANDARD_BT709
|
||||||
|
*/
|
||||||
@UnstableApi public static final int COLOR_SPACE_BT709 = MediaFormat.COLOR_STANDARD_BT709;
|
@UnstableApi public static final int COLOR_SPACE_BT709 = MediaFormat.COLOR_STANDARD_BT709;
|
||||||
/** @see MediaFormat#COLOR_STANDARD_BT601_PAL */
|
/**
|
||||||
|
* @see MediaFormat#COLOR_STANDARD_BT601_PAL
|
||||||
|
*/
|
||||||
@UnstableApi public static final int COLOR_SPACE_BT601 = MediaFormat.COLOR_STANDARD_BT601_PAL;
|
@UnstableApi public static final int COLOR_SPACE_BT601 = MediaFormat.COLOR_STANDARD_BT601_PAL;
|
||||||
/** @see MediaFormat#COLOR_STANDARD_BT2020 */
|
/**
|
||||||
|
* @see MediaFormat#COLOR_STANDARD_BT2020
|
||||||
|
*/
|
||||||
@UnstableApi public static final int COLOR_SPACE_BT2020 = MediaFormat.COLOR_STANDARD_BT2020;
|
@UnstableApi public static final int COLOR_SPACE_BT2020 = MediaFormat.COLOR_STANDARD_BT2020;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -918,11 +1022,17 @@ public final class C {
|
|||||||
@Target(TYPE_USE)
|
@Target(TYPE_USE)
|
||||||
@IntDef({Format.NO_VALUE, COLOR_TRANSFER_SDR, COLOR_TRANSFER_ST2084, COLOR_TRANSFER_HLG})
|
@IntDef({Format.NO_VALUE, COLOR_TRANSFER_SDR, COLOR_TRANSFER_ST2084, COLOR_TRANSFER_HLG})
|
||||||
public @interface ColorTransfer {}
|
public @interface ColorTransfer {}
|
||||||
/** @see MediaFormat#COLOR_TRANSFER_SDR_VIDEO */
|
/**
|
||||||
|
* @see MediaFormat#COLOR_TRANSFER_SDR_VIDEO
|
||||||
|
*/
|
||||||
@UnstableApi public static final int COLOR_TRANSFER_SDR = MediaFormat.COLOR_TRANSFER_SDR_VIDEO;
|
@UnstableApi public static final int COLOR_TRANSFER_SDR = MediaFormat.COLOR_TRANSFER_SDR_VIDEO;
|
||||||
/** @see MediaFormat#COLOR_TRANSFER_ST2084 */
|
/**
|
||||||
|
* @see MediaFormat#COLOR_TRANSFER_ST2084
|
||||||
|
*/
|
||||||
@UnstableApi public static final int COLOR_TRANSFER_ST2084 = MediaFormat.COLOR_TRANSFER_ST2084;
|
@UnstableApi public static final int COLOR_TRANSFER_ST2084 = MediaFormat.COLOR_TRANSFER_ST2084;
|
||||||
/** @see MediaFormat#COLOR_TRANSFER_HLG */
|
/**
|
||||||
|
* @see MediaFormat#COLOR_TRANSFER_HLG
|
||||||
|
*/
|
||||||
@UnstableApi public static final int COLOR_TRANSFER_HLG = MediaFormat.COLOR_TRANSFER_HLG;
|
@UnstableApi public static final int COLOR_TRANSFER_HLG = MediaFormat.COLOR_TRANSFER_HLG;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -935,9 +1045,13 @@ public final class C {
|
|||||||
@Target(TYPE_USE)
|
@Target(TYPE_USE)
|
||||||
@IntDef({Format.NO_VALUE, COLOR_RANGE_LIMITED, COLOR_RANGE_FULL})
|
@IntDef({Format.NO_VALUE, COLOR_RANGE_LIMITED, COLOR_RANGE_FULL})
|
||||||
public @interface ColorRange {}
|
public @interface ColorRange {}
|
||||||
/** @see MediaFormat#COLOR_RANGE_LIMITED */
|
/**
|
||||||
|
* @see MediaFormat#COLOR_RANGE_LIMITED
|
||||||
|
*/
|
||||||
@UnstableApi public static final int COLOR_RANGE_LIMITED = MediaFormat.COLOR_RANGE_LIMITED;
|
@UnstableApi public static final int COLOR_RANGE_LIMITED = MediaFormat.COLOR_RANGE_LIMITED;
|
||||||
/** @see MediaFormat#COLOR_RANGE_FULL */
|
/**
|
||||||
|
* @see MediaFormat#COLOR_RANGE_FULL
|
||||||
|
*/
|
||||||
@UnstableApi public static final int COLOR_RANGE_FULL = MediaFormat.COLOR_RANGE_FULL;
|
@UnstableApi public static final int COLOR_RANGE_FULL = MediaFormat.COLOR_RANGE_FULL;
|
||||||
|
|
||||||
/** Video projection types. */
|
/** Video projection types. */
|
||||||
@ -1203,7 +1317,9 @@ public final class C {
|
|||||||
*/
|
*/
|
||||||
@UnstableApi public static final int FORMAT_UNSUPPORTED_TYPE = 0b000;
|
@UnstableApi public static final int FORMAT_UNSUPPORTED_TYPE = 0b000;
|
||||||
|
|
||||||
/** @deprecated Use {@link Util#usToMs(long)}. */
|
/**
|
||||||
|
* @deprecated Use {@link Util#usToMs(long)}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@InlineMe(
|
@InlineMe(
|
||||||
replacement = "Util.usToMs(timeUs)",
|
replacement = "Util.usToMs(timeUs)",
|
||||||
@ -1213,7 +1329,9 @@ public final class C {
|
|||||||
return Util.usToMs(timeUs);
|
return Util.usToMs(timeUs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Util#msToUs(long)}. */
|
/**
|
||||||
|
* @deprecated Use {@link Util#msToUs(long)}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@InlineMe(
|
@InlineMe(
|
||||||
replacement = "Util.msToUs(timeMs)",
|
replacement = "Util.msToUs(timeMs)",
|
||||||
@ -1223,7 +1341,9 @@ public final class C {
|
|||||||
return Util.msToUs(timeMs);
|
return Util.msToUs(timeMs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Util#generateAudioSessionIdV21(Context)}. */
|
/**
|
||||||
|
* @deprecated Use {@link Util#generateAudioSessionIdV21(Context)}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@InlineMe(
|
@InlineMe(
|
||||||
replacement = "Util.generateAudioSessionIdV21(context)",
|
replacement = "Util.generateAudioSessionIdV21(context)",
|
||||||
@ -1234,7 +1354,9 @@ public final class C {
|
|||||||
return Util.generateAudioSessionIdV21(context);
|
return Util.generateAudioSessionIdV21(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Util#getFormatSupportString(int)}. */
|
/**
|
||||||
|
* @deprecated Use {@link Util#getFormatSupportString(int)}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@InlineMe(
|
@InlineMe(
|
||||||
replacement = "Util.getFormatSupportString(formatSupport)",
|
replacement = "Util.getFormatSupportString(formatSupport)",
|
||||||
@ -1244,7 +1366,9 @@ public final class C {
|
|||||||
return Util.getFormatSupportString(formatSupport);
|
return Util.getFormatSupportString(formatSupport);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Util#getErrorCodeForMediaDrmErrorCode(int)}. */
|
/**
|
||||||
|
* @deprecated Use {@link Util#getErrorCodeForMediaDrmErrorCode(int)}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@InlineMe(
|
@InlineMe(
|
||||||
replacement = "Util.getErrorCodeForMediaDrmErrorCode(mediaDrmErrorCode)",
|
replacement = "Util.getErrorCodeForMediaDrmErrorCode(mediaDrmErrorCode)",
|
||||||
|
@ -92,7 +92,9 @@ public final class DrmInitData implements Comparator<SchemeData>, Parcelable {
|
|||||||
/** Number of {@link SchemeData}s. */
|
/** Number of {@link SchemeData}s. */
|
||||||
public final int schemeDataCount;
|
public final int schemeDataCount;
|
||||||
|
|
||||||
/** @param schemeDatas Scheme initialization data for possibly multiple DRM schemes. */
|
/**
|
||||||
|
* @param schemeDatas Scheme initialization data for possibly multiple DRM schemes.
|
||||||
|
*/
|
||||||
public DrmInitData(List<SchemeData> schemeDatas) {
|
public DrmInitData(List<SchemeData> schemeDatas) {
|
||||||
this(null, false, schemeDatas.toArray(new SchemeData[0]));
|
this(null, false, schemeDatas.toArray(new SchemeData[0]));
|
||||||
}
|
}
|
||||||
@ -105,7 +107,9 @@ public final class DrmInitData implements Comparator<SchemeData>, Parcelable {
|
|||||||
this(schemeType, false, schemeDatas.toArray(new SchemeData[0]));
|
this(schemeType, false, schemeDatas.toArray(new SchemeData[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param schemeDatas Scheme initialization data for possibly multiple DRM schemes. */
|
/**
|
||||||
|
* @param schemeDatas Scheme initialization data for possibly multiple DRM schemes.
|
||||||
|
*/
|
||||||
public DrmInitData(SchemeData... schemeDatas) {
|
public DrmInitData(SchemeData... schemeDatas) {
|
||||||
this(null, schemeDatas);
|
this(null, schemeDatas);
|
||||||
}
|
}
|
||||||
|
@ -769,7 +769,9 @@ public final class Format implements Bundleable {
|
|||||||
|
|
||||||
// Video.
|
// Video.
|
||||||
|
|
||||||
/** @deprecated Use {@link Format.Builder}. */
|
/**
|
||||||
|
* @deprecated Use {@link Format.Builder}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static Format createVideoSampleFormat(
|
public static Format createVideoSampleFormat(
|
||||||
@ -798,7 +800,9 @@ public final class Format implements Bundleable {
|
|||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Format.Builder}. */
|
/**
|
||||||
|
* @deprecated Use {@link Format.Builder}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static Format createVideoSampleFormat(
|
public static Format createVideoSampleFormat(
|
||||||
@ -833,7 +837,9 @@ public final class Format implements Bundleable {
|
|||||||
|
|
||||||
// Audio.
|
// Audio.
|
||||||
|
|
||||||
/** @deprecated Use {@link Format.Builder}. */
|
/**
|
||||||
|
* @deprecated Use {@link Format.Builder}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static Format createAudioSampleFormat(
|
public static Format createAudioSampleFormat(
|
||||||
@ -864,7 +870,9 @@ public final class Format implements Bundleable {
|
|||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Format.Builder}. */
|
/**
|
||||||
|
* @deprecated Use {@link Format.Builder}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static Format createAudioSampleFormat(
|
public static Format createAudioSampleFormat(
|
||||||
@ -899,7 +907,9 @@ public final class Format implements Bundleable {
|
|||||||
|
|
||||||
// Generic.
|
// Generic.
|
||||||
|
|
||||||
/** @deprecated Use {@link Format.Builder}. */
|
/**
|
||||||
|
* @deprecated Use {@link Format.Builder}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static Format createContainerFormat(
|
public static Format createContainerFormat(
|
||||||
@ -926,7 +936,9 @@ public final class Format implements Bundleable {
|
|||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Format.Builder}. */
|
/**
|
||||||
|
* @deprecated Use {@link Format.Builder}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static Format createSampleFormat(@Nullable String id, @Nullable String sampleMimeType) {
|
public static Format createSampleFormat(@Nullable String id, @Nullable String sampleMimeType) {
|
||||||
@ -986,28 +998,36 @@ public final class Format implements Bundleable {
|
|||||||
return new Builder(this);
|
return new Builder(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #buildUpon()} and {@link Builder#setMaxInputSize(int)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #buildUpon()} and {@link Builder#setMaxInputSize(int)}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Format copyWithMaxInputSize(int maxInputSize) {
|
public Format copyWithMaxInputSize(int maxInputSize) {
|
||||||
return buildUpon().setMaxInputSize(maxInputSize).build();
|
return buildUpon().setMaxInputSize(maxInputSize).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #buildUpon()} and {@link Builder#setSubsampleOffsetUs(long)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #buildUpon()} and {@link Builder#setSubsampleOffsetUs(long)}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Format copyWithSubsampleOffsetUs(long subsampleOffsetUs) {
|
public Format copyWithSubsampleOffsetUs(long subsampleOffsetUs) {
|
||||||
return buildUpon().setSubsampleOffsetUs(subsampleOffsetUs).build();
|
return buildUpon().setSubsampleOffsetUs(subsampleOffsetUs).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #buildUpon()} and {@link Builder#setLabel(String)} . */
|
/**
|
||||||
|
* @deprecated Use {@link #buildUpon()} and {@link Builder#setLabel(String)} .
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Format copyWithLabel(@Nullable String label) {
|
public Format copyWithLabel(@Nullable String label) {
|
||||||
return buildUpon().setLabel(label).build();
|
return buildUpon().setLabel(label).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #withManifestFormatInfo(Format)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #withManifestFormatInfo(Format)}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Format copyWithManifestFormatInfo(Format manifestFormat) {
|
public Format copyWithManifestFormatInfo(Format manifestFormat) {
|
||||||
@ -1092,21 +1112,27 @@ public final class Format implements Bundleable {
|
|||||||
return buildUpon().setEncoderDelay(encoderDelay).setEncoderPadding(encoderPadding).build();
|
return buildUpon().setEncoderDelay(encoderDelay).setEncoderPadding(encoderPadding).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #buildUpon()} and {@link Builder#setFrameRate(float)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #buildUpon()} and {@link Builder#setFrameRate(float)}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Format copyWithFrameRate(float frameRate) {
|
public Format copyWithFrameRate(float frameRate) {
|
||||||
return buildUpon().setFrameRate(frameRate).build();
|
return buildUpon().setFrameRate(frameRate).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #buildUpon()} and {@link Builder#setDrmInitData(DrmInitData)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #buildUpon()} and {@link Builder#setDrmInitData(DrmInitData)}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Format copyWithDrmInitData(@Nullable DrmInitData drmInitData) {
|
public Format copyWithDrmInitData(@Nullable DrmInitData drmInitData) {
|
||||||
return buildUpon().setDrmInitData(drmInitData).build();
|
return buildUpon().setDrmInitData(drmInitData).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #buildUpon()} and {@link Builder#setMetadata(Metadata)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #buildUpon()} and {@link Builder#setMetadata(Metadata)}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Format copyWithMetadata(@Nullable Metadata metadata) {
|
public Format copyWithMetadata(@Nullable Metadata metadata) {
|
||||||
|
@ -712,7 +712,9 @@ public final class MediaItem implements Bundleable {
|
|||||||
/** The UUID of the protection scheme. */
|
/** The UUID of the protection scheme. */
|
||||||
public final UUID scheme;
|
public final UUID scheme;
|
||||||
|
|
||||||
/** @deprecated Use {@link #scheme} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #scheme} instead.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated public final UUID uuid;
|
@UnstableApi @Deprecated public final UUID uuid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -721,7 +723,9 @@ public final class MediaItem implements Bundleable {
|
|||||||
*/
|
*/
|
||||||
@Nullable public final Uri licenseUri;
|
@Nullable public final Uri licenseUri;
|
||||||
|
|
||||||
/** @deprecated Use {@link #licenseRequestHeaders} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #licenseRequestHeaders} instead.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated public final ImmutableMap<String, String> requestHeaders;
|
@UnstableApi @Deprecated public final ImmutableMap<String, String> requestHeaders;
|
||||||
|
|
||||||
/** The headers to attach to requests sent to the DRM license server. */
|
/** The headers to attach to requests sent to the DRM license server. */
|
||||||
@ -742,7 +746,9 @@ public final class MediaItem implements Bundleable {
|
|||||||
*/
|
*/
|
||||||
public final boolean forceDefaultLicenseUri;
|
public final boolean forceDefaultLicenseUri;
|
||||||
|
|
||||||
/** @deprecated Use {@link #forcedSessionTrackTypes}. */
|
/**
|
||||||
|
* @deprecated Use {@link #forcedSessionTrackTypes}.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated public final ImmutableList<@C.TrackType Integer> sessionForClearTypes;
|
@UnstableApi @Deprecated public final ImmutableList<@C.TrackType Integer> sessionForClearTypes;
|
||||||
/**
|
/**
|
||||||
* The types of tracks for which to always use a DRM session even if the content is unencrypted.
|
* The types of tracks for which to always use a DRM session even if the content is unencrypted.
|
||||||
@ -929,7 +935,9 @@ public final class MediaItem implements Bundleable {
|
|||||||
|
|
||||||
/** Optional subtitles to be sideloaded. */
|
/** Optional subtitles to be sideloaded. */
|
||||||
public final ImmutableList<SubtitleConfiguration> subtitleConfigurations;
|
public final ImmutableList<SubtitleConfiguration> subtitleConfigurations;
|
||||||
/** @deprecated Use {@link #subtitleConfigurations} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #subtitleConfigurations} instead.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated public final List<Subtitle> subtitles;
|
@UnstableApi @Deprecated public final List<Subtitle> subtitles;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -998,7 +1006,9 @@ public final class MediaItem implements Bundleable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link LocalConfiguration}. */
|
/**
|
||||||
|
* @deprecated Use {@link LocalConfiguration}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final class PlaybackProperties extends LocalConfiguration {
|
public static final class PlaybackProperties extends LocalConfiguration {
|
||||||
@ -1160,7 +1170,9 @@ public final class MediaItem implements Bundleable {
|
|||||||
builder.maxPlaybackSpeed);
|
builder.maxPlaybackSpeed);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Builder} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Builder} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public LiveConfiguration(
|
public LiveConfiguration(
|
||||||
@ -1427,19 +1439,25 @@ public final class MediaItem implements Bundleable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link MediaItem.SubtitleConfiguration} instead */
|
/**
|
||||||
|
* @deprecated Use {@link MediaItem.SubtitleConfiguration} instead
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final class Subtitle extends SubtitleConfiguration {
|
public static final class Subtitle extends SubtitleConfiguration {
|
||||||
|
|
||||||
/** @deprecated Use {@link Builder} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Builder} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Subtitle(Uri uri, String mimeType, @Nullable String language) {
|
public Subtitle(Uri uri, String mimeType, @Nullable String language) {
|
||||||
this(uri, mimeType, language, /* selectionFlags= */ 0);
|
this(uri, mimeType, language, /* selectionFlags= */ 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Builder} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Builder} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Subtitle(
|
public Subtitle(
|
||||||
@ -1447,7 +1465,9 @@ public final class MediaItem implements Bundleable {
|
|||||||
this(uri, mimeType, language, selectionFlags, /* roleFlags= */ 0, /* label= */ null);
|
this(uri, mimeType, language, selectionFlags, /* roleFlags= */ 0, /* label= */ null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Builder} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Builder} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Subtitle(
|
public Subtitle(
|
||||||
@ -1550,7 +1570,9 @@ public final class MediaItem implements Bundleable {
|
|||||||
return buildClippingProperties();
|
return buildClippingProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #build()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #build()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public ClippingProperties buildClippingProperties() {
|
public ClippingProperties buildClippingProperties() {
|
||||||
@ -1680,7 +1702,9 @@ public final class MediaItem implements Bundleable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ClippingConfiguration} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ClippingConfiguration} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final class ClippingProperties extends ClippingConfiguration {
|
public static final class ClippingProperties extends ClippingConfiguration {
|
||||||
@ -1709,7 +1733,9 @@ public final class MediaItem implements Bundleable {
|
|||||||
* boundaries.
|
* boundaries.
|
||||||
*/
|
*/
|
||||||
@Nullable public final LocalConfiguration localConfiguration;
|
@Nullable public final LocalConfiguration localConfiguration;
|
||||||
/** @deprecated Use {@link #localConfiguration} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #localConfiguration} instead.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated @Nullable public final PlaybackProperties playbackProperties;
|
@UnstableApi @Deprecated @Nullable public final PlaybackProperties playbackProperties;
|
||||||
|
|
||||||
/** The live playback configuration. */
|
/** The live playback configuration. */
|
||||||
@ -1720,7 +1746,9 @@ public final class MediaItem implements Bundleable {
|
|||||||
|
|
||||||
/** The clipping properties. */
|
/** The clipping properties. */
|
||||||
public final ClippingConfiguration clippingConfiguration;
|
public final ClippingConfiguration clippingConfiguration;
|
||||||
/** @deprecated Use {@link #clippingConfiguration} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #clippingConfiguration} instead.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated public final ClippingProperties clippingProperties;
|
@UnstableApi @Deprecated public final ClippingProperties clippingProperties;
|
||||||
|
|
||||||
// Using PlaybackProperties and ClippingProperties until they're deleted.
|
// Using PlaybackProperties and ClippingProperties until they're deleted.
|
||||||
|
@ -248,7 +248,9 @@ public final class MediaMetadata implements Bundleable {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #setRecordingYear(Integer)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #setRecordingYear(Integer)} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setYear(@Nullable Integer year) {
|
public Builder setYear(@Nullable Integer year) {
|
||||||
@ -654,7 +656,9 @@ public final class MediaMetadata implements Bundleable {
|
|||||||
@Nullable public final @FolderType Integer folderType;
|
@Nullable public final @FolderType Integer folderType;
|
||||||
/** Optional boolean for media playability. */
|
/** Optional boolean for media playability. */
|
||||||
@Nullable public final Boolean isPlayable;
|
@Nullable public final Boolean isPlayable;
|
||||||
/** @deprecated Use {@link #recordingYear} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #recordingYear} instead.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated @Nullable public final Integer year;
|
@UnstableApi @Deprecated @Nullable public final Integer year;
|
||||||
/** Optional year of the recording date. */
|
/** Optional year of the recording date. */
|
||||||
@Nullable public final Integer recordingYear;
|
@Nullable public final Integer recordingYear;
|
||||||
|
@ -62,12 +62,16 @@ public final class Metadata implements Parcelable {
|
|||||||
|
|
||||||
private final Entry[] entries;
|
private final Entry[] entries;
|
||||||
|
|
||||||
/** @param entries The metadata entries. */
|
/**
|
||||||
|
* @param entries The metadata entries.
|
||||||
|
*/
|
||||||
public Metadata(Entry... entries) {
|
public Metadata(Entry... entries) {
|
||||||
this.entries = entries;
|
this.entries = entries;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param entries The metadata entries. */
|
/**
|
||||||
|
* @param entries The metadata entries.
|
||||||
|
*/
|
||||||
public Metadata(List<? extends Entry> entries) {
|
public Metadata(List<? extends Entry> entries) {
|
||||||
this.entries = entries.toArray(new Entry[0]);
|
this.entries = entries.toArray(new Entry[0]);
|
||||||
}
|
}
|
||||||
|
@ -142,7 +142,9 @@ public interface Player {
|
|||||||
* The UID of the window, or {@code null} if the timeline is {@link Timeline#isEmpty() empty}.
|
* The UID of the window, or {@code null} if the timeline is {@link Timeline#isEmpty() empty}.
|
||||||
*/
|
*/
|
||||||
@Nullable public final Object windowUid;
|
@Nullable public final Object windowUid;
|
||||||
/** @deprecated Use {@link #mediaItemIndex} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #mediaItemIndex} instead.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated public final int windowIndex;
|
@UnstableApi @Deprecated public final int windowIndex;
|
||||||
/** The media item index. */
|
/** The media item index. */
|
||||||
public final int mediaItemIndex;
|
public final int mediaItemIndex;
|
||||||
@ -732,7 +734,9 @@ public interface Player {
|
|||||||
*/
|
*/
|
||||||
default void onIsLoadingChanged(boolean isLoading) {}
|
default void onIsLoadingChanged(boolean isLoading) {}
|
||||||
|
|
||||||
/** @deprecated Use {@link #onIsLoadingChanged(boolean)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #onIsLoadingChanged(boolean)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
default void onLoadingChanged(boolean isLoading) {}
|
default void onLoadingChanged(boolean isLoading) {}
|
||||||
@ -1446,24 +1450,32 @@ public interface Player {
|
|||||||
int COMMAND_SEEK_TO_DEFAULT_POSITION = 4;
|
int COMMAND_SEEK_TO_DEFAULT_POSITION = 4;
|
||||||
/** Command to seek anywhere into the current {@link MediaItem}. */
|
/** Command to seek anywhere into the current {@link MediaItem}. */
|
||||||
int COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM = 5;
|
int COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM = 5;
|
||||||
/** @deprecated Use {@link #COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM} instead.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated int COMMAND_SEEK_IN_CURRENT_WINDOW = COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM;
|
@UnstableApi @Deprecated int COMMAND_SEEK_IN_CURRENT_WINDOW = COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM;
|
||||||
/** Command to seek to the default position of the previous {@link MediaItem}. */
|
/** Command to seek to the default position of the previous {@link MediaItem}. */
|
||||||
int COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM = 6;
|
int COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM = 6;
|
||||||
/** @deprecated Use {@link #COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM} instead.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated
|
@UnstableApi @Deprecated
|
||||||
int COMMAND_SEEK_TO_PREVIOUS_WINDOW = COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM;
|
int COMMAND_SEEK_TO_PREVIOUS_WINDOW = COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM;
|
||||||
/** Command to seek to an earlier position in the current or previous {@link MediaItem}. */
|
/** Command to seek to an earlier position in the current or previous {@link MediaItem}. */
|
||||||
int COMMAND_SEEK_TO_PREVIOUS = 7;
|
int COMMAND_SEEK_TO_PREVIOUS = 7;
|
||||||
/** Command to seek to the default position of the next {@link MediaItem}. */
|
/** Command to seek to the default position of the next {@link MediaItem}. */
|
||||||
int COMMAND_SEEK_TO_NEXT_MEDIA_ITEM = 8;
|
int COMMAND_SEEK_TO_NEXT_MEDIA_ITEM = 8;
|
||||||
/** @deprecated Use {@link #COMMAND_SEEK_TO_NEXT_MEDIA_ITEM} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #COMMAND_SEEK_TO_NEXT_MEDIA_ITEM} instead.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated int COMMAND_SEEK_TO_NEXT_WINDOW = COMMAND_SEEK_TO_NEXT_MEDIA_ITEM;
|
@UnstableApi @Deprecated int COMMAND_SEEK_TO_NEXT_WINDOW = COMMAND_SEEK_TO_NEXT_MEDIA_ITEM;
|
||||||
/** Command to seek to a later position in the current or next {@link MediaItem}. */
|
/** Command to seek to a later position in the current or next {@link MediaItem}. */
|
||||||
int COMMAND_SEEK_TO_NEXT = 9;
|
int COMMAND_SEEK_TO_NEXT = 9;
|
||||||
/** Command to seek anywhere in any {@link MediaItem}. */
|
/** Command to seek anywhere in any {@link MediaItem}. */
|
||||||
int COMMAND_SEEK_TO_MEDIA_ITEM = 10;
|
int COMMAND_SEEK_TO_MEDIA_ITEM = 10;
|
||||||
/** @deprecated Use {@link #COMMAND_SEEK_TO_MEDIA_ITEM} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #COMMAND_SEEK_TO_MEDIA_ITEM} instead.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated int COMMAND_SEEK_TO_WINDOW = COMMAND_SEEK_TO_MEDIA_ITEM;
|
@UnstableApi @Deprecated int COMMAND_SEEK_TO_WINDOW = COMMAND_SEEK_TO_MEDIA_ITEM;
|
||||||
/** Command to seek back by a fixed increment into the current {@link MediaItem}. */
|
/** Command to seek back by a fixed increment into the current {@link MediaItem}. */
|
||||||
int COMMAND_SEEK_BACK = 11;
|
int COMMAND_SEEK_BACK = 11;
|
||||||
@ -1889,12 +1901,16 @@ public interface Player {
|
|||||||
*/
|
*/
|
||||||
void seekForward();
|
void seekForward();
|
||||||
|
|
||||||
/** @deprecated Use {@link #hasPreviousMediaItem()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #hasPreviousMediaItem()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
boolean hasPrevious();
|
boolean hasPrevious();
|
||||||
|
|
||||||
/** @deprecated Use {@link #hasPreviousMediaItem()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #hasPreviousMediaItem()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
boolean hasPreviousWindow();
|
boolean hasPreviousWindow();
|
||||||
@ -1909,12 +1925,16 @@ public interface Player {
|
|||||||
*/
|
*/
|
||||||
boolean hasPreviousMediaItem();
|
boolean hasPreviousMediaItem();
|
||||||
|
|
||||||
/** @deprecated Use {@link #seekToPreviousMediaItem()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #seekToPreviousMediaItem()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void previous();
|
void previous();
|
||||||
|
|
||||||
/** @deprecated Use {@link #seekToPreviousMediaItem()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #seekToPreviousMediaItem()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void seekToPreviousWindow();
|
void seekToPreviousWindow();
|
||||||
@ -1961,12 +1981,16 @@ public interface Player {
|
|||||||
*/
|
*/
|
||||||
void seekToPrevious();
|
void seekToPrevious();
|
||||||
|
|
||||||
/** @deprecated Use {@link #hasNextMediaItem()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #hasNextMediaItem()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
boolean hasNext();
|
boolean hasNext();
|
||||||
|
|
||||||
/** @deprecated Use {@link #hasNextMediaItem()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #hasNextMediaItem()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
boolean hasNextWindow();
|
boolean hasNextWindow();
|
||||||
@ -1981,12 +2005,16 @@ public interface Player {
|
|||||||
*/
|
*/
|
||||||
boolean hasNextMediaItem();
|
boolean hasNextMediaItem();
|
||||||
|
|
||||||
/** @deprecated Use {@link #seekToNextMediaItem()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #seekToNextMediaItem()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void next();
|
void next();
|
||||||
|
|
||||||
/** @deprecated Use {@link #seekToNextMediaItem()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #seekToNextMediaItem()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void seekToNextWindow();
|
void seekToNextWindow();
|
||||||
@ -2171,7 +2199,9 @@ public interface Player {
|
|||||||
/** Returns the index of the period currently being played. */
|
/** Returns the index of the period currently being played. */
|
||||||
int getCurrentPeriodIndex();
|
int getCurrentPeriodIndex();
|
||||||
|
|
||||||
/** @deprecated Use {@link #getCurrentMediaItemIndex()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #getCurrentMediaItemIndex()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
int getCurrentWindowIndex();
|
int getCurrentWindowIndex();
|
||||||
@ -2183,7 +2213,9 @@ public interface Player {
|
|||||||
*/
|
*/
|
||||||
int getCurrentMediaItemIndex();
|
int getCurrentMediaItemIndex();
|
||||||
|
|
||||||
/** @deprecated Use {@link #getNextMediaItemIndex()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #getNextMediaItemIndex()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
int getNextWindowIndex();
|
int getNextWindowIndex();
|
||||||
@ -2200,7 +2232,9 @@ public interface Player {
|
|||||||
*/
|
*/
|
||||||
int getNextMediaItemIndex();
|
int getNextMediaItemIndex();
|
||||||
|
|
||||||
/** @deprecated Use {@link #getPreviousMediaItemIndex()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #getPreviousMediaItemIndex()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
int getPreviousWindowIndex();
|
int getPreviousWindowIndex();
|
||||||
@ -2262,7 +2296,9 @@ public interface Player {
|
|||||||
*/
|
*/
|
||||||
long getTotalBufferedDuration();
|
long getTotalBufferedDuration();
|
||||||
|
|
||||||
/** @deprecated Use {@link #isCurrentMediaItemDynamic()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #isCurrentMediaItemDynamic()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
boolean isCurrentWindowDynamic();
|
boolean isCurrentWindowDynamic();
|
||||||
@ -2275,7 +2311,9 @@ public interface Player {
|
|||||||
*/
|
*/
|
||||||
boolean isCurrentMediaItemDynamic();
|
boolean isCurrentMediaItemDynamic();
|
||||||
|
|
||||||
/** @deprecated Use {@link #isCurrentMediaItemLive()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #isCurrentMediaItemLive()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
boolean isCurrentWindowLive();
|
boolean isCurrentWindowLive();
|
||||||
@ -2301,7 +2339,9 @@ public interface Player {
|
|||||||
*/
|
*/
|
||||||
long getCurrentLiveOffset();
|
long getCurrentLiveOffset();
|
||||||
|
|
||||||
/** @deprecated Use {@link #isCurrentMediaItemSeekable()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #isCurrentMediaItemSeekable()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
boolean isCurrentWindowSeekable();
|
boolean isCurrentWindowSeekable();
|
||||||
|
@ -44,7 +44,9 @@ public final class StreamKey implements Comparable<StreamKey>, Parcelable {
|
|||||||
/** The stream index. */
|
/** The stream index. */
|
||||||
public final int streamIndex;
|
public final int streamIndex;
|
||||||
|
|
||||||
/** @deprecated Use {@link #streamIndex}. */
|
/**
|
||||||
|
* @deprecated Use {@link #streamIndex}.
|
||||||
|
*/
|
||||||
@Deprecated public final int trackIndex;
|
@Deprecated public final int trackIndex;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -169,7 +169,9 @@ public abstract class Timeline implements Bundleable {
|
|||||||
*/
|
*/
|
||||||
public Object uid;
|
public Object uid;
|
||||||
|
|
||||||
/** @deprecated Use {@link #mediaItem} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #mediaItem} instead.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated @Nullable public Object tag;
|
@UnstableApi @Deprecated @Nullable public Object tag;
|
||||||
|
|
||||||
/** The {@link MediaItem} associated to the window. Not necessarily unique. */
|
/** The {@link MediaItem} associated to the window. Not necessarily unique. */
|
||||||
@ -212,7 +214,9 @@ public abstract class Timeline implements Bundleable {
|
|||||||
/** Whether this window may change when the timeline is updated. */
|
/** Whether this window may change when the timeline is updated. */
|
||||||
public boolean isDynamic;
|
public boolean isDynamic;
|
||||||
|
|
||||||
/** @deprecated Use {@link #isLive()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #isLive()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi @Deprecated public boolean isLive;
|
@UnstableApi @Deprecated public boolean isLive;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1178,7 +1182,9 @@ public abstract class Timeline implements Bundleable {
|
|||||||
== C.INDEX_UNSET;
|
== C.INDEX_UNSET;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #getPeriodPositionUs(Window, Period, int, long)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #getPeriodPositionUs(Window, Period, int, long)} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@InlineMe(replacement = "this.getPeriodPositionUs(window, period, windowIndex, windowPositionUs)")
|
@InlineMe(replacement = "this.getPeriodPositionUs(window, period, windowIndex, windowPositionUs)")
|
||||||
@ -1186,7 +1192,9 @@ public abstract class Timeline implements Bundleable {
|
|||||||
Window window, Period period, int windowIndex, long windowPositionUs) {
|
Window window, Period period, int windowIndex, long windowPositionUs) {
|
||||||
return getPeriodPositionUs(window, period, windowIndex, windowPositionUs);
|
return getPeriodPositionUs(window, period, windowIndex, windowPositionUs);
|
||||||
}
|
}
|
||||||
/** @deprecated Use {@link #getPeriodPositionUs(Window, Period, int, long, long)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #getPeriodPositionUs(Window, Period, int, long, long)} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@ -32,7 +32,9 @@ public final class TrackSelectionArray {
|
|||||||
// Lazily initialized hashcode.
|
// Lazily initialized hashcode.
|
||||||
private int hashCode;
|
private int hashCode;
|
||||||
|
|
||||||
/** @param trackSelections The selections. Must not be null, but may contain null elements. */
|
/**
|
||||||
|
* @param trackSelections The selections. Must not be null, but may contain null elements.
|
||||||
|
*/
|
||||||
public TrackSelectionArray(@NullableType TrackSelection... trackSelections) {
|
public TrackSelectionArray(@NullableType TrackSelection... trackSelections) {
|
||||||
this.trackSelections = trackSelections;
|
this.trackSelections = trackSelections;
|
||||||
this.length = trackSelections.length;
|
this.length = trackSelections.length;
|
||||||
|
@ -326,7 +326,9 @@ public final class TracksInfo implements Bundleable {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #containsType(int)} and {@link #isTypeSupported(int)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #containsType(int)} and {@link #isTypeSupported(int)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@ -334,7 +336,9 @@ public final class TracksInfo implements Bundleable {
|
|||||||
return isTypeSupportedOrEmpty(trackType, /* allowExceedsCapabilities= */ false);
|
return isTypeSupportedOrEmpty(trackType, /* allowExceedsCapabilities= */ false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #containsType(int)} and {@link #isTypeSupported(int, boolean)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #containsType(int)} and {@link #isTypeSupported(int, boolean)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
public boolean isTypeSupportedOrEmpty(
|
public boolean isTypeSupportedOrEmpty(
|
||||||
|
@ -36,10 +36,14 @@ public interface Clock {
|
|||||||
*/
|
*/
|
||||||
long currentTimeMillis();
|
long currentTimeMillis();
|
||||||
|
|
||||||
/** @see android.os.SystemClock#elapsedRealtime() */
|
/**
|
||||||
|
* @see android.os.SystemClock#elapsedRealtime()
|
||||||
|
*/
|
||||||
long elapsedRealtime();
|
long elapsedRealtime();
|
||||||
|
|
||||||
/** @see android.os.SystemClock#uptimeMillis() */
|
/**
|
||||||
|
* @see android.os.SystemClock#uptimeMillis()
|
||||||
|
*/
|
||||||
long uptimeMillis();
|
long uptimeMillis();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,7 +27,9 @@ public abstract class LibraryLoader {
|
|||||||
private boolean loadAttempted;
|
private boolean loadAttempted;
|
||||||
private boolean isAvailable;
|
private boolean isAvailable;
|
||||||
|
|
||||||
/** @param libraries The names of the libraries to load. */
|
/**
|
||||||
|
* @param libraries The names of the libraries to load.
|
||||||
|
*/
|
||||||
public LibraryLoader(String... libraries) {
|
public LibraryLoader(String... libraries) {
|
||||||
nativeLibraries = libraries;
|
nativeLibraries = libraries;
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,9 @@ public final class Log {
|
|||||||
Log.logStackTraces = logStackTraces;
|
Log.logStackTraces = logStackTraces;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see android.util.Log#d(String, String) */
|
/**
|
||||||
|
* @see android.util.Log#d(String, String)
|
||||||
|
*/
|
||||||
@Pure
|
@Pure
|
||||||
public static void d(@Size(max = 23) String tag, String message) {
|
public static void d(@Size(max = 23) String tag, String message) {
|
||||||
if (logLevel == LOG_LEVEL_ALL) {
|
if (logLevel == LOG_LEVEL_ALL) {
|
||||||
@ -90,13 +92,17 @@ public final class Log {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see android.util.Log#d(String, String, Throwable) */
|
/**
|
||||||
|
* @see android.util.Log#d(String, String, Throwable)
|
||||||
|
*/
|
||||||
@Pure
|
@Pure
|
||||||
public static void d(@Size(max = 23) String tag, String message, @Nullable Throwable throwable) {
|
public static void d(@Size(max = 23) String tag, String message, @Nullable Throwable throwable) {
|
||||||
d(tag, appendThrowableString(message, throwable));
|
d(tag, appendThrowableString(message, throwable));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see android.util.Log#i(String, String) */
|
/**
|
||||||
|
* @see android.util.Log#i(String, String)
|
||||||
|
*/
|
||||||
@Pure
|
@Pure
|
||||||
public static void i(@Size(max = 23) String tag, String message) {
|
public static void i(@Size(max = 23) String tag, String message) {
|
||||||
if (logLevel <= LOG_LEVEL_INFO) {
|
if (logLevel <= LOG_LEVEL_INFO) {
|
||||||
@ -104,13 +110,17 @@ public final class Log {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see android.util.Log#i(String, String, Throwable) */
|
/**
|
||||||
|
* @see android.util.Log#i(String, String, Throwable)
|
||||||
|
*/
|
||||||
@Pure
|
@Pure
|
||||||
public static void i(@Size(max = 23) String tag, String message, @Nullable Throwable throwable) {
|
public static void i(@Size(max = 23) String tag, String message, @Nullable Throwable throwable) {
|
||||||
i(tag, appendThrowableString(message, throwable));
|
i(tag, appendThrowableString(message, throwable));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see android.util.Log#w(String, String) */
|
/**
|
||||||
|
* @see android.util.Log#w(String, String)
|
||||||
|
*/
|
||||||
@Pure
|
@Pure
|
||||||
public static void w(@Size(max = 23) String tag, String message) {
|
public static void w(@Size(max = 23) String tag, String message) {
|
||||||
if (logLevel <= LOG_LEVEL_WARNING) {
|
if (logLevel <= LOG_LEVEL_WARNING) {
|
||||||
@ -118,13 +128,17 @@ public final class Log {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see android.util.Log#w(String, String, Throwable) */
|
/**
|
||||||
|
* @see android.util.Log#w(String, String, Throwable)
|
||||||
|
*/
|
||||||
@Pure
|
@Pure
|
||||||
public static void w(@Size(max = 23) String tag, String message, @Nullable Throwable throwable) {
|
public static void w(@Size(max = 23) String tag, String message, @Nullable Throwable throwable) {
|
||||||
w(tag, appendThrowableString(message, throwable));
|
w(tag, appendThrowableString(message, throwable));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see android.util.Log#e(String, String) */
|
/**
|
||||||
|
* @see android.util.Log#e(String, String)
|
||||||
|
*/
|
||||||
@Pure
|
@Pure
|
||||||
public static void e(@Size(max = 23) String tag, String message) {
|
public static void e(@Size(max = 23) String tag, String message) {
|
||||||
if (logLevel <= LOG_LEVEL_ERROR) {
|
if (logLevel <= LOG_LEVEL_ERROR) {
|
||||||
@ -132,7 +146,9 @@ public final class Log {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see android.util.Log#e(String, String, Throwable) */
|
/**
|
||||||
|
* @see android.util.Log#e(String, String, Throwable)
|
||||||
|
*/
|
||||||
@Pure
|
@Pure
|
||||||
public static void e(@Size(max = 23) String tag, String message, @Nullable Throwable throwable) {
|
public static void e(@Size(max = 23) String tag, String message, @Nullable Throwable throwable) {
|
||||||
e(tag, appendThrowableString(message, throwable));
|
e(tag, appendThrowableString(message, throwable));
|
||||||
|
@ -30,7 +30,9 @@ public final class LongArray {
|
|||||||
this(DEFAULT_INITIAL_CAPACITY);
|
this(DEFAULT_INITIAL_CAPACITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param initialCapacity The initial capacity of the array. */
|
/**
|
||||||
|
* @param initialCapacity The initial capacity of the array.
|
||||||
|
*/
|
||||||
public LongArray(int initialCapacity) {
|
public LongArray(int initialCapacity) {
|
||||||
values = new long[initialCapacity];
|
values = new long[initialCapacity];
|
||||||
}
|
}
|
||||||
|
@ -54,17 +54,29 @@ public final class NotificationUtil {
|
|||||||
IMPORTANCE_HIGH
|
IMPORTANCE_HIGH
|
||||||
})
|
})
|
||||||
public @interface Importance {}
|
public @interface Importance {}
|
||||||
/** @see NotificationManager#IMPORTANCE_UNSPECIFIED */
|
/**
|
||||||
|
* @see NotificationManager#IMPORTANCE_UNSPECIFIED
|
||||||
|
*/
|
||||||
public static final int IMPORTANCE_UNSPECIFIED = NotificationManager.IMPORTANCE_UNSPECIFIED;
|
public static final int IMPORTANCE_UNSPECIFIED = NotificationManager.IMPORTANCE_UNSPECIFIED;
|
||||||
/** @see NotificationManager#IMPORTANCE_NONE */
|
/**
|
||||||
|
* @see NotificationManager#IMPORTANCE_NONE
|
||||||
|
*/
|
||||||
public static final int IMPORTANCE_NONE = NotificationManager.IMPORTANCE_NONE;
|
public static final int IMPORTANCE_NONE = NotificationManager.IMPORTANCE_NONE;
|
||||||
/** @see NotificationManager#IMPORTANCE_MIN */
|
/**
|
||||||
|
* @see NotificationManager#IMPORTANCE_MIN
|
||||||
|
*/
|
||||||
public static final int IMPORTANCE_MIN = NotificationManager.IMPORTANCE_MIN;
|
public static final int IMPORTANCE_MIN = NotificationManager.IMPORTANCE_MIN;
|
||||||
/** @see NotificationManager#IMPORTANCE_LOW */
|
/**
|
||||||
|
* @see NotificationManager#IMPORTANCE_LOW
|
||||||
|
*/
|
||||||
public static final int IMPORTANCE_LOW = NotificationManager.IMPORTANCE_LOW;
|
public static final int IMPORTANCE_LOW = NotificationManager.IMPORTANCE_LOW;
|
||||||
/** @see NotificationManager#IMPORTANCE_DEFAULT */
|
/**
|
||||||
|
* @see NotificationManager#IMPORTANCE_DEFAULT
|
||||||
|
*/
|
||||||
public static final int IMPORTANCE_DEFAULT = NotificationManager.IMPORTANCE_DEFAULT;
|
public static final int IMPORTANCE_DEFAULT = NotificationManager.IMPORTANCE_DEFAULT;
|
||||||
/** @see NotificationManager#IMPORTANCE_HIGH */
|
/**
|
||||||
|
* @see NotificationManager#IMPORTANCE_HIGH
|
||||||
|
*/
|
||||||
public static final int IMPORTANCE_HIGH = NotificationManager.IMPORTANCE_HIGH;
|
public static final int IMPORTANCE_HIGH = NotificationManager.IMPORTANCE_HIGH;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +18,9 @@ package androidx.media3.database;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import androidx.media3.common.util.UnstableApi;
|
import androidx.media3.common.util.UnstableApi;
|
||||||
|
|
||||||
/** @deprecated Use {@link StandaloneDatabaseProvider}. */
|
/**
|
||||||
|
* @deprecated Use {@link StandaloneDatabaseProvider}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
public final class ExoDatabaseProvider extends StandaloneDatabaseProvider {
|
public final class ExoDatabaseProvider extends StandaloneDatabaseProvider {
|
||||||
|
@ -37,7 +37,9 @@ public final class AssetDataSource extends BaseDataSource {
|
|||||||
/** Thrown when an {@link IOException} is encountered reading a local asset. */
|
/** Thrown when an {@link IOException} is encountered reading a local asset. */
|
||||||
public static final class AssetDataSourceException extends DataSourceException {
|
public static final class AssetDataSourceException extends DataSourceException {
|
||||||
|
|
||||||
/** @deprecated Use {@link #AssetDataSourceException(Throwable, int)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #AssetDataSourceException(Throwable, int)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public AssetDataSourceException(IOException cause) {
|
public AssetDataSourceException(IOException cause) {
|
||||||
super(cause, PlaybackException.ERROR_CODE_IO_UNSPECIFIED);
|
super(cause, PlaybackException.ERROR_CODE_IO_UNSPECIFIED);
|
||||||
@ -62,7 +64,9 @@ public final class AssetDataSource extends BaseDataSource {
|
|||||||
private long bytesRemaining;
|
private long bytesRemaining;
|
||||||
private boolean opened;
|
private boolean opened;
|
||||||
|
|
||||||
/** @param context A context. */
|
/**
|
||||||
|
* @param context A context.
|
||||||
|
*/
|
||||||
public AssetDataSource(Context context) {
|
public AssetDataSource(Context context) {
|
||||||
super(/* isNetwork= */ false);
|
super(/* isNetwork= */ false);
|
||||||
this.assetManager = context.getAssets();
|
this.assetManager = context.getAssets();
|
||||||
|
@ -36,7 +36,9 @@ public final class ByteArrayDataSource extends BaseDataSource {
|
|||||||
private int bytesRemaining;
|
private int bytesRemaining;
|
||||||
private boolean opened;
|
private boolean opened;
|
||||||
|
|
||||||
/** @param data The data to be read. */
|
/**
|
||||||
|
* @param data The data to be read.
|
||||||
|
*/
|
||||||
public ByteArrayDataSource(byte[] data) {
|
public ByteArrayDataSource(byte[] data) {
|
||||||
super(/* isNetwork= */ false);
|
super(/* isNetwork= */ false);
|
||||||
Assertions.checkNotNull(data);
|
Assertions.checkNotNull(data);
|
||||||
|
@ -46,7 +46,9 @@ public final class ContentDataSource extends BaseDataSource {
|
|||||||
/** Thrown when an {@link IOException} is encountered reading from a content URI. */
|
/** Thrown when an {@link IOException} is encountered reading from a content URI. */
|
||||||
public static class ContentDataSourceException extends DataSourceException {
|
public static class ContentDataSourceException extends DataSourceException {
|
||||||
|
|
||||||
/** @deprecated Use {@link #ContentDataSourceException(IOException, int)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #ContentDataSourceException(IOException, int)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public ContentDataSourceException(IOException cause) {
|
public ContentDataSourceException(IOException cause) {
|
||||||
this(cause, PlaybackException.ERROR_CODE_IO_UNSPECIFIED);
|
this(cause, PlaybackException.ERROR_CODE_IO_UNSPECIFIED);
|
||||||
@ -67,7 +69,9 @@ public final class ContentDataSource extends BaseDataSource {
|
|||||||
private long bytesRemaining;
|
private long bytesRemaining;
|
||||||
private boolean opened;
|
private boolean opened;
|
||||||
|
|
||||||
/** @param context A context. */
|
/**
|
||||||
|
* @param context A context.
|
||||||
|
*/
|
||||||
public ContentDataSource(Context context) {
|
public ContentDataSource(Context context) {
|
||||||
super(/* isNetwork= */ false);
|
super(/* isNetwork= */ false);
|
||||||
this.resolver = context.getContentResolver();
|
this.resolver = context.getContentResolver();
|
||||||
|
@ -20,7 +20,9 @@ import androidx.annotation.Nullable;
|
|||||||
import androidx.media3.common.util.UnstableApi;
|
import androidx.media3.common.util.UnstableApi;
|
||||||
import androidx.media3.datasource.DataSource.Factory;
|
import androidx.media3.datasource.DataSource.Factory;
|
||||||
|
|
||||||
/** @deprecated Use {@link DefaultDataSource.Factory} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link DefaultDataSource.Factory} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public final class DefaultDataSourceFactory implements Factory {
|
public final class DefaultDataSourceFactory implements Factory {
|
||||||
|
@ -229,21 +229,27 @@ public class DefaultHttpDataSource extends BaseDataSource implements HttpDataSou
|
|||||||
private long bytesToRead;
|
private long bytesToRead;
|
||||||
private long bytesRead;
|
private long bytesRead;
|
||||||
|
|
||||||
/** @deprecated Use {@link DefaultHttpDataSource.Factory} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link DefaultHttpDataSource.Factory} instead.
|
||||||
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public DefaultHttpDataSource() {
|
public DefaultHttpDataSource() {
|
||||||
this(/* userAgent= */ null, DEFAULT_CONNECT_TIMEOUT_MILLIS, DEFAULT_READ_TIMEOUT_MILLIS);
|
this(/* userAgent= */ null, DEFAULT_CONNECT_TIMEOUT_MILLIS, DEFAULT_READ_TIMEOUT_MILLIS);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link DefaultHttpDataSource.Factory} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link DefaultHttpDataSource.Factory} instead.
|
||||||
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public DefaultHttpDataSource(@Nullable String userAgent) {
|
public DefaultHttpDataSource(@Nullable String userAgent) {
|
||||||
this(userAgent, DEFAULT_CONNECT_TIMEOUT_MILLIS, DEFAULT_READ_TIMEOUT_MILLIS);
|
this(userAgent, DEFAULT_CONNECT_TIMEOUT_MILLIS, DEFAULT_READ_TIMEOUT_MILLIS);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link DefaultHttpDataSource.Factory} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link DefaultHttpDataSource.Factory} instead.
|
||||||
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public DefaultHttpDataSource(
|
public DefaultHttpDataSource(
|
||||||
@ -256,7 +262,9 @@ public class DefaultHttpDataSource extends BaseDataSource implements HttpDataSou
|
|||||||
/* defaultRequestProperties= */ null);
|
/* defaultRequestProperties= */ null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link DefaultHttpDataSource.Factory} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link DefaultHttpDataSource.Factory} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public DefaultHttpDataSource(
|
public DefaultHttpDataSource(
|
||||||
@Nullable String userAgent,
|
@Nullable String userAgent,
|
||||||
|
@ -41,13 +41,17 @@ public final class FileDataSource extends BaseDataSource {
|
|||||||
/** Thrown when a {@link FileDataSource} encounters an error reading a file. */
|
/** Thrown when a {@link FileDataSource} encounters an error reading a file. */
|
||||||
public static class FileDataSourceException extends DataSourceException {
|
public static class FileDataSourceException extends DataSourceException {
|
||||||
|
|
||||||
/** @deprecated Use {@link #FileDataSourceException(Throwable, int)} */
|
/**
|
||||||
|
* @deprecated Use {@link #FileDataSourceException(Throwable, int)}
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public FileDataSourceException(Exception cause) {
|
public FileDataSourceException(Exception cause) {
|
||||||
super(cause, PlaybackException.ERROR_CODE_IO_UNSPECIFIED);
|
super(cause, PlaybackException.ERROR_CODE_IO_UNSPECIFIED);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #FileDataSourceException(String, Throwable, int)} */
|
/**
|
||||||
|
* @deprecated Use {@link #FileDataSourceException(String, Throwable, int)}
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public FileDataSourceException(String message, IOException cause) {
|
public FileDataSourceException(String message, IOException cause) {
|
||||||
super(message, cause, PlaybackException.ERROR_CODE_IO_UNSPECIFIED);
|
super(message, cause, PlaybackException.ERROR_CODE_IO_UNSPECIFIED);
|
||||||
|
@ -19,7 +19,9 @@ import androidx.media3.common.PriorityTaskManager;
|
|||||||
import androidx.media3.common.util.UnstableApi;
|
import androidx.media3.common.util.UnstableApi;
|
||||||
import androidx.media3.datasource.DataSource.Factory;
|
import androidx.media3.datasource.DataSource.Factory;
|
||||||
|
|
||||||
/** @deprecated Use {@link PriorityDataSource.Factory}. */
|
/**
|
||||||
|
* @deprecated Use {@link PriorityDataSource.Factory}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
public final class PriorityDataSourceFactory implements Factory {
|
public final class PriorityDataSourceFactory implements Factory {
|
||||||
|
@ -58,13 +58,17 @@ public final class RawResourceDataSource extends BaseDataSource {
|
|||||||
|
|
||||||
/** Thrown when an {@link IOException} is encountered reading from a raw resource. */
|
/** Thrown when an {@link IOException} is encountered reading from a raw resource. */
|
||||||
public static class RawResourceDataSourceException extends DataSourceException {
|
public static class RawResourceDataSourceException extends DataSourceException {
|
||||||
/** @deprecated Use {@link #RawResourceDataSourceException(String, Throwable, int)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #RawResourceDataSourceException(String, Throwable, int)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public RawResourceDataSourceException(String message) {
|
public RawResourceDataSourceException(String message) {
|
||||||
super(message, /* cause= */ null, PlaybackException.ERROR_CODE_IO_UNSPECIFIED);
|
super(message, /* cause= */ null, PlaybackException.ERROR_CODE_IO_UNSPECIFIED);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #RawResourceDataSourceException(String, Throwable, int)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #RawResourceDataSourceException(String, Throwable, int)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public RawResourceDataSourceException(Throwable cause) {
|
public RawResourceDataSourceException(Throwable cause) {
|
||||||
super(cause, PlaybackException.ERROR_CODE_IO_UNSPECIFIED);
|
super(cause, PlaybackException.ERROR_CODE_IO_UNSPECIFIED);
|
||||||
@ -101,7 +105,9 @@ public final class RawResourceDataSource extends BaseDataSource {
|
|||||||
private long bytesRemaining;
|
private long bytesRemaining;
|
||||||
private boolean opened;
|
private boolean opened;
|
||||||
|
|
||||||
/** @param context A context. */
|
/**
|
||||||
|
* @param context A context.
|
||||||
|
*/
|
||||||
public RawResourceDataSource(Context context) {
|
public RawResourceDataSource(Context context) {
|
||||||
super(/* isNetwork= */ false);
|
super(/* isNetwork= */ false);
|
||||||
this.resources = context.getResources();
|
this.resources = context.getResources();
|
||||||
|
@ -94,7 +94,9 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param databaseProvider Provides the database in which the index is stored. */
|
/**
|
||||||
|
* @param databaseProvider Provides the database in which the index is stored.
|
||||||
|
*/
|
||||||
public CacheFileMetadataIndex(DatabaseProvider databaseProvider) {
|
public CacheFileMetadataIndex(DatabaseProvider databaseProvider) {
|
||||||
this.databaseProvider = databaseProvider;
|
this.databaseProvider = databaseProvider;
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,9 @@ public final class DefaultContentMetadata implements ContentMetadata {
|
|||||||
this(Collections.emptyMap());
|
this(Collections.emptyMap());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param metadata The metadata entries in their raw byte array form. */
|
/**
|
||||||
|
* @param metadata The metadata entries in their raw byte array form.
|
||||||
|
*/
|
||||||
public DefaultContentMetadata(Map<String, byte[]> metadata) {
|
public DefaultContentMetadata(Map<String, byte[]> metadata) {
|
||||||
this.metadata = Collections.unmodifiableMap(metadata);
|
this.metadata = Collections.unmodifiableMap(metadata);
|
||||||
}
|
}
|
||||||
|
@ -345,7 +345,9 @@ public class CronetDataSource extends BaseDataSource implements HttpDataSource {
|
|||||||
*/
|
*/
|
||||||
public final int cronetConnectionStatus;
|
public final int cronetConnectionStatus;
|
||||||
|
|
||||||
/** @deprecated Use {@link #OpenException(IOException, DataSpec, int, int)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #OpenException(IOException, DataSpec, int, int)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public OpenException(IOException cause, DataSpec dataSpec, int cronetConnectionStatus) {
|
public OpenException(IOException cause, DataSpec dataSpec, int cronetConnectionStatus) {
|
||||||
super(cause, dataSpec, PlaybackException.ERROR_CODE_IO_UNSPECIFIED, TYPE_OPEN);
|
super(cause, dataSpec, PlaybackException.ERROR_CODE_IO_UNSPECIFIED, TYPE_OPEN);
|
||||||
@ -361,7 +363,9 @@ public class CronetDataSource extends BaseDataSource implements HttpDataSource {
|
|||||||
this.cronetConnectionStatus = cronetConnectionStatus;
|
this.cronetConnectionStatus = cronetConnectionStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #OpenException(String, DataSpec, int, int)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #OpenException(String, DataSpec, int, int)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public OpenException(String errorMessage, DataSpec dataSpec, int cronetConnectionStatus) {
|
public OpenException(String errorMessage, DataSpec dataSpec, int cronetConnectionStatus) {
|
||||||
super(errorMessage, dataSpec, PlaybackException.ERROR_CODE_IO_UNSPECIFIED, TYPE_OPEN);
|
super(errorMessage, dataSpec, PlaybackException.ERROR_CODE_IO_UNSPECIFIED, TYPE_OPEN);
|
||||||
|
@ -26,7 +26,9 @@ import androidx.media3.datasource.TransferListener;
|
|||||||
import java.util.concurrent.Executor;
|
import java.util.concurrent.Executor;
|
||||||
import org.chromium.net.CronetEngine;
|
import org.chromium.net.CronetEngine;
|
||||||
|
|
||||||
/** @deprecated Use {@link CronetDataSource.Factory} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link CronetDataSource.Factory} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
public final class CronetDataSourceFactory extends BaseFactory {
|
public final class CronetDataSourceFactory extends BaseFactory {
|
||||||
|
@ -181,21 +181,27 @@ public class OkHttpDataSource extends BaseDataSource implements HttpDataSource {
|
|||||||
private long bytesToRead;
|
private long bytesToRead;
|
||||||
private long bytesRead;
|
private long bytesRead;
|
||||||
|
|
||||||
/** @deprecated Use {@link OkHttpDataSource.Factory} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link OkHttpDataSource.Factory} instead.
|
||||||
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public OkHttpDataSource(Call.Factory callFactory) {
|
public OkHttpDataSource(Call.Factory callFactory) {
|
||||||
this(callFactory, /* userAgent= */ null);
|
this(callFactory, /* userAgent= */ null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link OkHttpDataSource.Factory} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link OkHttpDataSource.Factory} instead.
|
||||||
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public OkHttpDataSource(Call.Factory callFactory, @Nullable String userAgent) {
|
public OkHttpDataSource(Call.Factory callFactory, @Nullable String userAgent) {
|
||||||
this(callFactory, userAgent, /* cacheControl= */ null, /* defaultRequestProperties= */ null);
|
this(callFactory, userAgent, /* cacheControl= */ null, /* defaultRequestProperties= */ null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link OkHttpDataSource.Factory} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link OkHttpDataSource.Factory} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public OkHttpDataSource(
|
public OkHttpDataSource(
|
||||||
Call.Factory callFactory,
|
Call.Factory callFactory,
|
||||||
|
@ -23,7 +23,9 @@ import androidx.media3.datasource.TransferListener;
|
|||||||
import okhttp3.CacheControl;
|
import okhttp3.CacheControl;
|
||||||
import okhttp3.Call;
|
import okhttp3.Call;
|
||||||
|
|
||||||
/** @deprecated Use {@link OkHttpDataSource.Factory} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link OkHttpDataSource.Factory} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
public final class OkHttpDataSourceFactory extends BaseFactory {
|
public final class OkHttpDataSourceFactory extends BaseFactory {
|
||||||
|
@ -20,7 +20,9 @@ import androidx.media3.common.util.UnstableApi;
|
|||||||
import androidx.media3.datasource.DataSource;
|
import androidx.media3.datasource.DataSource;
|
||||||
import androidx.media3.datasource.TransferListener;
|
import androidx.media3.datasource.TransferListener;
|
||||||
|
|
||||||
/** @deprecated Use {@link RtmpDataSource.Factory} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link RtmpDataSource.Factory} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
public final class RtmpDataSourceFactory implements DataSource.Factory {
|
public final class RtmpDataSourceFactory implements DataSource.Factory {
|
||||||
@ -31,7 +33,9 @@ public final class RtmpDataSourceFactory implements DataSource.Factory {
|
|||||||
this(null);
|
this(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param listener An optional listener. */
|
/**
|
||||||
|
* @param listener An optional listener.
|
||||||
|
*/
|
||||||
public RtmpDataSourceFactory(@Nullable TransferListener listener) {
|
public RtmpDataSourceFactory(@Nullable TransferListener listener) {
|
||||||
this.listener = listener;
|
this.listener = listener;
|
||||||
}
|
}
|
||||||
|
@ -69,9 +69,13 @@ public final class CryptoInfo {
|
|||||||
* @see android.media.MediaCodec.CryptoInfo#numSubSamples
|
* @see android.media.MediaCodec.CryptoInfo#numSubSamples
|
||||||
*/
|
*/
|
||||||
public int numSubSamples;
|
public int numSubSamples;
|
||||||
/** @see android.media.MediaCodec.CryptoInfo.Pattern */
|
/**
|
||||||
|
* @see android.media.MediaCodec.CryptoInfo.Pattern
|
||||||
|
*/
|
||||||
public int encryptedBlocks;
|
public int encryptedBlocks;
|
||||||
/** @see android.media.MediaCodec.CryptoInfo.Pattern */
|
/**
|
||||||
|
* @see android.media.MediaCodec.CryptoInfo.Pattern
|
||||||
|
*/
|
||||||
public int clearBlocks;
|
public int clearBlocks;
|
||||||
|
|
||||||
private final android.media.MediaCodec.CryptoInfo frameworkCryptoInfo;
|
private final android.media.MediaCodec.CryptoInfo frameworkCryptoInfo;
|
||||||
@ -82,7 +86,9 @@ public final class CryptoInfo {
|
|||||||
patternHolder = Util.SDK_INT >= 24 ? new PatternHolderV24(frameworkCryptoInfo) : null;
|
patternHolder = Util.SDK_INT >= 24 ? new PatternHolderV24(frameworkCryptoInfo) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see android.media.MediaCodec.CryptoInfo#set(int, int[], int[], byte[], byte[], int) */
|
/**
|
||||||
|
* @see android.media.MediaCodec.CryptoInfo#set(int, int[], int[], byte[], byte[], int)
|
||||||
|
*/
|
||||||
public void set(
|
public void set(
|
||||||
int numSubSamples,
|
int numSubSamples,
|
||||||
int[] numBytesOfClearData,
|
int[] numBytesOfClearData,
|
||||||
|
@ -114,17 +114,27 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
|||||||
AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE
|
AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE
|
||||||
})
|
})
|
||||||
private @interface AudioFocusGain {}
|
private @interface AudioFocusGain {}
|
||||||
/** @see AudioManager#AUDIOFOCUS_NONE */
|
/**
|
||||||
|
* @see AudioManager#AUDIOFOCUS_NONE
|
||||||
|
*/
|
||||||
@SuppressWarnings("InlinedApi")
|
@SuppressWarnings("InlinedApi")
|
||||||
private static final int AUDIOFOCUS_NONE = AudioManager.AUDIOFOCUS_NONE;
|
private static final int AUDIOFOCUS_NONE = AudioManager.AUDIOFOCUS_NONE;
|
||||||
/** @see AudioManager#AUDIOFOCUS_GAIN */
|
/**
|
||||||
|
* @see AudioManager#AUDIOFOCUS_GAIN
|
||||||
|
*/
|
||||||
private static final int AUDIOFOCUS_GAIN = AudioManager.AUDIOFOCUS_GAIN;
|
private static final int AUDIOFOCUS_GAIN = AudioManager.AUDIOFOCUS_GAIN;
|
||||||
/** @see AudioManager#AUDIOFOCUS_GAIN_TRANSIENT */
|
/**
|
||||||
|
* @see AudioManager#AUDIOFOCUS_GAIN_TRANSIENT
|
||||||
|
*/
|
||||||
private static final int AUDIOFOCUS_GAIN_TRANSIENT = AudioManager.AUDIOFOCUS_GAIN_TRANSIENT;
|
private static final int AUDIOFOCUS_GAIN_TRANSIENT = AudioManager.AUDIOFOCUS_GAIN_TRANSIENT;
|
||||||
/** @see AudioManager#AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK */
|
/**
|
||||||
|
* @see AudioManager#AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK
|
||||||
|
*/
|
||||||
private static final int AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK =
|
private static final int AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK =
|
||||||
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK;
|
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK;
|
||||||
/** @see AudioManager#AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE */
|
/**
|
||||||
|
* @see AudioManager#AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE
|
||||||
|
*/
|
||||||
@SuppressWarnings("InlinedApi")
|
@SuppressWarnings("InlinedApi")
|
||||||
private static final int AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE =
|
private static final int AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE =
|
||||||
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE;
|
AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE;
|
||||||
|
@ -224,7 +224,9 @@ public class DefaultLoadControl implements LoadControl {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated use {@link #build} instead. */
|
/**
|
||||||
|
* @deprecated use {@link #build} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public DefaultLoadControl createDefaultLoadControl() {
|
public DefaultLoadControl createDefaultLoadControl() {
|
||||||
return build();
|
return build();
|
||||||
|
@ -103,7 +103,9 @@ public class DefaultRenderersFactory implements RenderersFactory {
|
|||||||
private boolean enableAudioTrackPlaybackParams;
|
private boolean enableAudioTrackPlaybackParams;
|
||||||
private boolean enableOffload;
|
private boolean enableOffload;
|
||||||
|
|
||||||
/** @param context A {@link Context}. */
|
/**
|
||||||
|
* @param context A {@link Context}.
|
||||||
|
*/
|
||||||
public DefaultRenderersFactory(Context context) {
|
public DefaultRenderersFactory(Context context) {
|
||||||
this.context = context;
|
this.context = context;
|
||||||
codecAdapterFactory = new DefaultMediaCodecAdapterFactory();
|
codecAdapterFactory = new DefaultMediaCodecAdapterFactory();
|
||||||
|
@ -160,43 +160,63 @@ public interface ExoPlayer extends Player {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
interface AudioComponent {
|
interface AudioComponent {
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer#setAudioAttributes(AudioAttributes, boolean)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer#setAudioAttributes(AudioAttributes, boolean)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setAudioAttributes(AudioAttributes audioAttributes, boolean handleAudioFocus);
|
void setAudioAttributes(AudioAttributes audioAttributes, boolean handleAudioFocus);
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#getAudioAttributes()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#getAudioAttributes()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
AudioAttributes getAudioAttributes();
|
AudioAttributes getAudioAttributes();
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer#setAudioSessionId(int)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer#setAudioSessionId(int)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setAudioSessionId(int audioSessionId);
|
void setAudioSessionId(int audioSessionId);
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer#getAudioSessionId()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer#getAudioSessionId()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
int getAudioSessionId();
|
int getAudioSessionId();
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer#setAuxEffectInfo(AuxEffectInfo)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer#setAuxEffectInfo(AuxEffectInfo)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setAuxEffectInfo(AuxEffectInfo auxEffectInfo);
|
void setAuxEffectInfo(AuxEffectInfo auxEffectInfo);
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer#clearAuxEffectInfo()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer#clearAuxEffectInfo()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void clearAuxEffectInfo();
|
void clearAuxEffectInfo();
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#setVolume(float)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#setVolume(float)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setVolume(float audioVolume);
|
void setVolume(float audioVolume);
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#getVolume()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#getVolume()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
float getVolume();
|
float getVolume();
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer#setSkipSilenceEnabled(boolean)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer#setSkipSilenceEnabled(boolean)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setSkipSilenceEnabled(boolean skipSilenceEnabled);
|
void setSkipSilenceEnabled(boolean skipSilenceEnabled);
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer#getSkipSilenceEnabled()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer#getSkipSilenceEnabled()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
boolean getSkipSilenceEnabled();
|
boolean getSkipSilenceEnabled();
|
||||||
}
|
}
|
||||||
@ -209,21 +229,29 @@ public interface ExoPlayer extends Player {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
interface VideoComponent {
|
interface VideoComponent {
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer#setVideoScalingMode(int)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer#setVideoScalingMode(int)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setVideoScalingMode(@C.VideoScalingMode int videoScalingMode);
|
void setVideoScalingMode(@C.VideoScalingMode int videoScalingMode);
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer#getVideoScalingMode()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer#getVideoScalingMode()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@C.VideoScalingMode
|
@C.VideoScalingMode
|
||||||
int getVideoScalingMode();
|
int getVideoScalingMode();
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer#setVideoChangeFrameRateStrategy(int)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer#setVideoChangeFrameRateStrategy(int)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setVideoChangeFrameRateStrategy(
|
void setVideoChangeFrameRateStrategy(
|
||||||
@C.VideoChangeFrameRateStrategy int videoChangeFrameRateStrategy);
|
@C.VideoChangeFrameRateStrategy int videoChangeFrameRateStrategy);
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer#getVideoChangeFrameRateStrategy()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer#getVideoChangeFrameRateStrategy()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@C.VideoChangeFrameRateStrategy
|
@C.VideoChangeFrameRateStrategy
|
||||||
int getVideoChangeFrameRateStrategy();
|
int getVideoChangeFrameRateStrategy();
|
||||||
@ -242,7 +270,9 @@ public interface ExoPlayer extends Player {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
void clearVideoFrameMetadataListener(VideoFrameMetadataListener listener);
|
void clearVideoFrameMetadataListener(VideoFrameMetadataListener listener);
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer#setCameraMotionListener(CameraMotionListener)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer#setCameraMotionListener(CameraMotionListener)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setCameraMotionListener(CameraMotionListener listener);
|
void setCameraMotionListener(CameraMotionListener listener);
|
||||||
|
|
||||||
@ -252,43 +282,63 @@ public interface ExoPlayer extends Player {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
void clearCameraMotionListener(CameraMotionListener listener);
|
void clearCameraMotionListener(CameraMotionListener listener);
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#clearVideoSurface()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#clearVideoSurface()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void clearVideoSurface();
|
void clearVideoSurface();
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#clearVideoSurface(Surface)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#clearVideoSurface(Surface)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void clearVideoSurface(@Nullable Surface surface);
|
void clearVideoSurface(@Nullable Surface surface);
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#setVideoSurface(Surface)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#setVideoSurface(Surface)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setVideoSurface(@Nullable Surface surface);
|
void setVideoSurface(@Nullable Surface surface);
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#setVideoSurfaceHolder(SurfaceHolder)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#setVideoSurfaceHolder(SurfaceHolder)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setVideoSurfaceHolder(@Nullable SurfaceHolder surfaceHolder);
|
void setVideoSurfaceHolder(@Nullable SurfaceHolder surfaceHolder);
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#clearVideoSurfaceHolder(SurfaceHolder)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#clearVideoSurfaceHolder(SurfaceHolder)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void clearVideoSurfaceHolder(@Nullable SurfaceHolder surfaceHolder);
|
void clearVideoSurfaceHolder(@Nullable SurfaceHolder surfaceHolder);
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#setVideoSurfaceView(SurfaceView)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#setVideoSurfaceView(SurfaceView)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setVideoSurfaceView(@Nullable SurfaceView surfaceView);
|
void setVideoSurfaceView(@Nullable SurfaceView surfaceView);
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#clearVideoSurfaceView(SurfaceView)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#clearVideoSurfaceView(SurfaceView)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void clearVideoSurfaceView(@Nullable SurfaceView surfaceView);
|
void clearVideoSurfaceView(@Nullable SurfaceView surfaceView);
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#setVideoTextureView(TextureView)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#setVideoTextureView(TextureView)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setVideoTextureView(@Nullable TextureView textureView);
|
void setVideoTextureView(@Nullable TextureView textureView);
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#clearVideoTextureView(TextureView)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#clearVideoTextureView(TextureView)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void clearVideoTextureView(@Nullable TextureView textureView);
|
void clearVideoTextureView(@Nullable TextureView textureView);
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#getVideoSize()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#getVideoSize()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
VideoSize getVideoSize();
|
VideoSize getVideoSize();
|
||||||
}
|
}
|
||||||
@ -301,7 +351,9 @@ public interface ExoPlayer extends Player {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
interface TextComponent {
|
interface TextComponent {
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#getCurrentCues()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#getCurrentCues()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
List<Cue> getCurrentCues();
|
List<Cue> getCurrentCues();
|
||||||
}
|
}
|
||||||
@ -314,31 +366,45 @@ public interface ExoPlayer extends Player {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
interface DeviceComponent {
|
interface DeviceComponent {
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#getDeviceInfo()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#getDeviceInfo()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
DeviceInfo getDeviceInfo();
|
DeviceInfo getDeviceInfo();
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#getDeviceVolume()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#getDeviceVolume()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
int getDeviceVolume();
|
int getDeviceVolume();
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#isDeviceMuted()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#isDeviceMuted()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
boolean isDeviceMuted();
|
boolean isDeviceMuted();
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#setDeviceVolume(int)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#setDeviceVolume(int)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setDeviceVolume(int volume);
|
void setDeviceVolume(int volume);
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#increaseDeviceVolume()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#increaseDeviceVolume()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void increaseDeviceVolume();
|
void increaseDeviceVolume();
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#decreaseDeviceVolume()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#decreaseDeviceVolume()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void decreaseDeviceVolume();
|
void decreaseDeviceVolume();
|
||||||
|
|
||||||
/** @deprecated Use {@link Player#setDeviceMuted(boolean)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Player#setDeviceMuted(boolean)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setDeviceMuted(boolean muted);
|
void setDeviceMuted(boolean muted);
|
||||||
}
|
}
|
||||||
@ -1158,12 +1224,16 @@ public interface ExoPlayer extends Player {
|
|||||||
@UnstableApi
|
@UnstableApi
|
||||||
Clock getClock();
|
Clock getClock();
|
||||||
|
|
||||||
/** @deprecated Use {@link #prepare()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #prepare()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void retry();
|
void retry();
|
||||||
|
|
||||||
/** @deprecated Use {@link #setMediaSource(MediaSource)} and {@link #prepare()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #setMediaSource(MediaSource)} and {@link #prepare()} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void prepare(MediaSource mediaSource);
|
void prepare(MediaSource mediaSource);
|
||||||
@ -1522,7 +1592,9 @@ public interface ExoPlayer extends Player {
|
|||||||
*/
|
*/
|
||||||
void setHandleAudioBecomingNoisy(boolean handleAudioBecomingNoisy);
|
void setHandleAudioBecomingNoisy(boolean handleAudioBecomingNoisy);
|
||||||
|
|
||||||
/** @deprecated Use {@link #setWakeMode(int)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #setWakeMode(int)} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setHandleWakeLock(boolean handleWakeLock);
|
void setHandleWakeLock(boolean handleWakeLock);
|
||||||
|
@ -155,7 +155,9 @@ public final class PlayerMessage {
|
|||||||
return payload;
|
return payload;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #setLooper(Looper)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #setLooper(Looper)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public PlayerMessage setHandler(Handler handler) {
|
public PlayerMessage setHandler(Handler handler) {
|
||||||
return setLooper(handler.getLooper());
|
return setLooper(handler.getLooper());
|
||||||
|
@ -31,7 +31,9 @@ import java.lang.annotation.Target;
|
|||||||
@UnstableApi
|
@UnstableApi
|
||||||
public interface RendererCapabilities {
|
public interface RendererCapabilities {
|
||||||
|
|
||||||
/** @deprecated Use {@link C.FormatSupport} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link C.FormatSupport} instead.
|
||||||
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
@ -47,15 +49,25 @@ public interface RendererCapabilities {
|
|||||||
@interface FormatSupport {}
|
@interface FormatSupport {}
|
||||||
/** A mask to apply to {@link Capabilities} to obtain the {@link C.FormatSupport} only. */
|
/** A mask to apply to {@link Capabilities} to obtain the {@link C.FormatSupport} only. */
|
||||||
int FORMAT_SUPPORT_MASK = 0b111;
|
int FORMAT_SUPPORT_MASK = 0b111;
|
||||||
/** @deprecated Use {@link C#FORMAT_HANDLED} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link C#FORMAT_HANDLED} instead.
|
||||||
|
*/
|
||||||
@Deprecated int FORMAT_HANDLED = C.FORMAT_HANDLED;
|
@Deprecated int FORMAT_HANDLED = C.FORMAT_HANDLED;
|
||||||
/** @deprecated Use {@link C#FORMAT_EXCEEDS_CAPABILITIES} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link C#FORMAT_EXCEEDS_CAPABILITIES} instead.
|
||||||
|
*/
|
||||||
@Deprecated int FORMAT_EXCEEDS_CAPABILITIES = C.FORMAT_EXCEEDS_CAPABILITIES;
|
@Deprecated int FORMAT_EXCEEDS_CAPABILITIES = C.FORMAT_EXCEEDS_CAPABILITIES;
|
||||||
/** @deprecated Use {@link C#FORMAT_UNSUPPORTED_DRM} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link C#FORMAT_UNSUPPORTED_DRM} instead.
|
||||||
|
*/
|
||||||
@Deprecated int FORMAT_UNSUPPORTED_DRM = C.FORMAT_UNSUPPORTED_DRM;
|
@Deprecated int FORMAT_UNSUPPORTED_DRM = C.FORMAT_UNSUPPORTED_DRM;
|
||||||
/** @deprecated Use {@link C#FORMAT_UNSUPPORTED_SUBTYPE} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link C#FORMAT_UNSUPPORTED_SUBTYPE} instead.
|
||||||
|
*/
|
||||||
@Deprecated int FORMAT_UNSUPPORTED_SUBTYPE = C.FORMAT_UNSUPPORTED_SUBTYPE;
|
@Deprecated int FORMAT_UNSUPPORTED_SUBTYPE = C.FORMAT_UNSUPPORTED_SUBTYPE;
|
||||||
/** @deprecated Use {@link C#FORMAT_UNSUPPORTED_TYPE} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link C#FORMAT_UNSUPPORTED_TYPE} instead.
|
||||||
|
*/
|
||||||
@Deprecated int FORMAT_UNSUPPORTED_TYPE = C.FORMAT_UNSUPPORTED_TYPE;
|
@Deprecated int FORMAT_UNSUPPORTED_TYPE = C.FORMAT_UNSUPPORTED_TYPE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -29,7 +29,9 @@ public final class RendererConfiguration {
|
|||||||
/** Whether to enable tunneling. */
|
/** Whether to enable tunneling. */
|
||||||
public final boolean tunneling;
|
public final boolean tunneling;
|
||||||
|
|
||||||
/** @param tunneling Whether to enable tunneling. */
|
/**
|
||||||
|
* @param tunneling Whether to enable tunneling.
|
||||||
|
*/
|
||||||
public RendererConfiguration(boolean tunneling) {
|
public RendererConfiguration(boolean tunneling) {
|
||||||
this.tunneling = tunneling;
|
this.tunneling = tunneling;
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,9 @@ import androidx.media3.exoplayer.video.spherical.CameraMotionListener;
|
|||||||
import androidx.media3.extractor.ExtractorsFactory;
|
import androidx.media3.extractor.ExtractorsFactory;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public class SimpleExoPlayer extends BasePlayer
|
public class SimpleExoPlayer extends BasePlayer
|
||||||
@ -66,20 +68,26 @@ public class SimpleExoPlayer extends BasePlayer
|
|||||||
ExoPlayer.TextComponent,
|
ExoPlayer.TextComponent,
|
||||||
ExoPlayer.DeviceComponent {
|
ExoPlayer.DeviceComponent {
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
public static final class Builder {
|
public static final class Builder {
|
||||||
|
|
||||||
private final ExoPlayer.Builder wrappedBuilder;
|
private final ExoPlayer.Builder wrappedBuilder;
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#Builder(Context)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#Builder(Context)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder(Context context) {
|
public Builder(Context context) {
|
||||||
wrappedBuilder = new ExoPlayer.Builder(context);
|
wrappedBuilder = new ExoPlayer.Builder(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#Builder(Context, RenderersFactory)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#Builder(Context, RenderersFactory)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder(Context context, RenderersFactory renderersFactory) {
|
public Builder(Context context, RenderersFactory renderersFactory) {
|
||||||
wrappedBuilder = new ExoPlayer.Builder(context, renderersFactory);
|
wrappedBuilder = new ExoPlayer.Builder(context, renderersFactory);
|
||||||
@ -143,7 +151,9 @@ public class SimpleExoPlayer extends BasePlayer
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setTrackSelector(TrackSelector)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setTrackSelector(TrackSelector)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setTrackSelector(TrackSelector trackSelector) {
|
public Builder setTrackSelector(TrackSelector trackSelector) {
|
||||||
wrappedBuilder.setTrackSelector(trackSelector);
|
wrappedBuilder.setTrackSelector(trackSelector);
|
||||||
@ -159,21 +169,27 @@ public class SimpleExoPlayer extends BasePlayer
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setLoadControl(LoadControl)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setLoadControl(LoadControl)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setLoadControl(LoadControl loadControl) {
|
public Builder setLoadControl(LoadControl loadControl) {
|
||||||
wrappedBuilder.setLoadControl(loadControl);
|
wrappedBuilder.setLoadControl(loadControl);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setBandwidthMeter(BandwidthMeter)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setBandwidthMeter(BandwidthMeter)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setBandwidthMeter(BandwidthMeter bandwidthMeter) {
|
public Builder setBandwidthMeter(BandwidthMeter bandwidthMeter) {
|
||||||
wrappedBuilder.setBandwidthMeter(bandwidthMeter);
|
wrappedBuilder.setBandwidthMeter(bandwidthMeter);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setLooper(Looper)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setLooper(Looper)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setLooper(Looper looper) {
|
public Builder setLooper(Looper looper) {
|
||||||
wrappedBuilder.setLooper(looper);
|
wrappedBuilder.setLooper(looper);
|
||||||
@ -209,35 +225,45 @@ public class SimpleExoPlayer extends BasePlayer
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setWakeMode(int)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setWakeMode(int)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setWakeMode(@C.WakeMode int wakeMode) {
|
public Builder setWakeMode(@C.WakeMode int wakeMode) {
|
||||||
wrappedBuilder.setWakeMode(wakeMode);
|
wrappedBuilder.setWakeMode(wakeMode);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setHandleAudioBecomingNoisy(boolean)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setHandleAudioBecomingNoisy(boolean)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setHandleAudioBecomingNoisy(boolean handleAudioBecomingNoisy) {
|
public Builder setHandleAudioBecomingNoisy(boolean handleAudioBecomingNoisy) {
|
||||||
wrappedBuilder.setHandleAudioBecomingNoisy(handleAudioBecomingNoisy);
|
wrappedBuilder.setHandleAudioBecomingNoisy(handleAudioBecomingNoisy);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setSkipSilenceEnabled(boolean)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setSkipSilenceEnabled(boolean)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setSkipSilenceEnabled(boolean skipSilenceEnabled) {
|
public Builder setSkipSilenceEnabled(boolean skipSilenceEnabled) {
|
||||||
wrappedBuilder.setSkipSilenceEnabled(skipSilenceEnabled);
|
wrappedBuilder.setSkipSilenceEnabled(skipSilenceEnabled);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setVideoScalingMode(int)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setVideoScalingMode(int)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setVideoScalingMode(@C.VideoScalingMode int videoScalingMode) {
|
public Builder setVideoScalingMode(@C.VideoScalingMode int videoScalingMode) {
|
||||||
wrappedBuilder.setVideoScalingMode(videoScalingMode);
|
wrappedBuilder.setVideoScalingMode(videoScalingMode);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setVideoChangeFrameRateStrategy(int)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setVideoChangeFrameRateStrategy(int)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setVideoChangeFrameRateStrategy(
|
public Builder setVideoChangeFrameRateStrategy(
|
||||||
@C.VideoChangeFrameRateStrategy int videoChangeFrameRateStrategy) {
|
@C.VideoChangeFrameRateStrategy int videoChangeFrameRateStrategy) {
|
||||||
@ -245,49 +271,63 @@ public class SimpleExoPlayer extends BasePlayer
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setUseLazyPreparation(boolean)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setUseLazyPreparation(boolean)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setUseLazyPreparation(boolean useLazyPreparation) {
|
public Builder setUseLazyPreparation(boolean useLazyPreparation) {
|
||||||
wrappedBuilder.setUseLazyPreparation(useLazyPreparation);
|
wrappedBuilder.setUseLazyPreparation(useLazyPreparation);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setSeekParameters(SeekParameters)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setSeekParameters(SeekParameters)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setSeekParameters(SeekParameters seekParameters) {
|
public Builder setSeekParameters(SeekParameters seekParameters) {
|
||||||
wrappedBuilder.setSeekParameters(seekParameters);
|
wrappedBuilder.setSeekParameters(seekParameters);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setSeekBackIncrementMs(long)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setSeekBackIncrementMs(long)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setSeekBackIncrementMs(@IntRange(from = 1) long seekBackIncrementMs) {
|
public Builder setSeekBackIncrementMs(@IntRange(from = 1) long seekBackIncrementMs) {
|
||||||
wrappedBuilder.setSeekBackIncrementMs(seekBackIncrementMs);
|
wrappedBuilder.setSeekBackIncrementMs(seekBackIncrementMs);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setSeekForwardIncrementMs(long)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setSeekForwardIncrementMs(long)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setSeekForwardIncrementMs(@IntRange(from = 1) long seekForwardIncrementMs) {
|
public Builder setSeekForwardIncrementMs(@IntRange(from = 1) long seekForwardIncrementMs) {
|
||||||
wrappedBuilder.setSeekForwardIncrementMs(seekForwardIncrementMs);
|
wrappedBuilder.setSeekForwardIncrementMs(seekForwardIncrementMs);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setReleaseTimeoutMs(long)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setReleaseTimeoutMs(long)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setReleaseTimeoutMs(long releaseTimeoutMs) {
|
public Builder setReleaseTimeoutMs(long releaseTimeoutMs) {
|
||||||
wrappedBuilder.setReleaseTimeoutMs(releaseTimeoutMs);
|
wrappedBuilder.setReleaseTimeoutMs(releaseTimeoutMs);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setDetachSurfaceTimeoutMs(long)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setDetachSurfaceTimeoutMs(long)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setDetachSurfaceTimeoutMs(long detachSurfaceTimeoutMs) {
|
public Builder setDetachSurfaceTimeoutMs(long detachSurfaceTimeoutMs) {
|
||||||
wrappedBuilder.setDetachSurfaceTimeoutMs(detachSurfaceTimeoutMs);
|
wrappedBuilder.setDetachSurfaceTimeoutMs(detachSurfaceTimeoutMs);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setPauseAtEndOfMediaItems(boolean)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setPauseAtEndOfMediaItems(boolean)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setPauseAtEndOfMediaItems(boolean pauseAtEndOfMediaItems) {
|
public Builder setPauseAtEndOfMediaItems(boolean pauseAtEndOfMediaItems) {
|
||||||
wrappedBuilder.setPauseAtEndOfMediaItems(pauseAtEndOfMediaItems);
|
wrappedBuilder.setPauseAtEndOfMediaItems(pauseAtEndOfMediaItems);
|
||||||
@ -304,7 +344,9 @@ public class SimpleExoPlayer extends BasePlayer
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#setClock(Clock)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#setClock(Clock)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
public Builder setClock(Clock clock) {
|
public Builder setClock(Clock clock) {
|
||||||
@ -312,7 +354,9 @@ public class SimpleExoPlayer extends BasePlayer
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link ExoPlayer.Builder#build()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link ExoPlayer.Builder#build()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public SimpleExoPlayer build() {
|
public SimpleExoPlayer build() {
|
||||||
return wrappedBuilder.buildSimpleExoPlayer();
|
return wrappedBuilder.buildSimpleExoPlayer();
|
||||||
@ -322,7 +366,9 @@ public class SimpleExoPlayer extends BasePlayer
|
|||||||
private final ExoPlayerImpl player;
|
private final ExoPlayerImpl player;
|
||||||
private final ConditionVariable constructorFinished;
|
private final ConditionVariable constructorFinished;
|
||||||
|
|
||||||
/** @deprecated Use the {@link ExoPlayer.Builder}. */
|
/**
|
||||||
|
* @deprecated Use the {@link ExoPlayer.Builder}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
protected SimpleExoPlayer(
|
protected SimpleExoPlayer(
|
||||||
Context context,
|
Context context,
|
||||||
@ -349,12 +395,16 @@ public class SimpleExoPlayer extends BasePlayer
|
|||||||
.setLooper(applicationLooper));
|
.setLooper(applicationLooper));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param builder The {@link Builder} to obtain all construction parameters. */
|
/**
|
||||||
|
* @param builder The {@link Builder} to obtain all construction parameters.
|
||||||
|
*/
|
||||||
protected SimpleExoPlayer(Builder builder) {
|
protected SimpleExoPlayer(Builder builder) {
|
||||||
this(builder.wrappedBuilder);
|
this(builder.wrappedBuilder);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param builder The {@link ExoPlayer.Builder} to obtain all construction parameters. */
|
/**
|
||||||
|
* @param builder The {@link ExoPlayer.Builder} to obtain all construction parameters.
|
||||||
|
*/
|
||||||
/* package */ SimpleExoPlayer(ExoPlayer.Builder builder) {
|
/* package */ SimpleExoPlayer(ExoPlayer.Builder builder) {
|
||||||
constructorFinished = new ConditionVariable();
|
constructorFinished = new ConditionVariable();
|
||||||
try {
|
try {
|
||||||
@ -696,7 +746,9 @@ public class SimpleExoPlayer extends BasePlayer
|
|||||||
return player.getPlayerError();
|
return player.getPlayerError();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #prepare()} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #prepare()} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("deprecation") // Calling deprecated method.
|
@SuppressWarnings("deprecation") // Calling deprecated method.
|
||||||
|
@ -669,7 +669,9 @@ public interface AnalyticsListener {
|
|||||||
*/
|
*/
|
||||||
default void onIsLoadingChanged(EventTime eventTime, boolean isLoading) {}
|
default void onIsLoadingChanged(EventTime eventTime, boolean isLoading) {}
|
||||||
|
|
||||||
/** @deprecated Use {@link #onIsLoadingChanged(EventTime, boolean)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #onIsLoadingChanged(EventTime, boolean)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void onLoadingChanged(EventTime eventTime, boolean isLoading) {}
|
default void onLoadingChanged(EventTime eventTime, boolean isLoading) {}
|
||||||
|
|
||||||
@ -840,7 +842,9 @@ public interface AnalyticsListener {
|
|||||||
*/
|
*/
|
||||||
default void onCues(EventTime eventTime, List<Cue> cues) {}
|
default void onCues(EventTime eventTime, List<Cue> cues) {}
|
||||||
|
|
||||||
/** @deprecated Use {@link #onAudioEnabled} and {@link #onVideoEnabled} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #onAudioEnabled} and {@link #onVideoEnabled} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void onDecoderEnabled(
|
default void onDecoderEnabled(
|
||||||
EventTime eventTime, int trackType, DecoderCounters decoderCounters) {}
|
EventTime eventTime, int trackType, DecoderCounters decoderCounters) {}
|
||||||
@ -860,7 +864,9 @@ public interface AnalyticsListener {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
default void onDecoderInputFormatChanged(EventTime eventTime, int trackType, Format format) {}
|
default void onDecoderInputFormatChanged(EventTime eventTime, int trackType, Format format) {}
|
||||||
|
|
||||||
/** @deprecated Use {@link #onAudioDisabled} and {@link #onVideoDisabled} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #onAudioDisabled} and {@link #onVideoDisabled} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void onDecoderDisabled(
|
default void onDecoderDisabled(
|
||||||
EventTime eventTime, int trackType, DecoderCounters decoderCounters) {}
|
EventTime eventTime, int trackType, DecoderCounters decoderCounters) {}
|
||||||
@ -889,7 +895,9 @@ public interface AnalyticsListener {
|
|||||||
long initializedTimestampMs,
|
long initializedTimestampMs,
|
||||||
long initializationDurationMs) {}
|
long initializationDurationMs) {}
|
||||||
|
|
||||||
/** @deprecated Use {@link #onAudioDecoderInitialized(EventTime, String, long, long)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #onAudioDecoderInitialized(EventTime, String, long, long)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void onAudioDecoderInitialized(
|
default void onAudioDecoderInitialized(
|
||||||
EventTime eventTime, String decoderName, long initializationDurationMs) {}
|
EventTime eventTime, String decoderName, long initializationDurationMs) {}
|
||||||
@ -1058,7 +1066,9 @@ public interface AnalyticsListener {
|
|||||||
long initializedTimestampMs,
|
long initializedTimestampMs,
|
||||||
long initializationDurationMs) {}
|
long initializationDurationMs) {}
|
||||||
|
|
||||||
/** @deprecated Use {@link #onVideoDecoderInitialized(EventTime, String, long, long)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #onVideoDecoderInitialized(EventTime, String, long, long)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void onVideoDecoderInitialized(
|
default void onVideoDecoderInitialized(
|
||||||
EventTime eventTime, String decoderName, long initializationDurationMs) {}
|
EventTime eventTime, String decoderName, long initializationDurationMs) {}
|
||||||
@ -1164,7 +1174,9 @@ public interface AnalyticsListener {
|
|||||||
*/
|
*/
|
||||||
default void onVideoSizeChanged(EventTime eventTime, VideoSize videoSize) {}
|
default void onVideoSizeChanged(EventTime eventTime, VideoSize videoSize) {}
|
||||||
|
|
||||||
/** @deprecated Implement {@link #onVideoSizeChanged(EventTime eventTime, VideoSize)} instead. */
|
/**
|
||||||
|
* @deprecated Implement {@link #onVideoSizeChanged(EventTime eventTime, VideoSize)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void onVideoSizeChanged(
|
default void onVideoSizeChanged(
|
||||||
EventTime eventTime,
|
EventTime eventTime,
|
||||||
@ -1184,7 +1196,9 @@ public interface AnalyticsListener {
|
|||||||
*/
|
*/
|
||||||
default void onSurfaceSizeChanged(EventTime eventTime, int width, int height) {}
|
default void onSurfaceSizeChanged(EventTime eventTime, int width, int height) {}
|
||||||
|
|
||||||
/** @deprecated Implement {@link #onDrmSessionAcquired(EventTime, int)} instead. */
|
/**
|
||||||
|
* @deprecated Implement {@link #onDrmSessionAcquired(EventTime, int)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void onDrmSessionAcquired(EventTime eventTime) {}
|
default void onDrmSessionAcquired(EventTime eventTime) {}
|
||||||
|
|
||||||
|
@ -59,7 +59,9 @@ public interface AudioRendererEventListener {
|
|||||||
default void onAudioDecoderInitialized(
|
default void onAudioDecoderInitialized(
|
||||||
String decoderName, long initializedTimestampMs, long initializationDurationMs) {}
|
String decoderName, long initializedTimestampMs, long initializationDurationMs) {}
|
||||||
|
|
||||||
/** @deprecated Use {@link #onAudioInputFormatChanged(Format, DecoderReuseEvaluation)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #onAudioInputFormatChanged(Format, DecoderReuseEvaluation)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void onAudioInputFormatChanged(Format format) {}
|
default void onAudioInputFormatChanged(Format format) {}
|
||||||
|
|
||||||
|
@ -116,11 +116,17 @@ import java.lang.reflect.Method;
|
|||||||
@Target(TYPE_USE)
|
@Target(TYPE_USE)
|
||||||
@IntDef({PLAYSTATE_STOPPED, PLAYSTATE_PAUSED, PLAYSTATE_PLAYING})
|
@IntDef({PLAYSTATE_STOPPED, PLAYSTATE_PAUSED, PLAYSTATE_PLAYING})
|
||||||
private @interface PlayState {}
|
private @interface PlayState {}
|
||||||
/** @see AudioTrack#PLAYSTATE_STOPPED */
|
/**
|
||||||
|
* @see AudioTrack#PLAYSTATE_STOPPED
|
||||||
|
*/
|
||||||
private static final int PLAYSTATE_STOPPED = AudioTrack.PLAYSTATE_STOPPED;
|
private static final int PLAYSTATE_STOPPED = AudioTrack.PLAYSTATE_STOPPED;
|
||||||
/** @see AudioTrack#PLAYSTATE_PAUSED */
|
/**
|
||||||
|
* @see AudioTrack#PLAYSTATE_PAUSED
|
||||||
|
*/
|
||||||
private static final int PLAYSTATE_PAUSED = AudioTrack.PLAYSTATE_PAUSED;
|
private static final int PLAYSTATE_PAUSED = AudioTrack.PLAYSTATE_PAUSED;
|
||||||
/** @see AudioTrack#PLAYSTATE_PLAYING */
|
/**
|
||||||
|
* @see AudioTrack#PLAYSTATE_PLAYING
|
||||||
|
*/
|
||||||
private static final int PLAYSTATE_PLAYING = AudioTrack.PLAYSTATE_PLAYING;
|
private static final int PLAYSTATE_PLAYING = AudioTrack.PLAYSTATE_PLAYING;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -533,7 +533,9 @@ public final class DefaultAudioSink implements AudioSink {
|
|||||||
private boolean offloadDisabledUntilNextConfiguration;
|
private boolean offloadDisabledUntilNextConfiguration;
|
||||||
private boolean isWaitingForOffloadEndOfStreamHandled;
|
private boolean isWaitingForOffloadEndOfStreamHandled;
|
||||||
|
|
||||||
/** @deprecated Use {@link Builder}. */
|
/**
|
||||||
|
* @deprecated Use {@link Builder}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@InlineMeValidationDisabled("Migrate constructor to Builder")
|
@InlineMeValidationDisabled("Migrate constructor to Builder")
|
||||||
@InlineMe(
|
@InlineMe(
|
||||||
@ -551,7 +553,9 @@ public final class DefaultAudioSink implements AudioSink {
|
|||||||
.setAudioProcessors(audioProcessors));
|
.setAudioProcessors(audioProcessors));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Builder}. */
|
/**
|
||||||
|
* @deprecated Use {@link Builder}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@InlineMeValidationDisabled("Migrate constructor to Builder")
|
@InlineMeValidationDisabled("Migrate constructor to Builder")
|
||||||
@InlineMe(
|
@InlineMe(
|
||||||
@ -573,7 +577,9 @@ public final class DefaultAudioSink implements AudioSink {
|
|||||||
.setEnableFloatOutput(enableFloatOutput));
|
.setEnableFloatOutput(enableFloatOutput));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Builder}. */
|
/**
|
||||||
|
* @deprecated Use {@link Builder}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@InlineMeValidationDisabled("Migrate constructor to Builder")
|
@InlineMeValidationDisabled("Migrate constructor to Builder")
|
||||||
@InlineMe(
|
@InlineMe(
|
||||||
|
@ -30,7 +30,9 @@ import java.util.concurrent.CopyOnWriteArrayList;
|
|||||||
@UnstableApi
|
@UnstableApi
|
||||||
public interface DrmSessionEventListener {
|
public interface DrmSessionEventListener {
|
||||||
|
|
||||||
/** @deprecated Implement {@link #onDrmSessionAcquired(int, MediaPeriodId, int)} instead. */
|
/**
|
||||||
|
* @deprecated Implement {@link #onDrmSessionAcquired(int, MediaPeriodId, int)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void onDrmSessionAcquired(int windowIndex, @Nullable MediaPeriodId mediaPeriodId) {}
|
default void onDrmSessionAcquired(int windowIndex, @Nullable MediaPeriodId mediaPeriodId) {}
|
||||||
|
|
||||||
|
@ -32,7 +32,9 @@ public final class LocalMediaDrmCallback implements MediaDrmCallback {
|
|||||||
|
|
||||||
private final byte[] keyResponse;
|
private final byte[] keyResponse;
|
||||||
|
|
||||||
/** @param keyResponse The fixed response for all key requests. */
|
/**
|
||||||
|
* @param keyResponse The fixed response for all key requests.
|
||||||
|
*/
|
||||||
public LocalMediaDrmCallback(byte[] keyResponse) {
|
public LocalMediaDrmCallback(byte[] keyResponse) {
|
||||||
this.keyResponse = Assertions.checkNotNull(keyResponse);
|
this.keyResponse = Assertions.checkNotNull(keyResponse);
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,9 @@ public final class UnsupportedDrmException extends Exception {
|
|||||||
/** Either {@link #REASON_UNSUPPORTED_SCHEME} or {@link #REASON_INSTANTIATION_ERROR}. */
|
/** Either {@link #REASON_UNSUPPORTED_SCHEME} or {@link #REASON_INSTANTIATION_ERROR}. */
|
||||||
public final @Reason int reason;
|
public final @Reason int reason;
|
||||||
|
|
||||||
/** @param reason {@link #REASON_UNSUPPORTED_SCHEME} or {@link #REASON_INSTANTIATION_ERROR}. */
|
/**
|
||||||
|
* @param reason {@link #REASON_UNSUPPORTED_SCHEME} or {@link #REASON_INSTANTIATION_ERROR}.
|
||||||
|
*/
|
||||||
public UnsupportedDrmException(@Reason int reason) {
|
public UnsupportedDrmException(@Reason int reason) {
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
}
|
}
|
||||||
|
@ -22,12 +22,16 @@ import java.io.IOException;
|
|||||||
@UnstableApi
|
@UnstableApi
|
||||||
public final class DownloadException extends IOException {
|
public final class DownloadException extends IOException {
|
||||||
|
|
||||||
/** @param message The message for the exception. */
|
/**
|
||||||
|
* @param message The message for the exception.
|
||||||
|
*/
|
||||||
public DownloadException(String message) {
|
public DownloadException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param cause The cause for the exception. */
|
/**
|
||||||
|
* @param cause The cause for the exception.
|
||||||
|
*/
|
||||||
public DownloadException(Throwable cause) {
|
public DownloadException(Throwable cause) {
|
||||||
super(cause);
|
super(cause);
|
||||||
}
|
}
|
||||||
|
@ -173,13 +173,17 @@ public final class DownloadHelper {
|
|||||||
return capabilities;
|
return capabilities;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #forMediaItem(Context, MediaItem)} */
|
/**
|
||||||
|
* @deprecated Use {@link #forMediaItem(Context, MediaItem)}
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static DownloadHelper forProgressive(Context context, Uri uri) {
|
public static DownloadHelper forProgressive(Context context, Uri uri) {
|
||||||
return forMediaItem(context, new MediaItem.Builder().setUri(uri).build());
|
return forMediaItem(context, new MediaItem.Builder().setUri(uri).build());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #forMediaItem(Context, MediaItem)} */
|
/**
|
||||||
|
* @deprecated Use {@link #forMediaItem(Context, MediaItem)}
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static DownloadHelper forProgressive(Context context, Uri uri, @Nullable String cacheKey) {
|
public static DownloadHelper forProgressive(Context context, Uri uri, @Nullable String cacheKey) {
|
||||||
return forMediaItem(
|
return forMediaItem(
|
||||||
|
@ -225,7 +225,9 @@ public abstract class DownloadService extends Service {
|
|||||||
/* channelDescriptionResourceId= */ 0);
|
/* channelDescriptionResourceId= */ 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #DownloadService(int, long, String, int, int)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #DownloadService(int, long, String, int, int)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
protected DownloadService(
|
protected DownloadService(
|
||||||
int foregroundNotificationId,
|
int foregroundNotificationId,
|
||||||
|
@ -76,7 +76,9 @@ public final class Requirements implements Parcelable {
|
|||||||
|
|
||||||
private final @RequirementFlags int requirements;
|
private final @RequirementFlags int requirements;
|
||||||
|
|
||||||
/** @param requirements A combination of requirement flags. */
|
/**
|
||||||
|
* @param requirements A combination of requirement flags.
|
||||||
|
*/
|
||||||
public Requirements(@RequirementFlags int requirements) {
|
public Requirements(@RequirementFlags int requirements) {
|
||||||
if ((requirements & NETWORK_UNMETERED) != 0) {
|
if ((requirements & NETWORK_UNMETERED) != 0) {
|
||||||
// Make sure network requirement flags are consistent.
|
// Make sure network requirement flags are consistent.
|
||||||
|
@ -65,7 +65,9 @@ public final class ClippingMediaSource extends CompositeMediaSource<Void> {
|
|||||||
/** The reason clipping failed. */
|
/** The reason clipping failed. */
|
||||||
public final @Reason int reason;
|
public final @Reason int reason;
|
||||||
|
|
||||||
/** @param reason The reason clipping failed. */
|
/**
|
||||||
|
* @param reason The reason clipping failed.
|
||||||
|
*/
|
||||||
public IllegalClippingException(@Reason int reason) {
|
public IllegalClippingException(@Reason int reason) {
|
||||||
super("Illegal clipping: " + getReasonDescription(reason));
|
super("Illegal clipping: " + getReasonDescription(reason));
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
|
@ -97,7 +97,9 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
|
|||||||
@SuppressWarnings("deprecation") // Implement deprecated type for backwards compatibility.
|
@SuppressWarnings("deprecation") // Implement deprecated type for backwards compatibility.
|
||||||
public final class DefaultMediaSourceFactory implements MediaSourceFactory {
|
public final class DefaultMediaSourceFactory implements MediaSourceFactory {
|
||||||
|
|
||||||
/** @deprecated Use {@link AdsLoader.Provider} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link AdsLoader.Provider} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public interface AdsLoaderProvider extends AdsLoader.Provider {}
|
public interface AdsLoaderProvider extends AdsLoader.Provider {}
|
||||||
|
@ -22,7 +22,9 @@ import androidx.media3.common.util.UnstableApi;
|
|||||||
import androidx.media3.exoplayer.drm.DrmSessionManagerProvider;
|
import androidx.media3.exoplayer.drm.DrmSessionManagerProvider;
|
||||||
import androidx.media3.exoplayer.upstream.LoadErrorHandlingPolicy;
|
import androidx.media3.exoplayer.upstream.LoadErrorHandlingPolicy;
|
||||||
|
|
||||||
/** @deprecated Use {@link MediaSource.Factory}. */
|
/**
|
||||||
|
* @deprecated Use {@link MediaSource.Factory}.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public interface MediaSourceFactory extends MediaSource.Factory {
|
public interface MediaSourceFactory extends MediaSource.Factory {
|
||||||
|
@ -63,7 +63,9 @@ public final class MergingMediaSource extends CompositeMediaSource<Integer> {
|
|||||||
/** The reason the merge failed. */
|
/** The reason the merge failed. */
|
||||||
public final @Reason int reason;
|
public final @Reason int reason;
|
||||||
|
|
||||||
/** @param reason The reason the merge failed. */
|
/**
|
||||||
|
* @param reason The reason the merge failed.
|
||||||
|
*/
|
||||||
public IllegalMergeException(@Reason int reason) {
|
public IllegalMergeException(@Reason int reason) {
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
}
|
}
|
||||||
|
@ -1484,19 +1484,25 @@ public class DefaultTrackSelector extends MappingTrackSelector {
|
|||||||
private final ExoTrackSelection.Factory trackSelectionFactory;
|
private final ExoTrackSelection.Factory trackSelectionFactory;
|
||||||
private final AtomicReference<Parameters> parametersReference;
|
private final AtomicReference<Parameters> parametersReference;
|
||||||
|
|
||||||
/** @deprecated Use {@link #DefaultTrackSelector(Context)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #DefaultTrackSelector(Context)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public DefaultTrackSelector() {
|
public DefaultTrackSelector() {
|
||||||
this(Parameters.DEFAULT_WITHOUT_CONTEXT, new AdaptiveTrackSelection.Factory());
|
this(Parameters.DEFAULT_WITHOUT_CONTEXT, new AdaptiveTrackSelection.Factory());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #DefaultTrackSelector(Context, ExoTrackSelection.Factory)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #DefaultTrackSelector(Context, ExoTrackSelection.Factory)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public DefaultTrackSelector(ExoTrackSelection.Factory trackSelectionFactory) {
|
public DefaultTrackSelector(ExoTrackSelection.Factory trackSelectionFactory) {
|
||||||
this(Parameters.DEFAULT_WITHOUT_CONTEXT, trackSelectionFactory);
|
this(Parameters.DEFAULT_WITHOUT_CONTEXT, trackSelectionFactory);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param context Any {@link Context}. */
|
/**
|
||||||
|
* @param context Any {@link Context}.
|
||||||
|
*/
|
||||||
public DefaultTrackSelector(Context context) {
|
public DefaultTrackSelector(Context context) {
|
||||||
this(context, new AdaptiveTrackSelection.Factory());
|
this(context, new AdaptiveTrackSelection.Factory());
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,9 @@ public final class RandomTrackSelection extends BaseTrackSelection {
|
|||||||
random = new Random();
|
random = new Random();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param seed A seed for the {@link Random} instance used by the factory. */
|
/**
|
||||||
|
* @param seed A seed for the {@link Random} instance used by the factory.
|
||||||
|
*/
|
||||||
public Factory(int seed) {
|
public Factory(int seed) {
|
||||||
random = new Random(seed);
|
random = new Random(seed);
|
||||||
}
|
}
|
||||||
|
@ -290,7 +290,9 @@ public final class DefaultBandwidthMeter implements BandwidthMeter, TransferList
|
|||||||
private boolean networkTypeOverrideSet;
|
private boolean networkTypeOverrideSet;
|
||||||
private @C.NetworkType int networkTypeOverride;
|
private @C.NetworkType int networkTypeOverride;
|
||||||
|
|
||||||
/** @deprecated Use {@link Builder} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Builder} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public DefaultBandwidthMeter() {
|
public DefaultBandwidthMeter() {
|
||||||
this(
|
this(
|
||||||
|
@ -41,7 +41,9 @@ public class DefaultLoadErrorHandlingPolicy implements LoadErrorHandlingPolicy {
|
|||||||
public static final int DEFAULT_MIN_LOADABLE_RETRY_COUNT_PROGRESSIVE_LIVE = 6;
|
public static final int DEFAULT_MIN_LOADABLE_RETRY_COUNT_PROGRESSIVE_LIVE = 6;
|
||||||
/** The default duration for which a track is excluded in milliseconds. */
|
/** The default duration for which a track is excluded in milliseconds. */
|
||||||
public static final long DEFAULT_TRACK_EXCLUSION_MS = 60_000;
|
public static final long DEFAULT_TRACK_EXCLUSION_MS = 60_000;
|
||||||
/** @deprecated Use {@link #DEFAULT_TRACK_EXCLUSION_MS} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #DEFAULT_TRACK_EXCLUSION_MS} instead.
|
||||||
|
*/
|
||||||
@Deprecated public static final long DEFAULT_TRACK_BLACKLIST_MS = DEFAULT_TRACK_EXCLUSION_MS;
|
@Deprecated public static final long DEFAULT_TRACK_BLACKLIST_MS = DEFAULT_TRACK_EXCLUSION_MS;
|
||||||
/** The default duration for which a location is excluded in milliseconds. */
|
/** The default duration for which a location is excluded in milliseconds. */
|
||||||
public static final long DEFAULT_LOCATION_EXCLUSION_MS = 5 * 60_000;
|
public static final long DEFAULT_LOCATION_EXCLUSION_MS = 5 * 60_000;
|
||||||
|
@ -57,7 +57,9 @@ public class SlidingPercentile {
|
|||||||
private int totalWeight;
|
private int totalWeight;
|
||||||
private int recycledSampleCount;
|
private int recycledSampleCount;
|
||||||
|
|
||||||
/** @param maxWeight The maximum weight. */
|
/**
|
||||||
|
* @param maxWeight The maximum weight.
|
||||||
|
*/
|
||||||
public SlidingPercentile(int maxWeight) {
|
public SlidingPercentile(int maxWeight) {
|
||||||
this.maxWeight = maxWeight;
|
this.maxWeight = maxWeight;
|
||||||
recycledSamples = new Sample[MAX_RECYCLED_SAMPLES];
|
recycledSamples = new Sample[MAX_RECYCLED_SAMPLES];
|
||||||
|
@ -50,7 +50,9 @@ public final class VideoDecoderGLSurfaceView extends GLSurfaceView
|
|||||||
|
|
||||||
private final Renderer renderer;
|
private final Renderer renderer;
|
||||||
|
|
||||||
/** @param context A {@link Context}. */
|
/**
|
||||||
|
* @param context A {@link Context}.
|
||||||
|
*/
|
||||||
public VideoDecoderGLSurfaceView(Context context) {
|
public VideoDecoderGLSurfaceView(Context context) {
|
||||||
this(context, /* attrs= */ null);
|
this(context, /* attrs= */ null);
|
||||||
}
|
}
|
||||||
@ -74,7 +76,9 @@ public final class VideoDecoderGLSurfaceView extends GLSurfaceView
|
|||||||
renderer.setOutputBuffer(outputBuffer);
|
renderer.setOutputBuffer(outputBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated This class implements {@link VideoDecoderOutputBufferRenderer} directly. */
|
/**
|
||||||
|
* @deprecated This class implements {@link VideoDecoderOutputBufferRenderer} directly.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public VideoDecoderOutputBufferRenderer getVideoDecoderOutputBufferRenderer() {
|
public VideoDecoderOutputBufferRenderer getVideoDecoderOutputBufferRenderer() {
|
||||||
return this;
|
return this;
|
||||||
|
@ -59,7 +59,9 @@ public interface VideoRendererEventListener {
|
|||||||
default void onVideoDecoderInitialized(
|
default void onVideoDecoderInitialized(
|
||||||
String decoderName, long initializedTimestampMs, long initializationDurationMs) {}
|
String decoderName, long initializedTimestampMs, long initializationDurationMs) {}
|
||||||
|
|
||||||
/** @deprecated Use {@link #onVideoInputFormatChanged(Format, DecoderReuseEvaluation)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #onVideoInputFormatChanged(Format, DecoderReuseEvaluation)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void onVideoInputFormatChanged(Format format) {}
|
default void onVideoInputFormatChanged(Format format) {}
|
||||||
|
|
||||||
|
@ -301,7 +301,9 @@ public final class DashMediaSource extends BaseMediaSource {
|
|||||||
* if no value is defined in the {@link MediaItem} or the manifest.
|
* if no value is defined in the {@link MediaItem} or the manifest.
|
||||||
*/
|
*/
|
||||||
public static final long DEFAULT_FALLBACK_TARGET_LIVE_OFFSET_MS = 30_000;
|
public static final long DEFAULT_FALLBACK_TARGET_LIVE_OFFSET_MS = 30_000;
|
||||||
/** @deprecated Use {@link #DEFAULT_FALLBACK_TARGET_LIVE_OFFSET_MS} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #DEFAULT_FALLBACK_TARGET_LIVE_OFFSET_MS} instead.
|
||||||
|
*/
|
||||||
@Deprecated public static final long DEFAULT_LIVE_PRESENTATION_DELAY_MS = 30_000;
|
@Deprecated public static final long DEFAULT_LIVE_PRESENTATION_DELAY_MS = 30_000;
|
||||||
/** The media id used by media items of dash media sources without a manifest URI. */
|
/** The media id used by media items of dash media sources without a manifest URI. */
|
||||||
public static final String DEFAULT_MEDIA_ID = "DashMediaSource";
|
public static final String DEFAULT_MEDIA_ID = "DashMediaSource";
|
||||||
|
@ -23,7 +23,9 @@ import androidx.media3.exoplayer.dash.DashSegmentIndex;
|
|||||||
|
|
||||||
private final RangedUri uri;
|
private final RangedUri uri;
|
||||||
|
|
||||||
/** @param uri A {@link RangedUri} defining the location of the segment data. */
|
/**
|
||||||
|
* @param uri A {@link RangedUri} defining the location of the segment data.
|
||||||
|
*/
|
||||||
public SingleSegmentIndex(RangedUri uri) {
|
public SingleSegmentIndex(RangedUri uri) {
|
||||||
this.uri = uri;
|
this.uri = uri;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,9 @@ public final class DefaultHlsDataSourceFactory implements HlsDataSourceFactory {
|
|||||||
|
|
||||||
private final DataSource.Factory dataSourceFactory;
|
private final DataSource.Factory dataSourceFactory;
|
||||||
|
|
||||||
/** @param dataSourceFactory The {@link DataSource.Factory} to use for all data types. */
|
/**
|
||||||
|
* @param dataSourceFactory The {@link DataSource.Factory} to use for all data types.
|
||||||
|
*/
|
||||||
public DefaultHlsDataSourceFactory(DataSource.Factory dataSourceFactory) {
|
public DefaultHlsDataSourceFactory(DataSource.Factory dataSourceFactory) {
|
||||||
this.dataSourceFactory = dataSourceFactory;
|
this.dataSourceFactory = dataSourceFactory;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,9 @@ import androidx.media3.exoplayer.hls.playlist.HlsMultivariantPlaylist;
|
|||||||
@UnstableApi
|
@UnstableApi
|
||||||
public final class HlsManifest {
|
public final class HlsManifest {
|
||||||
|
|
||||||
/** @deprecated Use {@link #multivariantPlaylist} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #multivariantPlaylist} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@SuppressWarnings("deprecation") // Keeping deprecated field with deprecated class.
|
@SuppressWarnings("deprecation") // Keeping deprecated field with deprecated class.
|
||||||
public final HlsMasterPlaylist masterPlaylist;
|
public final HlsMasterPlaylist masterPlaylist;
|
||||||
|
@ -25,7 +25,9 @@ import java.io.IOException;
|
|||||||
@UnstableApi
|
@UnstableApi
|
||||||
public final class SampleQueueMappingException extends IOException {
|
public final class SampleQueueMappingException extends IOException {
|
||||||
|
|
||||||
/** @param mimeType The mime type of the track group whose mapping failed. */
|
/**
|
||||||
|
* @param mimeType The mime type of the track group whose mapping failed.
|
||||||
|
*/
|
||||||
public SampleQueueMappingException(@Nullable String mimeType) {
|
public SampleQueueMappingException(@Nullable String mimeType) {
|
||||||
super("Unable to bind a sample queue to TrackGroup with mime type " + mimeType + ".");
|
super("Unable to bind a sample queue to TrackGroup with mime type " + mimeType + ".");
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,9 @@ import androidx.media3.common.util.UnstableApi;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/** @deprecated Use {@link HlsMultivariantPlaylist} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link HlsMultivariantPlaylist} instead.
|
||||||
|
*/
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public final class HlsMasterPlaylist extends HlsMultivariantPlaylist {
|
public final class HlsMasterPlaylist extends HlsMultivariantPlaylist {
|
||||||
|
@ -225,17 +225,23 @@ public class SsManifestParser implements ParsingLoadable.Parser<SsManifest> {
|
|||||||
// Do nothing.
|
// Do nothing.
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param xmlParser The underlying {@link XmlPullParser} */
|
/**
|
||||||
|
* @param xmlParser The underlying {@link XmlPullParser}
|
||||||
|
*/
|
||||||
protected void parseText(XmlPullParser xmlParser) {
|
protected void parseText(XmlPullParser xmlParser) {
|
||||||
// Do nothing.
|
// Do nothing.
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param xmlParser The underlying {@link XmlPullParser} */
|
/**
|
||||||
|
* @param xmlParser The underlying {@link XmlPullParser}
|
||||||
|
*/
|
||||||
protected void parseEndTag(XmlPullParser xmlParser) {
|
protected void parseEndTag(XmlPullParser xmlParser) {
|
||||||
// Do nothing.
|
// Do nothing.
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param parsedChild A parsed child object. */
|
/**
|
||||||
|
* @param parsedChild A parsed child object.
|
||||||
|
*/
|
||||||
protected void addChild(Object parsedChild) {
|
protected void addChild(Object parsedChild) {
|
||||||
// Do nothing.
|
// Do nothing.
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,9 @@ public final class WorkManagerScheduler implements Scheduler {
|
|||||||
private final WorkManager workManager;
|
private final WorkManager workManager;
|
||||||
private final String workName;
|
private final String workName;
|
||||||
|
|
||||||
/** @deprecated Call {@link #WorkManagerScheduler(Context, String)} instead. */
|
/**
|
||||||
|
* @deprecated Call {@link #WorkManagerScheduler(Context, String)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
public WorkManagerScheduler(String workName) {
|
public WorkManagerScheduler(String workName) {
|
||||||
|
@ -534,7 +534,9 @@ public abstract class BinarySearchSeeker {
|
|||||||
return durationUs;
|
return durationUs;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see SeekTimestampConverter#timeUsToTargetTime(long) */
|
/**
|
||||||
|
* @see SeekTimestampConverter#timeUsToTargetTime(long)
|
||||||
|
*/
|
||||||
public long timeUsToTargetTime(long timeUs) {
|
public long timeUsToTargetTime(long timeUs) {
|
||||||
return seekTimestampConverter.timeUsToTargetTime(timeUs);
|
return seekTimestampConverter.timeUsToTargetTime(timeUs);
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,9 @@ public interface SeekMap {
|
|||||||
/** The second seek point, or {@link #first} if there's only one seek point. */
|
/** The second seek point, or {@link #first} if there's only one seek point. */
|
||||||
public final SeekPoint second;
|
public final SeekPoint second;
|
||||||
|
|
||||||
/** @param point The single seek point. */
|
/**
|
||||||
|
* @param point The single seek point.
|
||||||
|
*/
|
||||||
public SeekPoints(SeekPoint point) {
|
public SeekPoints(SeekPoint point) {
|
||||||
this(point, point);
|
this(point, point);
|
||||||
}
|
}
|
||||||
|
@ -171,7 +171,9 @@ public final class AmrExtractor implements Extractor {
|
|||||||
this(/* flags= */ 0);
|
this(/* flags= */ 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param flags Flags that control the extractor's behavior. */
|
/**
|
||||||
|
* @param flags Flags that control the extractor's behavior.
|
||||||
|
*/
|
||||||
public AmrExtractor(@Flags int flags) {
|
public AmrExtractor(@Flags int flags) {
|
||||||
if ((flags & FLAG_ENABLE_CONSTANT_BITRATE_SEEKING_ALWAYS) != 0) {
|
if ((flags & FLAG_ENABLE_CONSTANT_BITRATE_SEEKING_ALWAYS) != 0) {
|
||||||
flags |= FLAG_ENABLE_CONSTANT_BITRATE_SEEKING;
|
flags |= FLAG_ENABLE_CONSTANT_BITRATE_SEEKING;
|
||||||
|
@ -33,7 +33,9 @@ import androidx.media3.extractor.TrackOutput;
|
|||||||
|
|
||||||
protected final TrackOutput output;
|
protected final TrackOutput output;
|
||||||
|
|
||||||
/** @param output A {@link TrackOutput} to which samples should be written. */
|
/**
|
||||||
|
* @param output A {@link TrackOutput} to which samples should be written.
|
||||||
|
*/
|
||||||
protected TagPayloadReader(TrackOutput output) {
|
protected TagPayloadReader(TrackOutput output) {
|
||||||
this.output = output;
|
this.output = output;
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,9 @@ import androidx.media3.extractor.TrackOutput;
|
|||||||
private boolean hasOutputKeyframe;
|
private boolean hasOutputKeyframe;
|
||||||
private int frameType;
|
private int frameType;
|
||||||
|
|
||||||
/** @param output A {@link TrackOutput} to which samples should be written. */
|
/**
|
||||||
|
* @param output A {@link TrackOutput} to which samples should be written.
|
||||||
|
*/
|
||||||
public VideoTagPayloadReader(TrackOutput output) {
|
public VideoTagPayloadReader(TrackOutput output) {
|
||||||
super(output);
|
super(output);
|
||||||
nalStartCode = new ParsableByteArray(NalUnitUtil.NAL_START_CODE);
|
nalStartCode = new ParsableByteArray(NalUnitUtil.NAL_START_CODE);
|
||||||
|
@ -24,7 +24,9 @@ import androidx.media3.common.MediaMetadata;
|
|||||||
import androidx.media3.common.Metadata;
|
import androidx.media3.common.Metadata;
|
||||||
import androidx.media3.common.util.UnstableApi;
|
import androidx.media3.common.util.UnstableApi;
|
||||||
|
|
||||||
/** @deprecated Use {@link androidx.media3.extractor.metadata.vorbis.VorbisComment} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link androidx.media3.extractor.metadata.vorbis.VorbisComment} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
public class VorbisComment implements Metadata.Entry {
|
public class VorbisComment implements Metadata.Entry {
|
||||||
|
@ -171,7 +171,9 @@ public final class Mp3Extractor implements Extractor {
|
|||||||
this(0);
|
this(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param flags Flags that control the extractor's behavior. */
|
/**
|
||||||
|
* @param flags Flags that control the extractor's behavior.
|
||||||
|
*/
|
||||||
public Mp3Extractor(@Flags int flags) {
|
public Mp3Extractor(@Flags int flags) {
|
||||||
this(flags, C.TIME_UNSET);
|
this(flags, C.TIME_UNSET);
|
||||||
}
|
}
|
||||||
|
@ -188,7 +188,9 @@ public class FragmentedMp4Extractor implements Extractor {
|
|||||||
this(0);
|
this(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param flags Flags that control the extractor's behavior. */
|
/**
|
||||||
|
* @param flags Flags that control the extractor's behavior.
|
||||||
|
*/
|
||||||
public FragmentedMp4Extractor(@Flags int flags) {
|
public FragmentedMp4Extractor(@Flags int flags) {
|
||||||
this(flags, /* timestampAdjuster= */ null);
|
this(flags, /* timestampAdjuster= */ null);
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,9 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
|||||||
currentGranule = 0;
|
currentGranule = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see Extractor#seek(long, long) */
|
/**
|
||||||
|
* @see Extractor#seek(long, long)
|
||||||
|
*/
|
||||||
final void seek(long position, long timeUs) {
|
final void seek(long position, long timeUs) {
|
||||||
oggPacket.reset();
|
oggPacket.reset();
|
||||||
if (position == 0) {
|
if (position == 0) {
|
||||||
@ -104,7 +106,9 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see Extractor#read(ExtractorInput, PositionHolder) */
|
/**
|
||||||
|
* @see Extractor#read(ExtractorInput, PositionHolder)
|
||||||
|
*/
|
||||||
final int read(ExtractorInput input, PositionHolder seekPosition) throws IOException {
|
final int read(ExtractorInput input, PositionHolder seekPosition) throws IOException {
|
||||||
assertInitialized();
|
assertInitialized();
|
||||||
switch (state) {
|
switch (state) {
|
||||||
|
@ -30,7 +30,9 @@ public abstract class SimpleSubtitleDecoder
|
|||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
|
|
||||||
/** @param name The name of the decoder. */
|
/**
|
||||||
|
* @param name The name of the decoder.
|
||||||
|
*/
|
||||||
@SuppressWarnings("nullness:method.invocation")
|
@SuppressWarnings("nullness:method.invocation")
|
||||||
protected SimpleSubtitleDecoder(String name) {
|
protected SimpleSubtitleDecoder(String name) {
|
||||||
super(new SubtitleInputBuffer[2], new SubtitleOutputBuffer[2]);
|
super(new SubtitleInputBuffer[2], new SubtitleOutputBuffer[2]);
|
||||||
|
@ -23,12 +23,16 @@ import androidx.media3.decoder.DecoderException;
|
|||||||
@UnstableApi
|
@UnstableApi
|
||||||
public class SubtitleDecoderException extends DecoderException {
|
public class SubtitleDecoderException extends DecoderException {
|
||||||
|
|
||||||
/** @param message The detail message for this exception. */
|
/**
|
||||||
|
* @param message The detail message for this exception.
|
||||||
|
*/
|
||||||
public SubtitleDecoderException(String message) {
|
public SubtitleDecoderException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param cause The cause of this exception, or {@code null}. */
|
/**
|
||||||
|
* @param cause The cause of this exception, or {@code null}.
|
||||||
|
*/
|
||||||
public SubtitleDecoderException(@Nullable Throwable cause) {
|
public SubtitleDecoderException(@Nullable Throwable cause) {
|
||||||
super(cause);
|
super(cause);
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,9 @@ import java.util.List;
|
|||||||
|
|
||||||
private final List<Cue> cues;
|
private final List<Cue> cues;
|
||||||
|
|
||||||
/** @param cues The subtitle cues. */
|
/**
|
||||||
|
* @param cues The subtitle cues.
|
||||||
|
*/
|
||||||
public CeaSubtitle(List<Cue> cues) {
|
public CeaSubtitle(List<Cue> cues) {
|
||||||
this.cues = cues;
|
this.cues = cues;
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,9 @@ public final class AdtsReader implements ElementaryStreamReader {
|
|||||||
private @MonotonicNonNull TrackOutput currentOutput;
|
private @MonotonicNonNull TrackOutput currentOutput;
|
||||||
private long currentSampleDuration;
|
private long currentSampleDuration;
|
||||||
|
|
||||||
/** @param exposeId3 True if the reader should expose ID3 information. */
|
/**
|
||||||
|
* @param exposeId3 True if the reader should expose ID3 information.
|
||||||
|
*/
|
||||||
public AdtsReader(boolean exposeId3) {
|
public AdtsReader(boolean exposeId3) {
|
||||||
this(exposeId3, null);
|
this(exposeId3, null);
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,9 @@ public final class DvbSubtitleReader implements ElementaryStreamReader {
|
|||||||
private int sampleBytesWritten;
|
private int sampleBytesWritten;
|
||||||
private long sampleTimeUs;
|
private long sampleTimeUs;
|
||||||
|
|
||||||
/** @param subtitleInfos Information about the DVB subtitles associated to the stream. */
|
/**
|
||||||
|
* @param subtitleInfos Information about the DVB subtitles associated to the stream.
|
||||||
|
*/
|
||||||
public DvbSubtitleReader(List<DvbSubtitleInfo> subtitleInfos) {
|
public DvbSubtitleReader(List<DvbSubtitleInfo> subtitleInfos) {
|
||||||
this.subtitleInfos = subtitleInfos;
|
this.subtitleInfos = subtitleInfos;
|
||||||
outputs = new TrackOutput[subtitleInfos.size()];
|
outputs = new TrackOutput[subtitleInfos.size()];
|
||||||
|
@ -78,7 +78,9 @@ public final class H265Reader implements ElementaryStreamReader {
|
|||||||
// Scratch variables to avoid allocations.
|
// Scratch variables to avoid allocations.
|
||||||
private final ParsableByteArray seiWrapper;
|
private final ParsableByteArray seiWrapper;
|
||||||
|
|
||||||
/** @param seiReader An SEI reader for consuming closed caption channels. */
|
/**
|
||||||
|
* @param seiReader An SEI reader for consuming closed caption channels.
|
||||||
|
*/
|
||||||
public H265Reader(SeiReader seiReader) {
|
public H265Reader(SeiReader seiReader) {
|
||||||
this.seiReader = seiReader;
|
this.seiReader = seiReader;
|
||||||
prefixFlags = new boolean[3];
|
prefixFlags = new boolean[3];
|
||||||
|
@ -75,7 +75,9 @@ public final class LatmReader implements ElementaryStreamReader {
|
|||||||
private int channelCount;
|
private int channelCount;
|
||||||
@Nullable private String codecs;
|
@Nullable private String codecs;
|
||||||
|
|
||||||
/** @param language Track language. */
|
/**
|
||||||
|
* @param language Track language.
|
||||||
|
*/
|
||||||
public LatmReader(@Nullable String language) {
|
public LatmReader(@Nullable String language) {
|
||||||
this.language = language;
|
this.language = language;
|
||||||
sampleDataBuffer = new ParsableByteArray(INITIAL_BUFFER_SIZE);
|
sampleDataBuffer = new ParsableByteArray(INITIAL_BUFFER_SIZE);
|
||||||
|
@ -35,7 +35,9 @@ public final class SeiReader {
|
|||||||
private final List<Format> closedCaptionFormats;
|
private final List<Format> closedCaptionFormats;
|
||||||
private final TrackOutput[] outputs;
|
private final TrackOutput[] outputs;
|
||||||
|
|
||||||
/** @param closedCaptionFormats A list of formats for the closed caption channels to expose. */
|
/**
|
||||||
|
* @param closedCaptionFormats A list of formats for the closed caption channels to expose.
|
||||||
|
*/
|
||||||
public SeiReader(List<Format> closedCaptionFormats) {
|
public SeiReader(List<Format> closedCaptionFormats) {
|
||||||
this.closedCaptionFormats = closedCaptionFormats;
|
this.closedCaptionFormats = closedCaptionFormats;
|
||||||
outputs = new TrackOutput[closedCaptionFormats.size()];
|
outputs = new TrackOutput[closedCaptionFormats.size()];
|
||||||
|
@ -30,7 +30,9 @@ public abstract class PollingCheck {
|
|||||||
|
|
||||||
/** The condition that the PollingCheck should use to proceed successfully. */
|
/** The condition that the PollingCheck should use to proceed successfully. */
|
||||||
public interface PollingCheckCondition {
|
public interface PollingCheckCondition {
|
||||||
/** @return Whether the polling condition has been met. */
|
/**
|
||||||
|
* @return Whether the polling condition has been met.
|
||||||
|
*/
|
||||||
boolean canProceed() throws Exception;
|
boolean canProceed() throws Exception;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -323,7 +323,9 @@ public abstract class Action {
|
|||||||
/** Calls {@link ExoPlayer#clearMediaItems()}}. */
|
/** Calls {@link ExoPlayer#clearMediaItems()}}. */
|
||||||
public static class ClearMediaItems extends Action {
|
public static class ClearMediaItems extends Action {
|
||||||
|
|
||||||
/** @param tag A tag to use for logging. */
|
/**
|
||||||
|
* @param tag A tag to use for logging.
|
||||||
|
*/
|
||||||
public ClearMediaItems(String tag) {
|
public ClearMediaItems(String tag) {
|
||||||
super(tag, "ClearMediaItems");
|
super(tag, "ClearMediaItems");
|
||||||
}
|
}
|
||||||
@ -426,7 +428,9 @@ public abstract class Action {
|
|||||||
/** Calls {@link ExoPlayer#clearVideoSurface()}. */
|
/** Calls {@link ExoPlayer#clearVideoSurface()}. */
|
||||||
public static final class ClearVideoSurface extends Action {
|
public static final class ClearVideoSurface extends Action {
|
||||||
|
|
||||||
/** @param tag A tag to use for logging. */
|
/**
|
||||||
|
* @param tag A tag to use for logging.
|
||||||
|
*/
|
||||||
public ClearVideoSurface(String tag) {
|
public ClearVideoSurface(String tag) {
|
||||||
super(tag, "ClearVideoSurface");
|
super(tag, "ClearVideoSurface");
|
||||||
}
|
}
|
||||||
@ -441,7 +445,9 @@ public abstract class Action {
|
|||||||
/** Calls {@link ExoPlayer#setVideoSurface(Surface)}. */
|
/** Calls {@link ExoPlayer#setVideoSurface(Surface)}. */
|
||||||
public static final class SetVideoSurface extends Action {
|
public static final class SetVideoSurface extends Action {
|
||||||
|
|
||||||
/** @param tag A tag to use for logging. */
|
/**
|
||||||
|
* @param tag A tag to use for logging.
|
||||||
|
*/
|
||||||
public SetVideoSurface(String tag) {
|
public SetVideoSurface(String tag) {
|
||||||
super(tag, "SetVideoSurface");
|
super(tag, "SetVideoSurface");
|
||||||
}
|
}
|
||||||
@ -480,7 +486,9 @@ public abstract class Action {
|
|||||||
|
|
||||||
/** Calls {@link ExoPlayer#prepare()}. */
|
/** Calls {@link ExoPlayer#prepare()}. */
|
||||||
public static final class Prepare extends Action {
|
public static final class Prepare extends Action {
|
||||||
/** @param tag A tag to use for logging. */
|
/**
|
||||||
|
* @param tag A tag to use for logging.
|
||||||
|
*/
|
||||||
public Prepare(String tag) {
|
public Prepare(String tag) {
|
||||||
super(tag, "Prepare");
|
super(tag, "Prepare");
|
||||||
}
|
}
|
||||||
@ -817,7 +825,9 @@ public abstract class Action {
|
|||||||
*/
|
*/
|
||||||
public static final class WaitForPositionDiscontinuity extends Action {
|
public static final class WaitForPositionDiscontinuity extends Action {
|
||||||
|
|
||||||
/** @param tag A tag to use for logging. */
|
/**
|
||||||
|
* @param tag A tag to use for logging.
|
||||||
|
*/
|
||||||
public WaitForPositionDiscontinuity(String tag) {
|
public WaitForPositionDiscontinuity(String tag) {
|
||||||
super(tag, "WaitForPositionDiscontinuity");
|
super(tag, "WaitForPositionDiscontinuity");
|
||||||
}
|
}
|
||||||
@ -1046,7 +1056,9 @@ public abstract class Action {
|
|||||||
/** Waits until the player acknowledged all pending player commands. */
|
/** Waits until the player acknowledged all pending player commands. */
|
||||||
public static final class WaitForPendingPlayerCommands extends Action {
|
public static final class WaitForPendingPlayerCommands extends Action {
|
||||||
|
|
||||||
/** @param tag A tag to use for logging. */
|
/**
|
||||||
|
* @param tag A tag to use for logging.
|
||||||
|
*/
|
||||||
public WaitForPendingPlayerCommands(String tag) {
|
public WaitForPendingPlayerCommands(String tag) {
|
||||||
super(tag, "WaitForPendingPlayerCommands");
|
super(tag, "WaitForPendingPlayerCommands");
|
||||||
}
|
}
|
||||||
@ -1083,7 +1095,9 @@ public abstract class Action {
|
|||||||
|
|
||||||
private final Runnable runnable;
|
private final Runnable runnable;
|
||||||
|
|
||||||
/** @param tag A tag to use for logging. */
|
/**
|
||||||
|
* @param tag A tag to use for logging.
|
||||||
|
*/
|
||||||
public ExecuteRunnable(@Size(max = 23) String tag, Runnable runnable) {
|
public ExecuteRunnable(@Size(max = 23) String tag, Runnable runnable) {
|
||||||
super(tag, "ExecuteRunnable");
|
super(tag, "ExecuteRunnable");
|
||||||
this.runnable = runnable;
|
this.runnable = runnable;
|
||||||
|
@ -114,7 +114,9 @@ public final class ActionSchedule {
|
|||||||
private long currentDelayMs;
|
private long currentDelayMs;
|
||||||
private ActionNode previousNode;
|
private ActionNode previousNode;
|
||||||
|
|
||||||
/** @param tag A tag to use for logging. */
|
/**
|
||||||
|
* @param tag A tag to use for logging.
|
||||||
|
*/
|
||||||
public Builder(String tag) {
|
public Builder(String tag) {
|
||||||
this.tag = tag;
|
this.tag = tag;
|
||||||
rootNode = new ActionNode(new RootAction(tag), 0);
|
rootNode = new ActionNode(new RootAction(tag), 0);
|
||||||
|
@ -108,91 +108,121 @@ public final class DownloadBuilder {
|
|||||||
this.progress = new DownloadProgress();
|
this.progress = new DownloadProgress();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see DownloadRequest#uri */
|
/**
|
||||||
|
* @see DownloadRequest#uri
|
||||||
|
*/
|
||||||
public DownloadBuilder setUri(String uri) {
|
public DownloadBuilder setUri(String uri) {
|
||||||
this.uri = Uri.parse(uri);
|
this.uri = Uri.parse(uri);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see DownloadRequest#uri */
|
/**
|
||||||
|
* @see DownloadRequest#uri
|
||||||
|
*/
|
||||||
public DownloadBuilder setUri(Uri uri) {
|
public DownloadBuilder setUri(Uri uri) {
|
||||||
this.uri = uri;
|
this.uri = uri;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see DownloadRequest#mimeType */
|
/**
|
||||||
|
* @see DownloadRequest#mimeType
|
||||||
|
*/
|
||||||
public DownloadBuilder setMimeType(String mimeType) {
|
public DownloadBuilder setMimeType(String mimeType) {
|
||||||
this.mimeType = mimeType;
|
this.mimeType = mimeType;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see DownloadRequest#keySetId */
|
/**
|
||||||
|
* @see DownloadRequest#keySetId
|
||||||
|
*/
|
||||||
public DownloadBuilder setKeySetId(byte[] keySetId) {
|
public DownloadBuilder setKeySetId(byte[] keySetId) {
|
||||||
this.keySetId = keySetId;
|
this.keySetId = keySetId;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see DownloadRequest#customCacheKey */
|
/**
|
||||||
|
* @see DownloadRequest#customCacheKey
|
||||||
|
*/
|
||||||
public DownloadBuilder setCacheKey(@Nullable String cacheKey) {
|
public DownloadBuilder setCacheKey(@Nullable String cacheKey) {
|
||||||
this.cacheKey = cacheKey;
|
this.cacheKey = cacheKey;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see Download#state */
|
/**
|
||||||
|
* @see Download#state
|
||||||
|
*/
|
||||||
public DownloadBuilder setState(@Download.State int state) {
|
public DownloadBuilder setState(@Download.State int state) {
|
||||||
this.state = state;
|
this.state = state;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see DownloadProgress#percentDownloaded */
|
/**
|
||||||
|
* @see DownloadProgress#percentDownloaded
|
||||||
|
*/
|
||||||
public DownloadBuilder setPercentDownloaded(float percentDownloaded) {
|
public DownloadBuilder setPercentDownloaded(float percentDownloaded) {
|
||||||
progress.percentDownloaded = percentDownloaded;
|
progress.percentDownloaded = percentDownloaded;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see DownloadProgress#bytesDownloaded */
|
/**
|
||||||
|
* @see DownloadProgress#bytesDownloaded
|
||||||
|
*/
|
||||||
public DownloadBuilder setBytesDownloaded(long bytesDownloaded) {
|
public DownloadBuilder setBytesDownloaded(long bytesDownloaded) {
|
||||||
progress.bytesDownloaded = bytesDownloaded;
|
progress.bytesDownloaded = bytesDownloaded;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see Download#contentLength */
|
/**
|
||||||
|
* @see Download#contentLength
|
||||||
|
*/
|
||||||
public DownloadBuilder setContentLength(long contentLength) {
|
public DownloadBuilder setContentLength(long contentLength) {
|
||||||
this.contentLength = contentLength;
|
this.contentLength = contentLength;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see Download#failureReason */
|
/**
|
||||||
|
* @see Download#failureReason
|
||||||
|
*/
|
||||||
public DownloadBuilder setFailureReason(int failureReason) {
|
public DownloadBuilder setFailureReason(int failureReason) {
|
||||||
this.failureReason = failureReason;
|
this.failureReason = failureReason;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see Download#stopReason */
|
/**
|
||||||
|
* @see Download#stopReason
|
||||||
|
*/
|
||||||
public DownloadBuilder setStopReason(int stopReason) {
|
public DownloadBuilder setStopReason(int stopReason) {
|
||||||
this.stopReason = stopReason;
|
this.stopReason = stopReason;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see Download#startTimeMs */
|
/**
|
||||||
|
* @see Download#startTimeMs
|
||||||
|
*/
|
||||||
public DownloadBuilder setStartTimeMs(long startTimeMs) {
|
public DownloadBuilder setStartTimeMs(long startTimeMs) {
|
||||||
this.startTimeMs = startTimeMs;
|
this.startTimeMs = startTimeMs;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see Download#updateTimeMs */
|
/**
|
||||||
|
* @see Download#updateTimeMs
|
||||||
|
*/
|
||||||
public DownloadBuilder setUpdateTimeMs(long updateTimeMs) {
|
public DownloadBuilder setUpdateTimeMs(long updateTimeMs) {
|
||||||
this.updateTimeMs = updateTimeMs;
|
this.updateTimeMs = updateTimeMs;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see DownloadRequest#streamKeys */
|
/**
|
||||||
|
* @see DownloadRequest#streamKeys
|
||||||
|
*/
|
||||||
public DownloadBuilder setStreamKeys(StreamKey... streamKeys) {
|
public DownloadBuilder setStreamKeys(StreamKey... streamKeys) {
|
||||||
this.streamKeys = Arrays.asList(streamKeys);
|
this.streamKeys = Arrays.asList(streamKeys);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @see DownloadRequest#data */
|
/**
|
||||||
|
* @see DownloadRequest#data
|
||||||
|
*/
|
||||||
public DownloadBuilder setCustomMetadata(byte[] customMetadata) {
|
public DownloadBuilder setCustomMetadata(byte[] customMetadata) {
|
||||||
this.customMetadata = customMetadata;
|
this.customMetadata = customMetadata;
|
||||||
return this;
|
return this;
|
||||||
|
@ -173,13 +173,17 @@ public final class FakeExoMediaDrm implements ExoMediaDrm {
|
|||||||
private int referenceCount;
|
private int referenceCount;
|
||||||
@Nullable private OnEventListener onEventListener;
|
@Nullable private OnEventListener onEventListener;
|
||||||
|
|
||||||
/** @deprecated Use {@link Builder} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Builder} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public FakeExoMediaDrm() {
|
public FakeExoMediaDrm() {
|
||||||
this(/* maxConcurrentSessions= */ Integer.MAX_VALUE);
|
this(/* maxConcurrentSessions= */ Integer.MAX_VALUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link Builder} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link Builder} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public FakeExoMediaDrm(int maxConcurrentSessions) {
|
public FakeExoMediaDrm(int maxConcurrentSessions) {
|
||||||
this(
|
this(
|
||||||
|
@ -108,7 +108,9 @@ public final class Transformer {
|
|||||||
private Clock clock;
|
private Clock clock;
|
||||||
private Codec.EncoderFactory encoderFactory;
|
private Codec.EncoderFactory encoderFactory;
|
||||||
|
|
||||||
/** @deprecated Use {@link #Builder(Context)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #Builder(Context)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder() {
|
public Builder() {
|
||||||
muxerFactory = new FrameworkMuxer.Factory();
|
muxerFactory = new FrameworkMuxer.Factory();
|
||||||
@ -154,7 +156,9 @@ public final class Transformer {
|
|||||||
this.clock = transformer.clock;
|
this.clock = transformer.clock;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #Builder(Context)} instead. */
|
/**
|
||||||
|
* @deprecated Use {@link #Builder(Context)} instead.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public Builder setContext(Context context) {
|
public Builder setContext(Context context) {
|
||||||
this.context = context.getApplicationContext();
|
this.context = context.getApplicationContext();
|
||||||
@ -427,7 +431,9 @@ public final class Transformer {
|
|||||||
onTransformationCompleted(inputMediaItem);
|
onTransformationCompleted(inputMediaItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #onTransformationError(MediaItem, TransformationException)}. */
|
/**
|
||||||
|
* @deprecated Use {@link #onTransformationError(MediaItem, TransformationException)}.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
default void onTransformationError(MediaItem inputMediaItem, Exception exception) {
|
default void onTransformationError(MediaItem inputMediaItem, Exception exception) {
|
||||||
onTransformationError(inputMediaItem, (TransformationException) exception);
|
onTransformationError(inputMediaItem, (TransformationException) exception);
|
||||||
|
@ -32,7 +32,9 @@ public class DefaultTrackNameProvider implements TrackNameProvider {
|
|||||||
|
|
||||||
private final Resources resources;
|
private final Resources resources;
|
||||||
|
|
||||||
/** @param resources Resources from which to obtain strings. */
|
/**
|
||||||
|
* @param resources Resources from which to obtain strings.
|
||||||
|
*/
|
||||||
public DefaultTrackNameProvider(Resources resources) {
|
public DefaultTrackNameProvider(Resources resources) {
|
||||||
this.resources = Assertions.checkNotNull(resources);
|
this.resources = Assertions.checkNotNull(resources);
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,9 @@ public interface TimeBar {
|
|||||||
*/
|
*/
|
||||||
void removeListener(OnScrubListener listener);
|
void removeListener(OnScrubListener listener);
|
||||||
|
|
||||||
/** @see View#isEnabled() */
|
/**
|
||||||
|
* @see View#isEnabled()
|
||||||
|
*/
|
||||||
void setEnabled(boolean enabled);
|
void setEnabled(boolean enabled);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user