The androidx.media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android

Overview

AndroidX Media

AndroidX Media is a collection of libraries for implementing media use cases on Android, including local playback (via ExoPlayer) and media sessions.

Current status

AndroidX Media is currently in alpha and we welcome your feedback via the issue tracker. Please consult the release notes for more details about the alpha release.

ExoPlayer's new home will be in AndroidX Media, but for now we are publishing it both in AndroidX Media and via the existing ExoPlayer project. While AndroidX Media is in alpha we recommend that production apps using ExoPlayer continue to depend on the existing ExoPlayer project. We are still handling ExoPlayer issues on the ExoPlayer issue tracker.

Updated documentation, including more information on migration and a developer guide, is coming soon. For existing ExoPlayer users, the most important change is that all classes have been moved to new packages under androidx.media3.

AndroidX Media alpha releases provide no guarantees about API stability, but the codebase includes API stability marking for non-alpha releases. If you see lint errors from using the unstable API surface, you can opt-in by annotating the relevant code or disabling the lint check entirely. For more information see the UnstableApi documentation.

For a high level overview of the initial version of AndroidX Media please see the Android Dev Summit talk What's next for AndroidX Media and ExoPlayer.

Using the libraries

You can get the libraries from the Google Maven repository. It's also possible to clone this GitHub repository and depend on the modules locally.

From the Google Maven repository

1. Add module dependencies

The easiest way to get started using AndroidX Media is to add gradle dependencies on the libraries you need in the build.gradle file of your app module.

For example, to depend on ExoPlayer with DASH playback support and UI components you can add dependencies on the modules like this:

implementation 'androidx.media3:media3-exoplayer:1.X.X'
implementation 'androidx.media3:media3-exoplayer-dash:1.X.X'
implementation 'androidx.media3:media3-ui:1.X.X'

where 1.X.X is your preferred version. All modules must be the same version.

Please see the AndroidX Media3 developer.android.com page for more information, including a full list of library modules.

This repository includes some modules that depend on external libraries that need to be built manually, and are not available from the Maven repository. Please see the individual READMEs under the libraries directory for more details.

2. Turn on Java 8 support

If not enabled already, you also need to turn on Java 8 support in all build.gradle files depending on AndroidX Media, by adding the following to the android section:

compileOptions {
  targetCompatibility JavaVersion.VERSION_1_8
}

3. Enable multidex

If your Gradle minSdkVersion is 20 or lower, you should enable multidex in order to prevent build errors.

Locally

Cloning the repository and depending on the modules locally is required when using some libraries. It's also a suitable approach if you want to make local changes, or if you want to use the main branch.

First, clone the repository into a local directory and checkout the desired branch:

git clone https://github.com/androidx/media.git
cd media
git checkout main

Next, add the following to your project's settings.gradle file, replacing path/to/media with the path to your local copy:

gradle.ext.androidxMediaModulePrefix = 'media-'
apply from: file("path/to/media/core_settings.gradle")

You should now see the AndroidX Media modules appear as part of your project. You can depend on them as you would on any other local module, for example:

implementation project(':media-lib-exoplayer')
implementation project(':media-lib-exoplayer-dash')
implementation project(':media-lib-ui')

Developing AndroidX Media

Project branches

Development work happens on the main branch. Pull requests should normally be made to this branch.

We plan to add a release branch soon.

Using Android Studio

To develop AndroidX Media using Android Studio, simply open the project in the root directory of this repository.

Comments
  • Users report my app isn't working on Samsung Galaxy S21+

    Users report my app isn't working on Samsung Galaxy S21+

    I've just built and released an application with media3.

    Links:

    • Google Play: https://play.google.com/store/apps/details?id=com.denuafhaengige.duahandroid&hl=en_US&gl=US
    • Source: https://github.com/denuafhaengige/duah-android
    • Example on-demand stream: https://stream.denuafhaengige.dk/vod/hls/broadcasts/787/single/index-a1.m3u8
    • Example live stream: https://radio.denuafhaengige.dk/live

    Versions:

    • media3: 1.0.0-alpha01

    Everything seems to work fine for most devices, but we've received 2 reports from users of Samsung Galaxy S21+ devices who are unable to play any of the media.

    I haven't been able to verify the issue as I don't have a device at hand.

    Another thing: enableAudioOffload causes things not to work properly on Pixel 6 Pro and perhaps more devices: https://github.com/denuafhaengige/duah-android/blob/master/app/src/player/Service.kt#L106

    Hope for help/guidance, thanks.

    bug 
    opened by rhummelmose 14
  • ForegroundServiceStartNotAllowedException when playing from a home screen widget

    ForegroundServiceStartNotAllowedException when playing from a home screen widget

    Due to the behavior changes of Android 12, the app crashes when I play a track then the app loses AudioFocus, for which I have a callback when the app gains audio focus AudioManager.AUDIOFOCUS_GAIN that's where the media player crashes The MediaNotificationHandler.java#L129 throws a ForegroundServiceStartNotAllowedException. I assume when the app loses audio focus stopForegroundServiceIfNeeded(); is called

    Would we need to update the playing media to WorkManager or what is the official guide to support playing media while the app is in the background on Android 12?

    • AndroidX Media 3
    • Android version 12
    • Android device Pixel 5
    bug 
    opened by arlindiDev 14
  • How to prevent buffering while Player is paused

    How to prevent buffering while Player is paused

    I am currently porting a streaming radio app over to use media3.

    The expected behavior for a radio app regarding start/stop of playback is my opinion the following:

    1. user starts playback => app starts playing live radio
    2. user stops/pauses playback => app stops playing
    3. user starts playback again => app starts playing live radio, content that the user missed while the playback was stopped is skipped, radio is always live

    Basically I think a radio app should behave like an old school FM radio. It is always live. Playback should not be behind. One should not be able to rewind / fast forward.

    Solution 1: use Player.stop() After the user tapped on Stop the apps stops buffering immediately. Which is good. But due to the automatic foreground handling of the app (see also #45) the notification is dismissed immediately. That is not good. Users expect to be able to start playback again after hitting Stop or Pause - at least for a couple of minutes.

    Solution 2: use Player.pause() The Player buffers the live stream and resumes playback from the position, it has been paused. The playback is behind. The radio is not live anymore. I can change that behavior and seekTo(0) to resume live playback. My problem is the buffering. That produce unnecessary network traffic.

    I now wonder how I can proceed. Is there a way to tell the Player to stop buffering when it has been paused?

    PS. media3 is a lot easier to use and I need way less code to the things I need it to do than support.v4.media. Thank you for the great work here.

    question 
    opened by y20k 12
  • sendCustomCommand not work,can not get the SessionResult。

    sendCustomCommand not work,can not get the SessionResult。

    1、the Service is com.android.bluetooth,the will usb MediaControllerImplLegacy。 2、when i usb sendCustomCommand,but the availableSessionCommands not contains COMMAND_CODE_CUSTOM,so it not work。

    val bundle = Bundle().apply {
                       putInt("usage", audioAttributes.usage)
                        putInt("stream_type", audioAttributes.volumeControlStream)
                        putParcelable(BluetoothDevice.EXTRA_DEVICE, null)
                    }
    val future = it.sendCustomCommand(SessionCommand(CUSTOM_ACTION_SET_STREAM_TYPE, bundleOf()),bundle)
       future.addListener({
                    val result = future.get()
                    Log.d(TAG,"resutlt is $result ")
                }, MoreExecutors.directExecutor())
    

    How to do?

    question need more info 
    opened by tydqcjj 11
  • Add support for RTSP PCM/WAV and G711/WAV

    Add support for RTSP PCM/WAV and G711/WAV

    Added PCM RTP packet reader and added support for PCM 8 bit, 16 bit, ALAW and MULAW playback through RTSP.

    Change-Id: If0a187b55faa89850a159e17eae28358d6634799

    opened by basantwanishraddha 10
  • Ongoing Media Notification for Wear not working with certain media

    Ongoing Media Notification for Wear not working with certain media

    Test is here testPlayCausesNotification. https://github.com/yschimke/media/commit/637b4878e09e7a1c560b2572a168b92a0181a1d5

    The test doesn't fail, the notification check succeeds, but the two media items in the test behave differently.

    Podcast MP3 - Shows the ongoing notification and (with a real app not a test) the Media title in the recent app switcher.

        val milkJawn = Channel(
                "a",
                "Milk Jawn's ice cream pop-up to become a brick-and-mortar",
                "What's Cooking",
                "https://traffic.omny.fm/d/clips/4b5f9d6d-9214-48cb-8455-a73200038129/a76af74b-4211-43f1-8fa6-a78e00b5ae4b/acffa77d-5b31-499e-b38b-adf800e1778b/audio.mp3",
                "https://cdn.player.fm/images/14416069/series/stoRUvKcFOzInZ1X/512.jpg",
        )
    
    image

    Radio Stream - Doesn't show notification (or media title in app switcher)

        val BBCRadio1 = Channel(
                "1",
                "Radio 1",
                "BBC",
                "https://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/sbr_vlow/ak/bbc_radio_one.m3u8",
                "https://sounds.files.bbci.co.uk/2.3.0/networks/bbc_radio_one/colour_default.svg",
        )
    
    image

    Can reproduce on Devices (Samsung GW4, Suunto7) and Emulator (API 30).

    Androidx Media3 - 1.0.0-alpha01 API 30 Emulator

    bug 
    opened by yschimke 10
  • Crash because of the foreground service did not start in time

    Crash because of the foreground service did not start in time

    Media3 Version

    1.0.0-beta01

    Devices that reproduce the issue

    Google Pixel 6, Android 13 Samsung Galaxy A32 5G, Android 12 Samsung Galaxy A13 5G, Android 12 Xiaomi POCO X3 Pro, Android 12 Samsung Galaxy A12, Android 11 Samsung Galaxy A10s, Android 11

    Devices that do not reproduce the issue

    Can't reproduce manually, got those stats from Crashlytics. Not sure how we can deal with this crash, do you have any idea why this crash may happen?

    Reproducible in the demo app?

    Not tested

    Reproduction steps

    We extended our playback service by your MediaSessionService, the crash happened approximately 70% in the background (stats in Crashlytics), we can't manage to reproduce it in any way.

    Expected result

    Actual result

    There are several types of exception grouped by the Android OS, but the reason looks exactly the same

    Android 11

    Fatal Exception: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{bc3065 u0 com.bandlab.bandlab/com.bandlab.media.player.notification.MediaPlaybackService}
           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2269)
           at android.os.Handler.dispatchMessage(Handler.java:106)
           at android.os.Looper.loop(Looper.java:246)
           at android.app.ActivityThread.main(ActivityThread.java:8653)
           at java.lang.reflect.Method.invoke(Method.java)
           at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
    

    Android 12

    Fatal Exception: android.app.ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{782cd47 u0 com.bandlab.bandlab/com.bandlab.media.player.notification.MediaPlaybackService}
           at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2147)
           at android.app.ActivityThread.access$2800(ActivityThread.java:310)
           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2376)
           at android.os.Handler.dispatchMessage(Handler.java:106)
           at android.os.Looper.loopOnce(Looper.java:226)
           at android.os.Looper.loop(Looper.java:313)
           at android.app.ActivityThread.main(ActivityThread.java:8669)
           at java.lang.reflect.Method.invoke(Method.java)
           at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
    

    Android 13

    Fatal Exception: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{2c98e95 u0 com.bandlab.bandlab/com.bandlab.media.player.notification.MediaPlaybackService}
           at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2013)
           at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:1984)
           at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException()
           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2249)
           at android.os.Handler.dispatchMessage(Handler.java:106)
           at android.os.Looper.loopOnce(Looper.java:201)
           at android.os.Looper.loop(Looper.java:288)
           at android.app.ActivityThread.main(ActivityThread.java:7929)
           at java.lang.reflect.Method.invoke(Method.java)
           at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
    

    Media

    Nothing particular, just normal audio streaming

    Bug Report

    • [ ] You will email the zip file produced by adb bugreport to [email protected] after filing this issue.
    bug 
    opened by kevinguitar 8
  • Notification reappears after closing app when media is paused.

    Notification reappears after closing app when media is paused.

    Media notification reappears when media is paused and its buttons not working when the app is removed from recents[demo-session]. Steps to reproduce: 1- Run demo-session app. 2- Play some media. 3- Pause it. 4- Remove the app from recents. 5- Notification will reappear and the media button does nothing.

    See video here.

    Device: Xiaomi mi a2 android 10

    bug 
    opened by muhammadalkady 8
  • Make customization of OkHttpDataSource easier

    Make customization of OkHttpDataSource easier

    I want to extend OkHttpDataSource, because we are creating our calls with Retrofit.

    Suggestions:

    • Remove "private" visibility from executeCall() & closeConnectionQuietly(), makeRequest(), so that our overridden functions can use them or override them.
    • Remove "private" visibility from dataSpec, bytesRead, bytesToRead, callFactory, response, responseByteStream, opened
    enhancement 
    opened by tzugen 7
  • Feature request: disable automatic foreground service management

    Feature request: disable automatic foreground service management

    Use case description

    We would like to disable the automatic foreground service management of the MediaSessionService or at least get a callback wenn the foreground service is stopped to be able to keep the service alive for a longer time. Unfortunately the Service.stopForeground method is final and we can't override it.

    Proposed solution

    Provide an option whether handling the foreground service should be done by the MediaSessionService or whether it's handled by the implementation of that service itself.

    Alternatives considered

    Provide a callback or a startForeground/stopForeground method that can be overridden.

    enhancement 
    opened by mopfattn 7
  • currentMediaItem is empty when a CastPlayer is being used

    currentMediaItem is empty when a CastPlayer is being used

    I'm using a MediaLibraryService that switches the player from ExoPlayer to CastPlayer when a CastSession is available. When the ExoPlayer is active, calling getCurrentMediaItem() from a MediaController returns the correct MediaItem, but if the same call is done when the CastPlayer is the active one, I receive an empty MediaItem.

    The method getWindow(...) inside CastTimeline is the one creating and using an empty MediaItem instead of the expected currentMediaItem.

    bug 
    opened by spun 7
  • Jetpack compose  , Hilt and coroutines example for the demo apps

    Jetpack compose , Hilt and coroutines example for the demo apps

    Jetpack compose example for the demo apps

    Since the recommended way for future android is Kotlin with Jetpack compose, dagger hilt and coroutines, can you provide examples for media 3 using these .

    question needs triage 
    opened by pawaom 0
  • TimeLine of when Media 3 will be production ready

    TimeLine of when Media 3 will be production ready

    TimeLine of when Media 3 will be production ready

    Media 3 has been a great development for creating new apps with media support, specially reducing the need to write extra code as compared to exoplayer.

    When we check the RELEASENOTES , the latest beta version was released in November 2022, When we go through the issues pages, there are a few bugs and enhancements which are still pending , We have been developing app based on media 3 and would like to know how soon can we expect the media 3 Libraries will be production ready. Most other developers also want the library to be available soon. Kindly consider the request to release the production ready version as soon as possible.

    question needs triage 
    opened by pawaom 1
  • Guidance on Playback Position persistance

    Guidance on Playback Position persistance

    Problem

    I'm currently trying to migrate my audiobook player Voice to media3 session, but I'm having a difficult time doing so. The main problem is that media3 seems to be designed primarily for music playback, with the assumption that the user can freely browse and play individual tracks. However, in the audiobook (or podcast) use case, the user wants to play a book as a whole, rather than individual tracks. Additionally, the user wants the ability to resume playback from where they left off.

    Example

    When interacting with android auto, which uses the legacy media APIs and calls onPlayFromMediaId, media3 internally calls onAddMediaItems with a searchQuery and prepares and plays the first track of the audiobook. This doesn't meet the needs of the audiobook use case, as the user does not want to start playback at the beginning of the book every time.

    Solution

    I would love to get some guidance on how media3 is supposed to work with use cases that involve persisting the playback position. It would be helpful to have more information on how media3 is intended to be used in scenarios like audiobook playback, where the user wants to play a book as a whole and maintain their position within the book.

    question needs triage 
    opened by PaulWoitaschek 0
  • Adding Metadata to controller in an Activity has no effect

    Adding Metadata to controller in an Activity has no effect

    When I tried to add/set Metadata info (audio only) to the MediaController, no effect happened. Code:

    class PlayerService : MediaSessionService() {
       override fun onCreate() {
            super.onCreate()
            player = ExoPlayer.Builder(this).setWakeMode(PowerManager.PARTIAL_WAKE_LOCK).build()
            mediaSession = MediaSession.Builder(this, player).build()
            
            // first item add to the list, this will be played.
            player.addMediaItem(MediaItem.fromUri(Client.getStreamUrl("tr-1405")))
    
            override fun onGetSession(controllerInfo: MediaSession.ControllerInfo): MediaSession? = mediaSession
        }
    
    }
    
    class MainActivity: ComponentActivity() {
        override fun onStart() {
            super.onStart()
            val sessionToken = SessionToken(this, ComponentName(this, PlayerService::class.java))
            val controllerFuture = MediaController.Builder(this, sessionToken).buildAsync()
            controllerFuture.addListener(
                {
                    val player = controllerFuture.get()
    
                    //the second, this will not be played or have any effect on Service. 
                    //Listener onTimelineChange on controller will work. 
                    //I also tried setMediaItem, but only the first media can still be played.
                    //player.availableCommands.contains(Player.COMMAND_SET_MEDIA_ITEM) gives true
                    player.addMediaItem(MediaItem.fromUri(Client.getStreamUrl("tr-1406")))
                    player.playWhenReady = true
                    player.prepare()
                },
                MoreExecutors.directExecutor()
            )
        }
    }
    

    In the Activity, methods like play() and pause() work. No errors were given when addMediaItem in the activity.

    Version: 1.0.0-beta03 Act the same on Android 11 and 13 Did I misuse this function?

    question needs triage 
    opened by lynkas 0
  • Settings PopUp dialog isn't displayed properly when using setDecorFitsSystemWindows(false)

    Settings PopUp dialog isn't displayed properly when using setDecorFitsSystemWindows(false)

    Media3 Version

    1.0.0-beta03

    Devices that reproduce the issue

    NOTE: This happens only on 1.0.0-beta01 and up. On 1.0.0-alpha03, this cannot be reproduced, there's no bug.

    Pixel 4 Emulator running Android 12 Xiaomi Poco F3 running Android 12 Xiaomi Redmi 8 running Android 9

    Devices that do not reproduce the issue

    No response

    Reproducible in the demo app?

    Yes

    Reproduction steps

    NOTE: This happens only on 1.0.0-beta01 and up. On 1.0.0-alpha03, this cannot be reproduced, there's no bug.

    Try to hide the SystemUI (Status bar and Navigation bar) by using setDecorFitsSystemWindows(false)

    Full code:

    fun Activity.hideSystemUI() {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
            window.setDecorFitsSystemWindows(false)
            window.insetsController?.let {
                it.systemBarsBehavior = WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
                it.hide(WindowInsetsCompat.Type.systemBars())
            }
        } else {
            WindowCompat.setDecorFitsSystemWindows(window, false)
            WindowCompat.getInsetsController(window, window.decorView).apply {
                systemBarsBehavior = WindowInsetsControllerCompat.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
                hide(WindowInsetsCompat.Type.systemBars())
            }
        }
    
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
            window?.attributes?.layoutInDisplayCutoutMode =
                WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
        }
    }
    

    Expected result

    NOTE: This happens only on 1.0.0-beta01 and up. On 1.0.0-alpha03, this cannot be reproduced, there's no bug.

    Version 1.0.0-alpha03

    image image

    Actual result

    NOTE: This happens only on 1.0.0-beta01 and up. On 1.0.0-alpha03, this cannot be reproduced, there's no bug.

    Version 1.0.0-beta03

    image image

    Media

    https://www.youtube.com/api/manifest/dash/id/bf5bb2419360daf1/source/youtube?as=fmp4_audio_clear,fmp4_sd_hd_clear&sparams=ip,ipbits,expire,source,id,as&ip=0.0.0.0&ipbits=0&expire=19000000000&signature=51AF5F39AB0CEC3E5497CD9C900EBFEAECCCB5C7.8506521BFC350652163895D4C26DEE124209AA9E&key=ik0

    Bug Report

    • [ ] You will email the zip file produced by adb bugreport to [email protected] after filing this issue.
    bug needs triage 
    opened by davidtrpchevski 1
  • How to avoid seeking to next item when pressing multiple times on the PLAY_PAUSE button in the media notification?

    How to avoid seeking to next item when pressing multiple times on the PLAY_PAUSE button in the media notification?

    Hello, I'm using media3 version 1.0.0-beta03. I observed the following behavior in the demo-session which uses the DefaultMediaNotificationProvider.

    If you press quickly on the PLAY_PAUSE button in the media notification, it will automatically seek to the next item.

    Is it a bug or an expected behavior? Is there a way to disable the "seek to next" behavior?

    Currently, I overrided the onPlayerCommandRequest in the MediaLibrarySession.Callback to fix the issue but it does not work. It seems that the player command SEEK_TO_NEXT is sent when double tapping on the button PLAY_PAUSE.

    override fun onPlayerCommandRequest(session: MediaSession, controller: MediaSession.ControllerInfo, playerCommand: Int): Int {
        return when (playerCommand) {
            Player.COMMAND_PLAY_PAUSE -> {
                if (player.playWhenReady) {
                    player.pause()
                } else {
                    player.play()
                }
                SessionResult.RESULT_INFO_SKIPPED
            }
            else -> super.onPlayerCommandRequest(session, controller, playerCommand)
        }
    }
    

    Also, if I set the player command SEEK_TO_NEXT_MEDIA_ITEM in the media notification provider, it will be received as the player command SEEK_TO_NEXT in the method onPlayerCommandRequest...

    bug 
    opened by aureliendrouet 3
Releases(1.0.0-beta03)
  • 1.0.0-beta03(Nov 23, 2022)

    • Core library:
      • Add ExoPlayer.isTunnelingEnabled to check if tunneling is enabled for the currently selected tracks (https://github.com/google/ExoPlayer/issues/2518).
      • Add WrappingMediaSource to simplify wrapping a single MediaSource (https://github.com/google/ExoPlayer/issues/7279).
      • Discard back buffer before playback gets stuck due to insufficient available memory.
      • Close the Tracing "doSomeWork" block when offload is enabled.
      • Fix session tracking problem with fast seeks in PlaybackStatsListener (https://github.com/androidx/media/issues/180).
      • Send missing onMediaItemTransition callback when calling seekToNext or seekToPrevious in a single-item playlist (https://github.com/google/ExoPlayer/issues/10667).
      • Add Player.getSurfaceSize that returns the size of the surface on which the video is rendered.
      • Fix bug where removing listeners during the player release can cause an IllegalStateException (https://github.com/google/ExoPlayer/issues/10758).
    • Build:
      • Enforce minimum compileSdkVersion to avoid compilation errors (https://github.com/google/ExoPlayer/issues/10684).
      • Avoid publishing block when included in another gradle build.
    • Track selection:
      • Prefer other tracks to Dolby Vision if display does not support it. (https://github.com/google/ExoPlayer/issues/8944).
    • Downloads:
      • Fix potential infinite loop in ProgressiveDownloader caused by simultaneous download and playback with the same PriorityTaskManager (https://github.com/google/ExoPlayer/pull/10570).
      • Make download notification appear immediately (https://github.com/androidx/media/pull/183).
      • Limit parallel download removals to 1 to avoid excessive thread creation (https://github.com/google/ExoPlayer/issues/10458).
    • Video:
      • Try alternative decoder for Dolby Vision if display does not support it. (https://github.com/google/ExoPlayer/issues/9794).
    • Audio:
      • Use SingleThreadExecutor for releasing AudioTrack instances to avoid OutOfMemory errors when releasing multiple players at the same time (https://github.com/google/ExoPlayer/issues/10057).
      • Adds AudioOffloadListener.onExperimentalOffloadedPlayback for the AudioTrack offload state. (https://github.com/androidx/media/issues/134).
      • Make AudioTrackBufferSizeProvider a public interface.
      • Add ExoPlayer.setPreferredAudioDevice to set the preferred audio output device (https://github.com/androidx/media/issues/135).
      • Rename androidx.media3.exoplayer.audio.AudioProcessor to androidx.media3.common.audio.AudioProcessor.
      • Map 8-channel and 12-channel audio to the 7.1 and 7.1.4 channel masks respectively on all Android versions (https://github.com/google/ExoPlayer/issues/10701).
    • Metadata:
      • MetadataRenderer can now be configured to render metadata as soon as they are available. Create an instance with MetadataRenderer(MetadataOutput, Looper, MetadataDecoderFactory, boolean) to specify whether the renderer will output metadata early or in sync with the player position.
    • DRM:
      • Work around a bug in the Android 13 ClearKey implementation that returns a non-empty but invalid license URL.
      • Fix setMediaDrmSession failed: session not opened error when switching between DRM schemes in a playlist (e.g. Widevine to ClearKey).
    • Text:
      • CEA-608: Ensure service switch commands on field 2 are handled correctly (https://github.com/google/ExoPlayer/issues/10666).
    • DASH:
      • Parse EventStream.presentationTimeOffset from manifests (https://github.com/google/ExoPlayer/issues/10460).
    • UI:
      • Use current overrides of the player as preset in TrackSelectionDialogBuilder (https://github.com/google/ExoPlayer/issues/10429).
    • Session:
      • Ensure commands are always executed in the correct order even if some require asynchronous resolution (https://github.com/androidx/media/issues/85).
      • Add DefaultMediaNotificationProvider.Builder to build DefaultMediaNotificationProvider instances. The builder can configure the notification ID, the notification channel ID and the notification channel name used by the provider. Also, add method DefaultMediaNotificationProvider.setSmallIcon(int) to set the notifications small icon. (https://github.com/androidx/media/issues/104).
      • Ensure commands sent before MediaController.release() are not dropped (https://github.com/androidx/media/issues/99).
      • SimpleBitmapLoader can load bitmap from file:// URIs (https://github.com/androidx/media/issues/108).
      • Fix assertion that prevents MediaController to seek over an ad in a period (https://github.com/androidx/media/issues/122).
      • When playback ends, the MediaSessionService is stopped from the foreground and a notification is shown to restart playback of the last played media item (https://github.com/androidx/media/issues/112).
      • Don't start a foreground service with a pending intent for pause (https://github.com/androidx/media/issues/167).
      • Manually hide the 'badge' associated with the notification created by DefaultNotificationProvider on API 26 and API 27 (the badge is automatically hidden on API 28+) (https://github.com/androidx/media/issues/131).
      • Fix bug where a second binder connection from a legacy MediaSession to a Media3 MediaController causes IllegalStateExceptions (https://github.com/androidx/media/issues/49).
    • RTSP:
      • Add H263 fragmented packet handling (https://github.com/androidx/media/pull/119).
      • Add support for MP4A-LATM (https://github.com/androidx/media/pull/162).
    • IMA:
      • Add timeout for loading ad information to handle cases where the IMA SDK gets stuck loading an ad (https://github.com/google/ExoPlayer/issues/10510).
      • Prevent skipping mid-roll ads when seeking to the end of the content (https://github.com/google/ExoPlayer/issues/10685).
      • Correctly calculate window duration for live streams with server-side inserted ads, for example IMA DAI (https://github.com/google/ExoPlayer/issues/10764).
    • FFmpeg extension:
      • Add newly required flags to link FFmpeg libraries with NDK 23.1.7779620 and above (https://github.com/google/ExoPlayer/issues/9933).
    • AV1 extension:
      • Update CMake version to avoid incompatibilities with the latest Android Studio releases (https://github.com/google/ExoPlayer/issues/9933).
    • Cast extension:
      • Implement getDeviceInfo() to be able to identify CastPlayer when controlling playback with a MediaController (https://github.com/androidx/media/issues/142).
    • Transformer:
      • Add muxer watchdog timer to detect when generating an output sample is too slow.
    • Remove deprecated symbols:
      • Remove Transformer.Builder.setOutputMimeType(String). This feature has been removed. The MIME type will always be MP4 when the default muxer is used.
    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-beta02(Jul 22, 2022)

    This release corresponds to the ExoPlayer 2.18.1 release.

    • Core library:
      • Ensure that changing the ShuffleOrder with ExoPlayer.setShuffleOrder results in a call to Player.Listener#onTimelineChanged with reason=Player.TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED (#9889).
      • For progressive media, only include selected tracks in buffered position (#10361).
      • Allow custom logger for all ExoPlayer log output (#9752).
      • Fix implementation of setDataSourceFactory in DefaultMediaSourceFactory, which was non-functional in some cases (#116).
    • Extractors:
      • Fix parsing of H265 short term reference picture sets (#10316).
      • Fix parsing of bitrates from esds boxes (#10381).
    • DASH:
      • Parse ClearKey license URL from manifests (#10246).
    • UI:
      • Ensure TalkBack announces the currently active speed option in the playback controls menu (#10298).
    • RTSP:
      • Add VP8 fragmented packet handling (#110).
    • Leanback extension:
      • Listen to playWhenReady changes in LeanbackAdapter (10420).
    • Cast:
      • Use the MediaItem that has been passed to the playlist methods as Window.mediaItem in CastTimeline (#25, #8212).
      • Support Player.getMetadata() and Listener.onMediaMetadataChanged() with CastPlayer (#25).
    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-beta01(Jun 17, 2022)

    1.0.0-beta01 (2022-06-16)

    This release corresponds to the ExoPlayer 2.18.0 release.

    • Core library:
      • Enable support for Android platform diagnostics via MediaMetricsManager. ExoPlayer will forward playback events and performance data to the platform, which helps to provide system performance and debugging information on the device. This data may also be collected by Google if sharing usage and diagnostics data is enabled by the user of the device. Apps can opt-out of contributing to platform diagnostics for ExoPlayer with ExoPlayer.Builder.setUsePlatformDiagnostics(false).
      • Fix bug that tracks are reset too often when using MergingMediaSource, for example when side-loading subtitles and changing the selected subtitle mid-playback (#10248).
      • Stop detecting 5G-NSA network type on API 29 and 30. These playbacks will assume a 4G network.
      • Disallow passing null to MediaSource.Factory.setDrmSessionManagerProvider and MediaSource.Factory.setLoadErrorHandlingPolicy. Instances of DefaultDrmSessionManagerProvider and DefaultLoadErrorHandlingPolicy can be passed explicitly if required.
      • Add MediaItem.RequestMetadata to represent metadata needed to play media when the exact LocalConfiguration is not known. Also remove MediaMetadata.mediaUrl as this is now included in RequestMetadata.
      • Add Player.Command.COMMAND_SET_MEDIA_ITEM to enable players to allow setting a single item.
    • Track selection:
      • Flatten TrackSelectionOverrides class into TrackSelectionParameters, and promote TrackSelectionOverride to a top level class.
      • Rename TracksInfo to Tracks and TracksInfo.TrackGroupInfo to Tracks.Group. Player.getCurrentTracksInfo and Player.Listener.onTracksInfoChanged have also been renamed to Player.getCurrentTracks and Player.Listener.onTracksChanged. This includes 'un-deprecating' the Player.Listener.onTracksChanged method name, but with different parameter types.
      • Change DefaultTrackSelector.buildUponParameters and DefaultTrackSelector.Parameters.buildUpon to return DefaultTrackSelector.Parameters.Builder instead of the deprecated DefaultTrackSelector.ParametersBuilder.
      • Add DefaultTrackSelector.Parameters.constrainAudioChannelCountToDeviceCapabilities which is enabled by default. When enabled, the DefaultTrackSelector will prefer audio tracks whose channel count does not exceed the device output capabilities. On handheld devices, the DefaultTrackSelector will prefer stereo/mono over multichannel audio formats, unless the multichannel format can be Spatialized (Android 12L+) or is a Dolby surround sound format. In addition, on devices that support audio spatialization, the DefaultTrackSelector will monitor for changes in the Spatializer properties and trigger a new track selection upon these. Devices with a television UI mode are excluded from these constraints and the format with the highest channel count will be preferred. To enable this feature, the DefaultTrackSelector instance must be constructed with a Context.
    • Video:
      • Rename DummySurface to PlaceholderSurface.
      • Add AV1 support to the MediaCodecVideoRenderer.getCodecMaxInputSize.
    • Audio:
      • Use LG AC3 audio decoder advertising non-standard MIME type.
      • Change the return type of AudioAttributes.getAudioAttributesV21() from android.media.AudioAttributes to a new AudioAttributesV21 wrapper class, to prevent slow ART verification on API < 21.
      • Query the platform (API 29+) or assume the audio encoding channel count for audio passthrough when the format audio channel count is unset, which occurs with HLS chunkless preparation (10204).
      • Configure AudioTrack with channel mask AudioFormat.CHANNEL_OUT_7POINT1POINT4 if the decoder outputs 12 channel PCM audio (#10322.
    • DRM
      • Ensure the DRM session is always correctly updated when seeking immediately after a format change (10274).
    • Text:
      • Change Player.getCurrentCues() to return CueGroup instead of List<Cue>.
      • SSA: Support OutlineColour style setting when BorderStyle == 3 (i.e. OutlineColour sets the background of the cue) (#8435).
      • CEA-708: Parse data into multiple service blocks and ignore blocks not associated with the currently selected service number.
      • Remove RawCcExtractor, which was only used to handle a Google-internal subtitle format.
    • Extractors:
      • Matroska: Parse DiscardPadding for Opus tracks.
      • MP4: Parse bitrates from esds boxes.
      • Ogg: Allow duplicate Opus ID and comment headers (#10038).
    • UI:
      • Fix delivery of events to OnClickListeners set on PlayerView, in the case that useController=false (#9605). Also fix delivery of events to OnLongClickListener for all view configurations.
      • Fix incorrectly treating a sequence of touch events that exit the bounds of PlayerView before ACTION_UP as a click (#9861).
      • Fix PlayerView accessibility issue where tapping might toggle playback rather than hiding the controls (#8627).
      • Rewrite TrackSelectionView and TrackSelectionDialogBuilder to work with the Player interface rather than ExoPlayer. This allows the views to be used with other Player implementations, and removes the dependency from the UI module to the ExoPlayer module. This is a breaking change.
      • Don't show forced text tracks in the PlayerView track selector, and keep a suitable forced text track selected if "None" is selected (#9432).
    • DASH:
      • Parse channel count from DTS AudioChannelConfiguration elements. This re-enables audio passthrough for DTS streams (#10159).
      • Disallow passing null to DashMediaSource.Factory.setCompositeSequenceableLoaderFactory. Instances of DefaultCompositeSequenceableLoaderFactory can be passed explicitly if required.
    • HLS:
      • Fallback to chunkful preparation if the playlist CODECS attribute does not contain the audio codec (#10065).
      • Disallow passing null to HlsMediaSource.Factory.setCompositeSequenceableLoaderFactory, HlsMediaSource.Factory.setPlaylistParserFactory, and HlsMediaSource.Factory.setPlaylistTrackerFactory. Instances of DefaultCompositeSequenceableLoaderFactory, DefaultHlsPlaylistParserFactory, or a reference to DefaultHlsPlaylistTracker.FACTORY can be passed explicitly if required.
    • Smooth Streaming:
      • Disallow passing null to SsMediaSource.Factory.setCompositeSequenceableLoaderFactory. Instances of DefaultCompositeSequenceableLoaderFactory can be passed explicitly if required.
    • RTSP:
      • Add RTP reader for MPEG4 (#35).
      • Add RTP reader for HEVC (#36).
      • Add RTP reader for AMR. Currently only mono-channel, non-interleaved AMR streams are supported. Compound AMR RTP payload is not supported. (#46)
      • Add RTP reader for VP8 (#47).
      • Add RTP reader for WAV (#56).
      • Fix RTSP basic authorization header. (#9544).
      • Stop checking mandatory SDP fields as ExoPlayer doesn't need them (#10049).
      • Throw checked exception when parsing RTSP timing (#10165).
      • Add RTP reader for VP9 (#47).
      • Add RTP reader for OPUS (#53).
    • Session:
      • Replace MediaSession.MediaItemFiller with MediaSession.Callback.onAddMediaItems to allow asynchronous resolution of requests.
      • Support setMediaItems(s) methods when MediaController connects to a legacy media session.
      • Remove MediaController.setMediaUri and MediaSession.Callback.onSetMediaUri. The same functionality can be achieved by using MediaController.setMediaItem and MediaSession.Callback.onAddMediaItems.
      • Forward legacy MediaController calls to play media to MediaSession.Callback.onAddMediaItems instead of onSetMediaUri.
      • Add MediaNotification.Provider and DefaultMediaNotificationProvider to provide customization of the notification.
      • Add BitmapLoader and SimpleBitmapLoader for downloading artwork images.
      • Add MediaSession.setCustomLayout() to provide backwards compatibility with the legacy session.
      • Add MediaSession.setSessionExtras() to provide feature parity with legacy session.
      • Rename MediaSession.MediaSessionCallback to MediaSession.Callback, MediaLibrarySession.MediaLibrarySessionCallback to MediaLibrarySession.Callback and MediaSession.Builder.setSessionCallback to setCallback.
      • Fix NPE in MediaControllerImplLegacy (#59).
      • Update session position info on timeline change(#51).
      • Fix NPE in MediaControllerImplBase after releasing controller (#74).
      • Fix IndexOutOfBoundsException when setting less media items than in the current playlist (#86).
    • Ad playback / IMA:
      • Decrease ad polling rate from every 100ms to every 200ms, to line up with Media Rating Council (MRC) recommendations.
    • FFmpeg extension:
      • Update CMake version to 3.21.0+ to avoid a CMake bug causing AndroidStudio's gradle sync to fail (#9933).
    • Remove deprecated symbols:
      • Remove Player.Listener.onTracksChanged(TrackGroupArray, TrackSelectionArray). Use Player.Listener.onTracksChanged(Tracks) instead.
      • Remove Player.getCurrentTrackGroups and Player.getCurrentTrackSelections. Use Player.getCurrentTracks instead. You can also continue to use ExoPlayer.getCurrentTrackGroups and ExoPlayer.getCurrentTrackSelections, although these methods remain deprecated.
      • Remove DownloadHelper DEFAULT_TRACK_SELECTOR_PARAMETERS_WITHOUT_VIEWPORT and DEFAULT_TRACK_SELECTOR_PARAMETERS constants. Use getDefaultTrackSelectorParameters(Context) instead when possible, and DEFAULT_TRACK_SELECTOR_PARAMETERS_WITHOUT_CONTEXT otherwise.
      • Remove constructor DefaultTrackSelector(ExoTrackSelection.Factory). Use DefaultTrackSelector(Context, ExoTrackSelection.Factory) instead.
    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha03(Mar 15, 2022)

    This release corresponds to the ExoPlayer 2.17.1 release.

    • Audio:
      • Fix error checking audio capabilities for Dolby Atmos (E-AC3-JOC) in HLS.
    • Extractors:
      • FMP4: Fix issue where emsg sample metadata could be output in the wrong order for streams containing both v0 and v1 emsg atoms (#9996).
    • Text:
      • Fix the interaction of SingleSampleMediaSource.Factory.setTrackId and MediaItem.SubtitleConfiguration.Builder.setId to prioritise the SubtitleConfiguration field and fall back to the Factory value if it's not set (#10016).
    • Ad playback:
      • Fix audio underruns between ad periods in live HLS SSAI streams.
    Source code(tar.gz)
    Source code(zip)
  • 1.0.0-alpha02(Mar 2, 2022)

    This release corresponds to the ExoPlayer 2.17.0 release.

    • Core Library:
      • Add protected method DefaultRenderersFactory.getCodecAdapterFactory() so that subclasses of DefaultRenderersFactory that override buildVideoRenderers() or buildAudioRenderers() can access the codec adapter factory and pass it to MediaCodecRenderer instances they create.
      • Propagate ICY header fields name and genre to MediaMetadata.station and MediaMetadata.genre respectively so that they reach the app via Player.Listener.onMediaMetadataChanged() (#9677).
      • Remove null keys from DefaultHttpDataSource#getResponseHeaders.
      • Sleep and retry when creating a MediaCodec instance fails. This works around an issue that occurs on some devices when switching a surface from a secure codec to another codec (#8696).
      • Add MediaCodecAdapter.getMetrics() to allow users obtain metrics data from MediaCodec (#9766).
      • Fix Maven dependency resolution (#8353).
      • Disable automatic speed adjustment for live streams that neither have low-latency features nor a user request setting the speed (#9329).
      • Rename DecoderCounters#inputBufferCount to queuedInputBufferCount.
      • Make SimpleExoPlayer.renderers private. Renderers can be accessed via ExoPlayer.getRenderer.
      • Updated some AnalyticsListener.EventFlags constant values to match values in Player.EventFlags.
      • Split AnalyticsCollector into an interface and default implementation to allow it to be stripped by R8 if an app doesn't need it.
    • Track selection:
      • Support preferred video role flags in track selection (#9402).
      • Update video track selection logic to take preferred MIME types and role flags into account when selecting multiple video tracks for adaptation (#9519).
      • Update video and audio track selection logic to only choose formats for adaptive selections that have the same level of decoder and hardware support (#9565).
      • Update video track selection logic to prefer more efficient codecs if multiple codecs are supported by primary, hardware-accelerated decoders (#4835).
      • Prefer audio content preferences (for example, the "default" audio track or a track matching the system locale language) over technical track selection constraints (for example, preferred MIME type, or maximum channel count).
      • Fix track selection issue where overriding one track group did not disable other track groups of the same type (#9675).
      • Fix track selection issue where a mixture of non-empty and empty track overrides is not applied correctly (#9649).
      • Prohibit duplicate TrackGroups in a TrackGroupArray. TrackGroups can always be made distinguishable by setting an id in the TrackGroup constructor. This fixes a crash when resuming playback after backgrounding the app with an active track override (#9718).
      • Amend logic in AdaptiveTrackSelection to allow a quality increase under sufficient network bandwidth even if playback is very close to the live edge (#9784).
    • Video:
      • Fix decoder fallback logic for Dolby Vision to use a compatible H264/H265 decoder if needed.
    • Audio:
      • Fix decoder fallback logic for Dolby Atmos (E-AC3-JOC) to use a compatible E-AC3 decoder if needed.
      • Change AudioCapabilities APIs to require passing explicitly AudioCapabilities.DEFAULT_AUDIO_CAPABILITIES instead of null.
      • Allow customization of the AudioTrack buffer size calculation by injecting an AudioTrackBufferSizeProvider to DefaultAudioSink (#8891).
      • Retry AudioTrack creation if the requested buffer size was > 1MB. (#9712).
    • Extractors:
      • WAV: Add support for RF64 streams (#9543).
      • Fix incorrect parsing of H.265 SPS NAL units (#9719).
      • Parse Vorbis Comments (including METADATA_BLOCK_PICTURE) in Ogg Opusand Ogg Vorbis files.
    • Text:
      • Add a MediaItem.SubtitleConfiguration.id field which is propagated to the Format.id field of the subtitle track created from the configuration (#9673).
      • Add basic support for WebVTT subtitles in Matroska containers (#9886).
      • Prevent Cea708Decoder from reading more than the declared size of a service block.
    • DRM:
      • Remove playbackLooper from DrmSessionManager.(pre)acquireSession. When a DrmSessionManager is used by an app in a custom MediaSource, the playbackLooper needs to be passed to DrmSessionManager.setPlayer instead.
    • Ad playback / IMA:
      • Add support for IMA Dynamic Ad Insertion (DAI) (#8213).
      • Add a method to AdPlaybackState to allow resetting an ad group so that it can be played again (#9615).
      • Enforce playback speed of 1.0 during ad playback (#9018).
      • Fix issue where an ad group that failed to load caused an immediate playback reset (#9929).
    • UI:
      • Fix the color of the numbers in StyledPlayerView rewind and fastforward buttons when using certain themes (#9765).
      • Correctly translate playback speed strings (#9811).
    • DASH:
      • Add parsed essential and supplemental properties to the Representation (#9579).
      • Support the forced-subtitle track role (#9727).
      • Stop interpreting the main track role as C.SELECTION_FLAG_DEFAULT.
      • Fix base URL exclusion logic for manifests that do not declare the DVB namespace (#9856).
      • Support relative MPD.Location URLs (#9939).
    • HLS:
      • Correctly populate Format.label for audio only HLS streams (#9608).
      • Use chunkless preparation by default to improve start up time. If your renditions contain muxed closed-caption tracks that are not declared in the master playlist, you should add them to the master playlist to be available for playback, or turn off chunkless preparation with HlsMediaSource.Factory.setAllowChunklessPreparation(false).
      • Support key-frame accurate seeking in HLS (#2882).
    • RTSP:
      • Provide a client API to override the SocketFactory used for any server connection (#9606).
      • Prefer DIGEST authentication method over BASIC if both are present (#9800).
      • Handle when RTSP track timing is not available (#9775).
      • Ignore invalid RTP-Info header values (#9619).
    • Transformer:
      • Increase required min API version to 21.
      • TransformationException is now used to describe errors that occur during a transformation.
      • Add TransformationRequest for specifying the transformation options.
      • Allow multiple listeners to be registered.
      • Fix Transformer being stuck when the codec output is partially read.
      • Fix potential NPE in Transformer.getProgress when releasing the muxer throws.
      • Add a demo app for applying transformations.
    • MediaSession extension:
      • By default, MediaSessionConnector now clears the playlist on stop. Apps that want the playlist to be retained can call setClearMediaItemsOnStop(false) on the connector.
    • Cast extension:
      • Fix bug that prevented CastPlayer from calling onIsPlayingChanged correctly (#9792).
      • Support audio metadata including artwork with DefaultMediaItemConverter (#9663).
    • FFmpeg extension:
      • Make build_ffmpeg.sh depend on LLVM's bin utils instead of GNU's (#9933).
    • Android 12 compatibility:
      • Upgrade the Cast extension to depend on com.google.android.gms:play-services-cast-framework:20.1.0. Earlier versions of play-services-cast-framework are not compatible with apps targeting Android 12, and will crash with an IllegalArgumentException when creating PendingIntents (#9528).
    • Remove deprecated symbols:
      • Remove Player.EventListener. Use Player.Listener instead.
      • Remove MediaSourceFactory#setDrmSessionManager, MediaSourceFactory#setDrmHttpDataSourceFactory, and MediaSourceFactory#setDrmUserAgent. Use MediaSourceFactory#setDrmSessionManagerProvider instead.
      • Remove MediaSourceFactory#setStreamKeys. Use MediaItem.Builder#setStreamKeys instead.
      • Remove MediaSourceFactory#createMediaSource(Uri). Use MediaSourceFactory#createMediaSource(MediaItem) instead.
      • Remove setTag from DashMediaSource, HlsMediaSource and SsMediaSource. Use MediaItem.Builder#setTag instead.
      • Remove DashMediaSource#setLivePresentationDelayMs(long, boolean). Use MediaItem.Builder#setLiveConfiguration andMediaItem.LiveConfiguration.Builder#setTargetOffsetMs to override the manifest, or DashMediaSource#setFallbackTargetLiveOffsetMs to provide a fallback value.
      • Remove (Simple)ExoPlayer.setThrowsWhenUsingWrongThread. Opting out of the thread enforcement is no longer possible.
      • Remove ActionFile and ActionFileUpgradeUtil. Use ExoPlayer 2.16.1 or before to use ActionFileUpgradeUtil to merge legacy action files into DefaultDownloadIndex.
      • Remove ProgressiveMediaSource#setExtractorsFactory. Use ProgressiveMediaSource.Factory(DataSource.Factory, ExtractorsFactory) constructor instead.
      • Remove ProgressiveMediaSource.Factory#setTag and ProgressiveMediaSource.Factory#setCustomCacheKey. Use MediaItem.Builder#setTag and MediaItem.Builder#setCustomCacheKey instead.
      • Remove DefaultRenderersFactory(Context, @ExtensionRendererMode int) and DefaultRenderersFactory(Context, @ExtensionRendererMode int, long) constructors. Use the DefaultRenderersFactory(Context) constructor, DefaultRenderersFactory#setExtensionRendererMode, and DefaultRenderersFactory#setAllowedVideoJoiningTimeMs instead.
      • Remove all public CronetDataSource constructors. Use CronetDataSource.Factory instead.
    • Change the following IntDefs to @Target(TYPE_USE) only. This may break the compilation of usages in Kotlin, which can be fixed by moving the annotation to annotate the type (Int).
      • @AacAudioObjectType
      • @Ac3Util.SyncFrameInfo.StreamType
      • @AdLoadException.Type
      • @AdtsExtractor.Flags
      • @AmrExtractor.Flags
      • @AspectRatioFrameLayout.ResizeMode
      • @AudioFocusManager.PlayerCommand
      • @AudioSink.SinkFormatSupport
      • @BinarySearchSeeker.TimestampSearchResult.Type
      • @BufferReplacementMode
      • @C.BufferFlags
      • @C.ColorRange
      • @C.ColorSpace
      • @C.ColorTransfer
      • @C.CryptoMode
      • @C.Encoding
      • @C.PcmEncoding
      • @C.Projection
      • @C.SelectionReason
      • @C.StereoMode
      • @C.VideoOutputMode
      • @CacheDataSource.Flags
      • @CaptionStyleCompat.EdgeType
      • @DataSpec.Flags
      • @DataSpec.HttpMethods
      • @DecoderDiscardReasons
      • @DecoderReuseResult
      • @DefaultAudioSink.OutputMode
      • @DefaultDrmSessionManager.Mode
      • @DefaultTrackSelector.SelectionEligibility
      • @DefaultTsPayloadReaderFactory.Flags
      • @EGLSurfaceTexture.SecureMode
      • @EbmlProcessor.ElementType
      • @ExoMediaDrm.KeyRequest.RequestType
      • @ExtensionRendererMode
      • @Extractor.ReadResult
      • @FileTypes.Type
      • @FlacExtractor.Flags (in com.google.android.exoplayer2.ext.flac package)
      • @FlacExtractor.Flags (in com.google.android.exoplayer2.extractor.flac package)
      • @FragmentedMp4Extractor.Flags
      • @HlsMediaPlaylist.PlaylistType
      • @HttpDataSourceException.Type
      • @IllegalClippingException.Reason
      • @IllegalMergeException.Reason
      • @LoadErrorHandlingPolicy.FallbackType
      • @MatroskaExtractor.Flags
      • @Mp3Extractor.Flags
      • @Mp4Extractor.Flags
      • @NotificationUtil.Importance
      • @PlaybackException.FieldNumber
      • @PlayerNotificationManager.Priority
      • @PlayerNotificationManager.Visibility
      • @PlayerView.ShowBuffering
      • @Renderer.State
      • @RendererCapabilities.AdaptiveSupport
      • @RendererCapabilities.Capabilities
      • @RendererCapabilities.DecoderSupport
      • @RendererCapabilities.FormatSupport
      • @RendererCapabilities.HardwareAccelerationSupport
      • @RendererCapabilities.TunnelingSupport
      • @SampleStream.ReadDataResult
      • @SampleStream.ReadFlags
      • @StyledPlayerView.ShowBuffering
      • @SubtitleView.ViewType
      • @TextAnnotation.Position
      • @TextEmphasisSpan.MarkFill
      • @TextEmphasisSpan.MarkShape
      • @Track.Transformation
      • @TrackOutput.SampleDataPart
      • @Transformer.ProgressState
      • @TsExtractor.Mode
      • @TsPayloadReader.Flags
      • @WebvttCssStyle.FontSizeUnit
    Source code(tar.gz)
    Source code(zip)
Owner
Android Jetpack
Extension libraries for Android
Android Jetpack
ExoPlayer - an application level media player for Android

ExoPlayer is an application level media player for Android. It provides an alternative to Android’s MediaPlayer API for playing audio and video both locally and over the Internet. ExoPlayer supports features not currently supported by Android’s MediaPlayer API, including DASH and SmoothStreaming adaptive playbacks.

Halil Özel 6 Oct 31, 2022
Yet Another Video Player (or YAVP) is a Video Player for Android that is based on Googles ExoPlayer.

Yet Another Video Player Yet Another Video Player (or YAVP) is a Video Player for Android that is based on Googles ExoPlayer. Who Is YAVP For? First o

null 62 Dec 29, 2022
Compose-video-player - Video player for Android Compose powered by ExoPlayer

Compose Video Player Video player for Android Compose powered by ExoPlayer. Addi

Juan Pablo Herrera 22 Dec 13, 2022
Fermata Media Player is a free, open source audio and video player with a simple and intuitive interface.

Fermata Media Player About Fermata Media Player is a free, open source audio and video player with a simple and intuitive interface. It is focused on

Andrey 227 Jan 6, 2023
Sandbox project for practice: Media Streaming with Exoplayer (via Android Development tutorial)

Media streaming with ExoPlayer The code in this repository accompanies the Media streaming with ExoPlayer codelab. If you are looking to get started w

Jeannille Hiciano 1 Nov 29, 2021
Simple and lightweight, yet polished and powerful Android video player based on ExoPlayer

Just (Video) Player Android video player based on ExoPlayer It uses ExoPlayer's extension-ffmpeg with all its audio formats enabled (it can handle eve

Marcel Dopita 677 Dec 28, 2022
Android SRT player powered by Exoplayer and srtdroid

SrtPlayer An Android SRT test player powered by ExoPayer. Most of this code comes from YoussefHenna reply in the SRT support ExoPayer issue. It demons

Thibault Beyou 4 Sep 20, 2022
AutoPlayer - A player based on ExoPlayer for play video automatically in RecyclerView, when an item is visible.

A player based on ExoPlayer for play video automatically in RecyclerView, when an item is visible.

Kishan Singh 6 Aug 14, 2022
Odeon Music Player is a lightweight music player for Android.

Odeon ?? Odeon Music Player is a lightweight music player for Android. Get it on Google Play. We value your privacy, your battery life and your device

Thibault Seisel 63 Dec 20, 2022
Music Player - This is a basic music player built with Android Studio and Kotlin

Music Player Made by Jenny Cárdenas This is a basic music player built with Android Studio and Kotlin, it shows two views in the UI, the user can play

Jenny C 3 Oct 28, 2021
Android podcast app made with Jetpack Compose and ExoPlayer.

Podcast App Android podcast app made with Jetpack Compose and ExoPlayer. Podcast information provided by Listen Notes API. Features Jetpack Compose UI

Fabian 302 Jan 2, 2023
ZExoRecyclerPlayer is an Android library that allows developers to easily create RecyclerView with Exoplayer .

ZExoRecyclerPlayer Description ZExoRecyclerPlayer is an Android library that allows developers to easily create RecyclerView with Exoplayer . Please f

mohammed alzoubi 4 Dec 12, 2022
This is a basic demo application for exoplayer library.

ExoPlayer Demo Application This is a basic demo application for exoplayer library. It can stream these types of file: MP3 MP4 DASH HLS You can minimiz

Soumik 1 Apr 8, 2022
A Spotify Clone that plays music and has similar UI to actual Spotify Mobile App. Made with Exoplayer and love ❤️

Spotify Clone A Spotify Clone App that can play music, and has a good looking UI that is very similar to actual Spotify Mobile App on Play Store I use

Utku Oruç 4 Oct 12, 2022
Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.

ijkplayer Platform Build Status Android iOS Video player based on ffplay Download Android: Gradle # required allprojects { repositories {

bilibili 31k Jan 3, 2023
Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.

ijkplayer Platform Build Status Android iOS Video player based on ffplay Download Android: Gradle # required allprojects { repositories {

bilibili 29.8k Dec 22, 2021
Radio Player - A Flutter plugin to play streaming audio content with background support and lock screen controls.

A Flutter plugin to play streaming audio content with background support and lock screen controls. Installation To use this package, add

Ayotunde abdulsalam 1 Mar 14, 2022
SocyMusic is an open-source Android music player written in Java with the aim of creating an easy-to-use app for exchanging and listening to top-quality music. Help us create it!

SocyMusic SocyMusic is an open-source Android music player written entirely in Java. It's objectives are to provide top-quality music to everyone for

Benji 23 Dec 26, 2022
A better Android VideoView with more Media Controller customization. 一个更好用的Android VideoView

Android UniversalVideoView 中文版说明请点击这里 UniversalVideoView is a Android widget helps playing video easier, which is similar with the Android system nati

Linsea 978 Nov 30, 2022