Las siguientes tablas describen cómo las distintas clases, paquetes,
módulos y los nombres de dependencias de Gradle difieren entre exoplayer2
y la nueva implementación de media3
.
Cuando migres a Media3, considera leer nuestro AndroidX Media3 guía de migración.
Asignaciones de paquetes
Nombre del paquete exoplayer2 | nombre del paquete media3 |
com.google.android.exoplayer2 | androidx.media3.exoplayer |
com.google.android.exoplayer2.analytics | androidx.media3.exoplayer.analytics |
com.google.android.exoplayer2.audio | androidx.media3.exoplayer.audio |
com.google.android.exoplayer2.castdemo | androidx.media3.demo.cast |
com.google.android.exoplayer2.base_de_datos | androidx.media3.database |
com.google.android.exoplayer2.decoder | androidx.media3.decoder |
com.google.android.exoplayer2.demo | androidx.media3.demo.main |
com.google.android.exoplayer2.drm | androidx.media3.exoplayer.drm |
com.google.android.exoplayer2.ext.av1 | androidx.media3.decoder.av1 |
com.google.android.exoplayer2.ext.cast | androidx.media3.cast |
com.google.android.exoplayer2.ext.cronet | androidx.media3.accessibility.cronet |
com.google.android.exoplayer2.ext.ffmpeg | androidx.media3.decoder.ffmpeg |
com.google.android.exoplayer2.ext.flac | androidx.media3.decoder.flac |
com.google.android.exoplayer2.ext.ima | androidx.media3.exoplayer.ima |
com.google.android.exoplayer2.ext.Leanback | androidx.media3.ui.Leanback |
com.google.android.exoplayer2.ext.okhttp | androidx.media3.data.okhttp. |
com.google.android.exoplayer2.ext.opus | androidx.media3.decoder.opus |
com.google.android.exoplayer2.ext.rtmp | androidx.media3.fuente de datos.rtmp |
com.google.android.exoplayer2.ext.vp9 | androidx.media3.decoder.vp9 |
com.google.android.exoplayer2.ext.workmanager | androidx.media3.exoplayer.workmanager |
com.google.android.exoplayer2.extractor | androidx.media3.extractor |
com.google.android.exoplayer2.gldemo | androidx.media3.demo.gl |
com.google.android.exoplayer2.mediacodec | androidx.media3.exoplayer.mediacodec |
com.google.android.exoplayer2.metadata | androidx.media3.extractor.metadata |
com.google.android.exoplayer2.sin conexión | androidx.media3.exoplayer.sin conexión |
com.google.android.exoplayer2.playbacktests | androidx.media3.test.exoplayer.playback |
com.google.android.exoplayer2.robolectric | androidx.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.rtsp | androidx.media3.exoplayer.rtsp |
com.google.android.exoplayer2.source.dash | androidx.media3.exoplayer.dash |
com.google.android.exoplayer2.source.smoothstreaming | androidx.media3.exoplayer.smoothstreaming |
com.google.android.exoplayer2.source.hls | androidx.media3.exoplayer.hls |
com.google.android.exoplayer2.surfacedemo | androidx.media3.demo.surface |
com.google.android.exoplayer2.testdata | androidx.media3.test.data |
com.google.android.exoplayer2.testutil | androidx.media3.test.utils |
com.google.android.exoplayer2.text | androidx.media3.extractor.text |
com.google.android.exoplayer2.trackselection | androidx.media3.exoplayer.trackselection |
com.google.android.exoplayer2.transformer | androidx.media3.transformer. |
com.google.android.exoplayer2.transformerdemo | androidx.media3.demo.transformer |
com.google.android.exoplayer2.ui | androidx.media3.ui |
com.google.android.exoplayer2.upstream.crypto | androidx.media3.exoplayer.upstream.crypto |
com.google.android.exoplayer2.upstream.cache | androidx.media3.SOURCE.cache |
com.google.android.exoplayer2.upstream | androidx.media3.fuente de datos |
com.google.android.exoplayer2.util | androidx.media3.exoplayer.util |
com.google.android.exoplayer2.util | androidx.media3.common.util. |
com.google.android.exoplayer2.video | androidx.media3.exoplayer.video |
Cambio de nombre de las clases
Nombre de la clase exoplayer2 | nombre del paquete media3 | Nombres de clases de media3 |
com.google.android.exoplayer2.ExoPlayerLibraryInfo | androidx.media3.common | Informacióndebiblioteca multimedia |
com.google.android.exoplayer2.SimpleExoPlayer | androidx.media3.exoplayer | ExoPlayer |
com.google.android.exoplayer2.ui.StyledPlayerView | androidx.media3.ui | Vista del reproductor |
com.google.android.exoplayer2.ui.StyledPlayerControlView | androidx.media3.ui | Vista de control del reproductor |
La clase se movió a otros paquetes
Nombre del paquete exoplayer2 | nombre del paquete media3 | Nombres de clases de media3 |
com.google.android.exoplayer2 | androidx.media3.exoplayer | FormatHolder y PlayerMessage |
com.google.android.exoplayer2 | androidx.media3.common | BasePlayer, BundleListRetriever, Bundleable, ControlDispatcher, C, DefaultControlDispatcher, DeviceInfo, ErrorMessageProvider, ExoPlayerLibraryInfo, Format, RedirectPlayer, HeartRating, IllegalSeekPositionException, MediaItem, MediaMetadata, ParserException, PercentageRating, PlaybackException, PlaybackParameters, Player, PositionInfo, Rating, StarRating, ThumbRating, Rutas, Tracks, |
com.google.android.exoplayer2.audio | androidx.media3.extractor | AacUtil, Ac3Util, Ac4Util, DtsUtil, MpegAudioUtil, OpusUtil, WavUtil |
com.google.android.exoplayer2.audio | androidx.media3.common | AudioAttribute y AuxEffectInfo |
com.google.android.exoplayer2.decoder | androidx.media3.exoplayer | DecoderCounters y DecoderReuseEvaluation |
com.google.android.exoplayer2.drm | androidx.media3.common | Datos DrmInit |
com.google.android.exoplayer2.metadata | androidx.media3.exoplayer.metadata | MetadataDecoderFactor, MetadataOutput y MetadataRenderer |
com.google.android.exoplayer2.metadata | androidx.media3.common | Metadatos |
com.google.android.exoplayer2.sin conexión | androidx.media3.common | Clave de transmisión |
com.google.android.exoplayer2.source.ads | androidx.media3.common | Estado de reproducción de anuncios |
com.google.android.exoplayer2.source | androidx.media3.common | IDde períododemedio, grupo de seguimiento |
com.google.android.exoplayer2.trackselection | androidx.media3.common | TrackSelectionParameter, TrackSelectionOverride |
com.google.android.exoplayer2.text | androidx.media3.common.text. | Taco |
com.google.android.exoplayer2.text | androidx.media3.exoplayer.text | ExoplayerCuesDecode, SubtitleDecoderFactor, TextOutput y TextRenderer |
com.google.android.exoplayer2.text.span | androidx.media3.common.text. | HorizontalTextInVerticalContextSpan, LanguageFeatureSpa, RubySpa, SpanUti, TextAnnotation y TextEmphasisSpan |
com.google.android.exoplayer2.ui | androidx.media3.common | AdOverlayInf y AdViewProvider |
com.google.android.exoplayer2.ui | androidx.media3.exoplayer.sin conexión | DownloadNotificationHelper. |
com.google.android.exoplayer2.upstream | androidx.media3.common | Lector de datos |
com.google.android.exoplayer2.upstream | androidx.media3.exoplayer.upstream | Asignación, Asignador, BandwidthMeter, CachedRegionTracker, DefaultAllocator, DefaultBandwidthMeter, DefaultLoadErrorHandlingPolicy, Loader, LoaderErrorThrower, ParsingLoadable, SlidingPercentile, TimeToFirstByteEstimator |
com.google.android.exoplayer2.upstream.crypto | androidx.media3.fuente de datos | AesCipherDataSource, AesCipherDataSink y AesFlushingCipher |
com.google.android.exoplayer2.util | androidx.media3.common | ErrorMessageProvider, FlagSet, FileType, MimeType y PriorityTaskManager |
com.google.android.exoplayer2.util | androidx.media3.common.util. | . |
com.google.android.exoplayer2.util | androidx.media3.extractor | NalUnitUtil y ParsableNalUnitBitArray |
com.google.android.exoplayer2.util | androidx.media3.exoplayer | MediaClock y StandaloneMediaClock |
com.google.android.exoplayer2.video | androidx.media3.common | ColorInfo y VideoSize |
com.google.android.exoplayer2.video | androidx.media3.extractor | AvcConfig, DolbyVisionConfig, HevcConfig |
Asignaciones de dependencias
Nombre del módulo exoplayer2 | Nombre del módulo de media3 |
ExoPlayer | media3-exoplayer |
base de datos de exoplayer | base de datos-media3 |
exoplayer-fuente de datos | fuente de datos de media3 |
exoplayer-decodificador | decodificador-media3 |
exojugador-común | media3-común |
Exoplayer | media3-exoplayer |
Exoplayer | media3-exoplayer-dash |
exoplayer-extractor | extractor-media3 |
Exoplayer | media3-exoplayer-hls |
exoplayer-robolectricutils | media3-test-utils-robolectric |
Exoplayer | media3-exo-reproductor-RTSP |
Transmisión fluida de exoplayer | media3-exoplayer-smoothstreaming |
Exoplayer-testutils | herramientas-de-prueba-de-media3 |
exojugador-transformador | media3-transformer |
ExoPlayer | media3-ui |
extensión-cast | media3-cast |
cronet de extensiones | media3-fuente de datos-cronet |
extensión-ima | media3-exo-reproductor-ima |
extensión - Leanback | media3-ui-Leanback |
extensión-okhttp | media3-fuente de datos-okhttp |
extensión-rtmp | media3-fuente de datos-rtmp |
administrador-de-trabajos de extensiones | media3-exo-reproductor-administrador-de-trabajo |