Questions tagged [exoplayer2.x]

ExoPlayer 2.x is a major iteration of the ExoPlayer (an open source, application level media player built on top of Android’s low level media APIs) library with significant API and architectural improvements.

ExoPlayer 2.x includes significant architectural improvements of ExoPlayer and new features.

Key architectural changes:

  • Late binding between rendering and media source components. Allows the same rendering components to be re-used from one playback to another. Enables features such as gapless playback through playlists and DASH multi-period support.

  • Improved track selection design. More details can be found here.

  • LoadControl now used to control buffering and loading across all playback types.

  • Media source components given additional structure. A new MediaSource class has been introduced. MediaSources expose Timelines that describe the media they expose, and can consist of multiple MediaPeriods. This enables features such as seeking in live playbacks and DASH multi-period support.

  • Responsibility for loading the initial DASH/SmoothStreaming/HLS manifest is promoted to the corresponding MediaSource components and is no longer the application's responsibility.

  • Higher level abstractions such as SimpleExoPlayer have been added to the library. These make the library easier to use for common use cases. The demo app is halved in size as a result, whilst at the same time gaining more functionality. Read more here.

  • Enhanced library support for implementing audio extensions.

  • Format and MediaFormat are replaced by a single Format class.

Key new features:

  • Playlist support. Includes support for gapless playback between playlist items and consistent application of LoadControl and TrackSelector policies when transitioning between items.

  • Seeking in live playbacks for DASH and SmoothStreaming.

  • DASH multi-period support.

  • MediaSource composition allows MediaSources to be concatenated into a playlist, merged and looped.

  • Looping support.

  • Ability to query information about all tracks in a piece of media (including those not supported by the device).

  • Improved player controls.

  • Support for PSSH in fMP4 moof atoms.

  • Support for Opus in Ogg.

  • CacheDataSource support for standalone media file playbacks (mp3, mp4 etc).

  • FFMPEG extension (for audio only).

In case of building a new media app, recommend building it on ExoPlayer 2.X. For those who are using ExoPlayer 1.X, you can include both 1.X and 2.X in your app (due to a different package name), allowing you to test and migrate your users with minimal impact.

800 questions
-1
votes
2 answers

Composable function not being executed after mutable value change

So I got this line of code: fun LiveTrainingScreen(viewModel: LiveTrainingViewModel = viewModel()) { Column(modifier = Modifier.padding(PaddingStatic.Small).zIndex(2f)) { //Large Video Display //here var videoLink = remember {…
-1
votes
1 answer

Android ExoPLayer AudioTrack Underrun Occurred

I am playing with Exoplayer. I have an exoplayer in RecyclerView, and only show one exoplayer at adapter position 0. The exoplayer plays hls files which are on the server side. My issue is that when exoplayer playing first time, it sometimes pauses…
MinYoung Lee
  • 51
  • 1
  • 9
-1
votes
2 answers

How to control youtube video quality in exoplayer android?

I am working on Android ExoPlayer as mentioned in this Article- https://betterprogramming.pub/android-exoplayer-play-videos-in-your-app-like-youtube-486853913397 But I am unable to control the video quality (360p, 480p, etc). How to do that? I need…
Bhaskar Jyoti Dutta
  • 1,740
  • 2
  • 15
  • 30
-1
votes
2 answers

Android Exo Player continue the Playback where the user left off

How to add Android Exo Player continue the Playback where the user left off? Need Code Support Sorry for my bad Language
-2
votes
1 answer

Android Exo Player Play .m3u8 from Android Resources

I am unable to play .m3u8 file from a web server like http://example.com/file.m3u8 I have added the play list file in android resource but it is not playing. How to play the same file from local resources. Thanks,
For Guru
  • 1,197
  • 13
  • 23
1 2 3
53
54