question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

androidx.media2 usage with ExoPlayer

See original GitHub issue

Searched documentation and issues

I searched in issues and in code directly

Question

I’m trying to use some library (that is using androidx.media2) within existing app based on ExoPlayer and it’s integration with androidx.legacy:legacy-support-v4.

In media 2 documentation there is a statement Media2 is the next generation of following Media APIs: MediaSession, MediaController, MediaBrowser, MediaBrowserService, VideoView, and MediaControlView.. Is there any particular reason why ExoPlayer isn’t depending on it right now? Is there any plan to migrate APIs. I imagine that such change might require library users to migrate too, hence the question.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
andrewlewiscommented, Jan 22, 2020

We’ll update this issue when the media2 extension is published.

0reactions
andrewlewiscommented, Sep 23, 2020

Thanks. Just for reference, 02f8cdf1d9c277a38377bacd5f9e2b3cf7ca8041 was the first commit related to this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The media2 extension for ExoPlayer | by Jaewan Kim - Medium
SessionPlayerConnector is an implementation of the AndroidX's media2 SessionPlayer interface, which is the base interface for all media players ...
Read more >
Media2 - Android Developers
Media2 is the next generation of following Media APIs: MediaSession , MediaController , MediaBrowser , MediaBrowserService , VideoView , and MediaControlView .
Read more >
How to use the new AndroidX Media2? - Stack Overflow
I am using Media App Architecture as a guide for building a music player app. But it uses the classes from support media-compat...
Read more >
SessionPlayerConnector (ExoPlayer library)
An implementation of SessionPlayer that wraps a given ExoPlayer Player instance. Internally this implementation posts operations to and receives callbacks ...
Read more >
Class androidx.media2.exoplayer.ExoPlayerMediaPlayer2Impl
When seeking to the given time position, there is no guarantee that the media item has a frame located at the position. When...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found