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.

634 questions
0
votes
1 answer

Exoplayer m3u8 and mp3 run with a single code error

if i use the first one from the following codes, the 1.m3u8 type songs are running. if i use the second one, mp3 and the other songs are running. Is there one code series that can run these formats in one? Maybe it is a simple coding but i couldn…
0
votes
1 answer

ExoPlayer not showing assets video

Hey guys I've been trying to show video in exoPlayer since 2 days but getting no progress, Please guide what I've been doing wrong. Thank in advance. This is my code call from on create function. private void initializePlayer() { …
Ahsan Saeed
  • 560
  • 7
  • 18
0
votes
1 answer

Exoplayer 2, How to detect subtitles change?

I am developing video player on Android with ExoPlayer 2. I am looking for the way to detect subtitles change in SubtitleView(upper part of screen) to auto-scroll subtitles in TextView(lower part of screen). It looks there is no listener to do so. I…
Yusei
  • 27
  • 1
  • 5
0
votes
0 answers

Exo player 2 : Last word/syllable of mp3 files are cut on certain devices

Issue description I'm trying to implement Exoplayer to play background music in loop and speech sounds at the same time that are played on click events. I can't add silence at the end of the file because I play them in raw to make a sentence like :…
Abel Hamilton
  • 63
  • 1
  • 5
0
votes
1 answer

How to auto-play the ConcatenatingMediaSources in Exoplayer?

I need to auto-play the ConcatenatingMediaSources one by one in Exo-player. My ConcatenatingMediaSource code: MediaSource movieMediaSource = MyExoPlayer.getMediaSourceFromUrl(StreamPlayerActivity.this, mLiveURL); long oneMinute = 1000 * 1000 * 60…
Ranjith Kumar
  • 13,385
  • 9
  • 95
  • 126
0
votes
1 answer

ExoMedia / Exoplayer MP3 metadata extractor

Hiya I'm trying to make a simple radio application with the following stream: http://lb.topradio.be/topradio.mp3. Currently I'm using ExoMedia for convenience as my default audioplayer. It has this setMetadataListener method which never gets…
tim
  • 5,287
  • 6
  • 34
  • 67
0
votes
1 answer

On screen rotate only video should be displayed

I have used exoPlayer Library what i am trying to do is i pass data from recyclerview to next activity that works fine video is been played and title as well as desc is been fetched but when i rotate the phone i only want simpleexovideoview to…
0
votes
1 answer

how to implement Play & Pause controller ExoPlayer 2

I want to use ExoPlayer 2 in my app to play video in recyclerview when I click on videoview or SimpleExoPlayerView video should play and if I clcik again it should be pause Now the problem is I'm unable to find Player.Controler class in ExoPlayer2…
0
votes
1 answer

Exoplayer2 DRM exception shouldWaitForKeys

Hi i'm switching my working DRM implementation from Exoplayer 1.x to Exoplayer 2.x but i have some exceptions and i can not playback the DRM licensed video. My drm session manager: protected DrmSessionManager
Billyjoker
  • 701
  • 1
  • 10
  • 27
0
votes
2 answers

How to embed ExoPlayer in android library?

I want to embed ExoPlayer to android library, how can I do it, is any ideas?
0
votes
0 answers

Is it possible to use ExoPlayer only for downloading an HLS stream but my own code for displaying it?

I need to write some code to download an m3u8 stream but I need to be able to manipulate the stream after it has been downloaded and I need to be able to display it with my own code. Is it possible to do that with ExoPlayer? Essentially I just want…
casolorz
  • 6,790
  • 15
  • 74
  • 161
0
votes
0 answers

References to ExoPlayerImplInternal causes too much use of RAM

I have two instances of ExoPlayer in each Fragment in a ViewPager. After swiping a lot of times, the app reaches ~120MB of RAM, and starts running really slow. I never get an OutOfMemoryException though. Taking a look at the hprof file, I see that…
RominaV
  • 3,085
  • 1
  • 26
  • 52
0
votes
1 answer

Android : How to use exoplayer 2.x.x to stream a radio link

I want to stream for an online radio with exoplayer version rc2.x.x though an android service. I have been trying to learn from all tutorials online I could but they are all prior to the 2.x.x version and a lot of them are video streaming related as…
-1
votes
1 answer

SimpleExoPlayer in user notification & Lock Screen

I have the player working, but it is not in the notification bar. From what I have been told I need to create a service that added the media player to the user notification section. package com.exaple.mediatest import…
RussellHarrower
  • 5,971
  • 17
  • 81
  • 163
-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,118
  • 1
  • 7
  • 19
1 2 3
42
43