Mappature da ExoPlayer a Media3

Le seguenti tabelle descrivono in che modo le varie classi, pacchetti e i nomi delle dipendenze Gradle sono diversi tra exoplayer2 e la nuova implementazione di media3.

Quando migrate a Media3, leggete il nostro AndroidX Media3 guida alla migrazione.

Mappature pacchetti

Nome pacchetto exoplayer2nome pacchetto 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.schedulerandroidx.media3.exoplayer.scheduler
com.google.android.exoplayer2.sourceandroidx.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.testotesto androidx.media3.extractor.
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

Ridenominazione dei corsi

nome classe exoplayer2nome pacchetto media3nomi delle classi media3
com.google.android.exoplayer2.ExoPlayerLibraryInfo.androidx.media3.comuneInformazioni libreria multimediale
com.google.android.exoplayer2.SempliceExoPlayerandroidx.media3.exoplayerExoPlayer
com.google.android.exoplayer2.ui.StyledPlayerViewandroidx.media3.uiVisualizzazione player
com.google.android.exoplayer2.ui.StyledPlayerControlViewandroidx.media3.uiVisualizzazione controllo player

Classe spostata in altri pacchetti

Nome pacchetto exoplayer2 nome pacchetto media3 nomi delle classi media3
com.google.android.exoplayer2androidx.media3.exoplayerFormatHolder, PlayerMessage
com.google.android.exoplayer2androidx.media3.comuneBasePlayer, BundleListRetriever, Bundleable, ControlDispatcher, C, DefaultControlDispatcher, DeviceInfo, ErrorMessageProvider, ExoPlayerLibraryInfo, Format, ForwardingPlayer, HeartRating, PoliticalSeekPositionException, MediaItem, MediaMetadata, ParserException, PercentageRating, PlaybackException, PlaybackParameters, Player, PositionInfo, Rating, StarRating, ThumbRating, sequenza temporale, tracce
com.google.android.exoplayer2.audioandroidx.media3.extractorAacUtil, Ac3Util, Ac4Util, DtsUtil, MpegAudioUtil, OpusUtil, WavUtil
com.google.android.exoplayer2.audioandroidx.media3.comuneAudioAttribute, AuxEffectInfo
com.google.android.exoplayer2.decoderandroidx.media3.exoplayerDecoderCounters, DecoderReuseEvaluation
com.google.android.exoplayer2.drmandroidx.media3.comuneDati DrmInit
com.google.android.exoplayer2.metadataandroidx.media3.exoplayer.metadataMetadataDecoderFactor, MetadataOutput, MetadataRenderer
com.google.android.exoplayer2.metadataandroidx.media3.comuneMetadati
com.google.android.exoplayer2.offlineandroidx.media3.comuneChiave flusso
com.google.android.exoplayer2.source.adsandroidx.media3.comuneStato riproduzione annuncio
com.google.android.exoplayer2.sourceandroidx.media3.comuneMediaPeriodId, TrackGroup
com.google.android.exoplayer2.trackselectionandroidx.media3.comuneParametro TrackSelection, TrackSelectionOverride
com.google.android.exoplayer2.testoandroidx.media3.comune.textGiro
com.google.android.exoplayer2.testoandroidx.media3.exoplayer.textExoplayerCuesDecode, SubtitleDecoderFactor, TextOutput, TextRenderer
com.google.android.exoplayer2.testo.spanandroidx.media3.comune.textHorizontalTextInVerticalContextSpan, LanguageFeatureSpa, RubySpa, SpanUti, TextAnnotation, TextEmphasisSpan
com.google.android.exoplayer2.uiandroidx.media3.comuneAdOverlayInf, AdViewProvider
com.google.android.exoplayer2.uiandroidx.media3.exoplayer.offlineScarica Assistente notifiche
com.google.android.exoplayer2.upstreamandroidx.media3.comuneLettore dati
com.google.android.exoplayer2.upstreamandroidx.media3.exoplayer.upstreamAllocator, BandwidthMeter, CachedRegionTracker, DefaultAllocator, defaultBandwidthMeter, DefaultLoadErrorhandlingPolicy, Loader, LoaderErrorThrower, ParsingLoadable, SlidingPercentile, TimeToFirstByteEstimator
com.google.android.exoplayer2.upstream.cryptoandroidx.media3.datasourceAesCipherDataSource, AesCipherDataSink, AesFlushingCipher
com.google.android.exoplayer2.utilandroidx.media3.comuneErrorMessageProvider, FlagSet, FileType, MimeType, PriorityTaskManager
com.google.android.exoplayer2.utilandroidx.media3.common.util,AtomicFile, Assertion, BundleableUtil, BundleUtil, Clock, ClosedSource, CodecSpecificDataUtil, ColorParser, ConditionVariable, Consumer, CopyOnWriteMultise, EGLSurfaceTexture, GlProgram, GlUtil, HandlerWrapper, LibraryLoader, ListenerSet, Log, LongArray, MediaFormatUtil, NetworkTypeObserver, NonNullApi, NotificationUtil, ParsableBitArray, ParsableByteArray, RepeatModeUtil, RunnableFutureTask, SystemCloc, SystemHandlerWrapper, TimedValueQueue, TimestampAdjuster, TraceUtil, UnknownNull, UnstableApi, UriUtil, Util, XmlPullParserUtil
com.google.android.exoplayer2.utilandroidx.media3.extractorNalUnitUtil, ParsableNalUnitBitArray
com.google.android.exoplayer2.utilandroidx.media3.exoplayerMediaClock, StandaloneMediaClock
com.google.android.exoplayer2.videoandroidx.media3.comuneColorInfo, VideoSize
com.google.android.exoplayer2.videoandroidx.media3.extractorAvcConfig, DolbyVisionConfig, HevcConfig

Mappature delle dipendenze

nome modulo exoplayer2nome modulo media3
exoplayermedia3-exoplayer
database-exoplayerdatabase-media3
origine dati-exoplayerorigine dati-media3
exoplayer-decoderdecoder-media3
exoplayer-comunemedia3-comune
exoplayer coremedia3-exoplayer
cruscotto exoplayermedia3-exoplayer-dashboard
estrattore-esoplayerestrattore media3
exoplayer-hlsmedia3-exoplayer-hls
exoplayer-robolectricutilsmedia3-test-utils-robolectric
exoplayer-rtspmedia3-exoplayer-rtsp
streaming fluidi-exoplayermedia3-exoplayer-streaming fluido
testutils-exoplayertest-utils media3
exoplayer-Transformertrasformatore media3
UI exoplayerinterfaccia utente media3
trasmissione dell'estensionemedia3-cast
estensione cronetmedia3-datasource-cronet
ima-estensionemedia3-exoplayer-ima
estensione-rilassamentomedia3-ui-leanback
estensione-okhttpmedia3-datasource-okhttp
estensione-rtmpmedia3-datasource-rtmp
gestione-lavoro-estensionemedia3-exoplayer-workmanager