ExoPlayer에서 Media3으로 매핑

다음 표에는 다양한 클래스, 패키지, 모듈의 Gradle 종속 항목 이름이 exoplayer2 간에 다릅니다. 새로운 media3 구현을 제공합니다.

Media3으로 이전할 때는 AndroidX Media3을 읽어 보세요. 이전 가이드를 참조하세요.

패키지 매핑

exoplayer2 패키지 이름media3 패키지 이름
com.google.android.exoplayer2androidx.media3.exoplayer
com.google.android.exoplayer2.analyticsandroidx.media3.exoplayer.analytics
com.google.android.exoplayer2.audioandroidx.media3.exoplayer.audio
com.google.android.exoplayer2.castdemoandroidx.media3.demo.cast
com.google.android.exoplayer2.databaseandroidx.media3.database
com.google.android.exoplayer2.decoderandroidx.media3.decoder
com.google.android.exoplayer2.demoandroidx.media3.demo.main
com.google.android.exoplayer2.drmandroidx.media3.exoplayer.drm
com.google.android.exoplayer2.ext.av1androidx.media3.decoder.av1
com.google.android.exoplayer2.ext.castandroidx.media3.cast
com.google.android.exoplayer2.ext.cronetandroidx.media3.datasource.cronet
com.google.android.exoplayer2.ext.ffmpegandroidx.media3.decoder.ffmpeg
com.google.android.exoplayer2.ext.flacandroidx.media3.decoder.flac
com.google.android.exoplayer2.ext.imaandroidx.media3.exoplayer.ima
com.google.android.exoplayer2.ext.leanbackandroidx.media3.ui.leanback
com.google.android.exoplayer2.ext.okhttpandroidx.media3.datasource.okhttp
com.google.android.exoplayer2.ext.opusandroidx.media3.decoder.opus
com.google.android.exoplayer2.ext.rtmpandroidx.media3.datasource.rtmp
com.google.android.exoplayer2.ext.vp9androidx.media3.decoder.vp9
com.google.android.exoplayer2.ext.workmanagerandroidx.media3.exoplayer.workmanager
com.google.android.exoplayer2.extractorandroidx.media3.extractor
com.google.android.exoplayer2.gldemoandroidx.media3.demo.gl
com.google.android.exoplayer2.mediacodecandroidx.media3.exoplayer.mediacodec
com.google.android.exoplayer2.metadataandroidx.media3.extractor.metadata
com.google.android.exoplayer2.offlineandroidx.media3.exoplayer.offline
com.google.android.exoplayer2.playbacktestsandroidx.media3.test.exoplayer.playback
com.google.android.exoplayer2.robolectricandroidx.media3.test.utils.robolectric
com.google.android.exoplayer2.scheduler.androidx.media3.exoplayer.scheduler
com.google.android.exoplayer2.source.androidx.media3.exoplayer.source
com.google.android.exoplayer2.source.rtspandroidx.media3.exoplayer.rtsp
com.google.android.exoplayer2.source.dashandroidx.media3.exoplayer.dash
com.google.android.exoplayer2.source.smoothstreamingandroidx.media3.exoplayer.smoothstreaming
com.google.android.exoplayer2.source.hlsandroidx.media3.exoplayer.hls
com.google.android.exoplayer2.surfacedemoandroidx.media3.demo.surface
com.google.android.exoplayer2.testdataandroidx.media3.test.data
com.google.android.exoplayer2.testutilandroidx.media3.test.utils
com.google.android.exoplayer2.textandroidx.media3.extractor.text
com.google.android.exoplayer2.trackselectionandroidx.media3.exoplayer.trackselection
com.google.android.exoplayer2.transformerandroidx.media3.transformer
com.google.android.exoplayer2.transformerdemoandroidx.media3.demo.transformer
com.google.android.exoplayer2.uiandroidx.media3.ui
com.google.android.exoplayer2.upstream.cryptoandroidx.media3.exoplayer.upstream.crypto
com.google.android.exoplayer2.upstream.cacheandroidx.media3.datasource.cache
com.google.android.exoplayer2.upstreamandroidx.media3.datasource
com.google.android.exoplayer2.utilandroidx.media3.exoplayer.util
com.google.android.exoplayer2.utilandroidx.media3.common.util
com.google.android.exoplayer2.videoandroidx.media3.exoplayer.video

수업 이름 변경

exoplayer2 클래스 이름media3 패키지 이름media3 클래스 이름
com.google.android.exoplayer2.ExoPlayerLibraryInfoandroidx.media3.common미디어 라이브러리 정보
com.google.android.exoplayer2.SimpleExoPlayerandroidx.media3.exoplayerExoPlayer
com.google.android.exoplayer2.ui.StyledPlayerViewandroidx.media3.ui플레이어 뷰
com.google.android.exoplayer2.ui.StyledPlayerControlViewandroidx.media3.ui플레이어 컨트롤뷰

클래스가 다른 패키지로 이동됨

exoplayer2 패키지 이름 media3 패키지 이름 media3 클래스 이름
com.google.android.exoplayer2androidx.media3.exoplayerFormatHolder, PlayerMessage
com.google.android.exoplayer2androidx.media3.commonBasePlayer, BundleListRetriever, Bundleable, ControlDispatcher, C, DefaultControlDispatcher, DeviceInfo, ErrorMessageProvider, ExoPlayerLibraryInfo, Format, forwardPlayer, HeartRating, IllegalSeekPositionException, MediaItem, MediaMetadata, ParserException, PercentageRating, PlaybackParameters, PlaybackParameters, Player, PositionInfo, Rating, StarPlaybackRating, ThumbRatingInfo, Timeline, Tracks
com.google.android.exoplayer2.audioandroidx.media3.extractorAacUtil, Ac3Util, Ac4Util, DtsUtil, MpegAudioUtil, OpusUtil, WavUtil
com.google.android.exoplayer2.audioandroidx.media3.common오디오 속성, AuxEffectInfo
com.google.android.exoplayer2.decoderandroidx.media3.exoplayerDecoderCounters, DecoderReuseEvaluation
com.google.android.exoplayer2.drmandroidx.media3.commonDrmInit 데이터
com.google.android.exoplayer2.metadataandroidx.media3.exoplayer.metadataMetadataDecoderFactor, MetadataOutput, MetadataRenderer
com.google.android.exoplayer2.metadataandroidx.media3.commonMetadata
com.google.android.exoplayer2.offlineandroidx.media3.common스트림 키
com.google.android.exoplayer2.source.ads.androidx.media3.commonAdPlaybackState
com.google.android.exoplayer2.source.androidx.media3.commonMediaPeriodId, TrackGroup
com.google.android.exoplayer2.trackselectionandroidx.media3.commonTrackSelectionParameter, TrackSelectionOverride
com.google.android.exoplayer2.textandroidx.media3.common.text조건
com.google.android.exoplayer2.textandroidx.media3.exoplayer.textExoplayerCuesDecode, SubtitleDecoderFactor, TextOutput, TextRenderer
com.google.android.exoplayer2.text.spanandroidx.media3.common.textHorizontalTextInVerticalContextSpan, LanguageFeatureSpa, RubySpa, SpanUti, TextAnnotation, TextEmphasisSpan
com.google.android.exoplayer2.uiandroidx.media3.commonAdOverlayInf, AdViewProvider
com.google.android.exoplayer2.uiandroidx.media3.exoplayer.offline알림도우미 다운로드
com.google.android.exoplayer2.upstreamandroidx.media3.common데이터 리더
com.google.android.exoplayer2.upstreamandroidx.media3.exoplayer.upstreamAllocation, Allocator, BandwidthMeter, CachedRegionTracker, DefaultAllocator, DefaultBandwidthMeter, DefaultLoadErrorHandlingPolicy, 로더, LoaderErrorThrower, ParsingLoadable, SlidingPercentile, TimeToFirstByteEstimator
com.google.android.exoplayer2.upstream.cryptoandroidx.media3.datasourceAesCipherDataSource, AesCipherDataSink, AesFlushingCipher
com.google.android.exoplayer2.utilandroidx.media3.commonErrorMessageProvider, FlagSet, FileType, MimeType, PriorityTaskManager
com.google.android.exoplayer2.utilandroidx.media3.common.util다음과 같이
com.google.android.exoplayer2.utilandroidx.media3.extractorNalUnitUtil, ParsableNalUnitBitArray
com.google.android.exoplayer2.utilandroidx.media3.exoplayerMediaClock, 독립형 미디어 시계
com.google.android.exoplayer2.videoandroidx.media3.common색상 정보, 동영상 크기
com.google.android.exoplayer2.videoandroidx.media3.extractorAvcConfig, DolbyVisionConfig, HevcConfig

종속 항목 매핑

exoplayer2 모듈 이름media3 모듈 이름
ExoPlayermedia3-exoplayer
Exoplayer-데이터베이스media3-데이터베이스
Exoplayer-데이터 소스media3-데이터 소스
exoplayer-디코더media3-디코더
Exoplayer-Commonmedia3-common
Exoplayer-Coremedia3-exoplayer
Exoplayer-dashmedia3-exoplayer-dash
Exoplayer-추출기media3-추출기
Exoplayer-hlsmedia3-exoplayer-hls
exoplayer-robolectricutilsmedia3-test-utils-robolectric
Exoplayer-RTSPmedia3-exoplayer-rtsp
exoplayer-smoothstreamingmedia3-exoplayer-smoothstreaming
exoplayer-testutilsmedia3-test-utils
Exoplayer-transformermedia3-transformer
Exoplayer UImedia3-ui
확장 전송media3-cast
확장 프로그램-cronetmedia3-datasource-cronet
확장-imamedia3-exoplayer-ima
확장 프로그램 Leanbackmedia3-ui-leanback
확장 프로그램-okhttpmedia3-datasource-okhttp
확장 프로그램-RTMPmedia3-datasource-rtmp
확장 프로그램-작업 관리자media3-exoplayer-workmanager