Questions tagged [exoplayer]

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. Including DASH and SmoothStreaming adaptive playbacks.

An application level media player for Android.

From its website:

ExoPlayer supports features not currently provided by MediaPlayer, including Dynamic adaptive streaming over HTTP (DASH), SmoothStreaming, and persistent caching. ExoPlayer can be extended to handle additional media formats, and because you include it as part of your app code, you can update it along with your app.

Documentation

The developer guide provides a wealth of information to help you get started.
The class reference documents the ExoPlayer library classes.
The release notes document the major changes in each release. The GitHub repository.

External links

Website

1959 questions
67
votes
11 answers

Using cache in ExoPlayer

I'm looking for any example of implementing cache in ExoPlayer. ExoPlayer has in its library different classes concerning cache and Google explain in this video that we can implement it with the CacheDataSource class, but Google doesn't provide any…
ilansas
  • 5,899
  • 6
  • 21
  • 27
53
votes
11 answers

How to implement oncompletionlistener to detect end of media file in Exoplayer

I am trying to play videos in the form of a playlist one after the other. I am using android Exoplayer to play my files, but there are no listeners in mediaplayer to listen to an end of the media file. Is there a way to listen to the end of media…
user2949215
  • 663
  • 1
  • 7
  • 11
52
votes
1 answer

ExoPlayer AudioTrack Stuttering

I have my own implementation of TrackRenderer for an mp3 decoder, that I integrated. When a lollipop device goes to standby and comes back, it's not always repeatable but the audio starts to stutter until I force stop the application. In the…
Daniel Nuriel
  • 521
  • 3
  • 3
50
votes
11 answers

How to hide control buttons in ExoPlayer2

How to hide all controllers in ExoPlayer2 (start button, pause, and so on) that they did not exist, and the screen was always full. I looked, there is simpleExoPlayerView.setUseController(true) method; But it deactivate the player ... public void…
Nurlan Kanimetov
  • 521
  • 1
  • 4
  • 4
49
votes
5 answers

How to play Youtube video in ExoPlayer in Android?

I am trying to play youtube video in exoplayer but here is some confusion I don't know what is DASH url, I have only real youtube url like "https://www.youtube.com/watch?v=v1uyQZNg2vE" , I have no idea how to generate dash url form real url. Dash…
Amit Prajapati
  • 13,525
  • 8
  • 62
  • 84
49
votes
16 answers

Android ExoPlayer onProgressChanged

How can I monitor progress changes on ExoPlayer? I tried to implement a hidden MediaController and overriding setOnSeekBarChangeListener methods, but for now without success. I'm wondering if there is another way to listen to the ExoPlayer progress.
ascallonisi
  • 871
  • 1
  • 11
  • 20
48
votes
9 answers

Mute audio on ExoPlayer

I'm using Google new MediaPlayer named ExoPlayer and cannot find a way to mute the sound Is there an easy way to mute audio track on Google ExoPlayer ? Or changing volume ?
Hugo Gresse
  • 17,195
  • 9
  • 77
  • 119
44
votes
3 answers

How to pause ExoPlayer 2 playback and resume (PlayerControl was removed)

In ExoPlayer < 2.x there was a class PlayerControl with pause() and resume() functions but it was removed. I can't find a way to do this on ExoPlayer 2. How can I pause and resume a playback?
Daniel Gomez Rico
  • 15,026
  • 20
  • 92
  • 162
43
votes
5 answers

How can I scale video in ExoPlayer-V2 - Play Video In Full Screen

I am playing video from URL on Exoplayer, it stretching the video on resizing/on using resize_mode as I have mentioned in layout file using this I am not able to maintain the aspect ratio of video. I want to do scale type CENTER_CROP like we do in…
Sagar
  • 5,273
  • 4
  • 37
  • 50
43
votes
8 answers

How to use android exoplayer

I am looking to implement Google's ExoPlayer in my app. Their documentation seems pretty vague to me, and all I am looking for is to play a video from an URL, no complicated custom settings or anything like that. Haven't found any tutorials on how…
kimv
  • 1,569
  • 4
  • 16
  • 26
42
votes
11 answers

Detect pause/resume in ExoPlayer

I searched two days for this question in github but i can't find true answer . I want example for detecting pause / resume in ExoPlayer > 2.x . Any one can give me an example ? I checked onPlayerStateChanged and problem not solved…
MrNadimi
  • 1,424
  • 4
  • 18
  • 33
35
votes
2 answers

ExoPlayer and start / pause / seekTo commands

I am trying to use ExoPlayer, as opposed to MediaPlayer and I can't seem to figure it out... MediaPlayer has .start() / .pause() commands... and I can just seekTo(1287) and it automatically starts playing... How do I do this with ExoPlayer? I have…
DeNitE Appz
  • 1,003
  • 2
  • 12
  • 18
33
votes
3 answers

Exoplayer infinite buffer state

I'm trying to use the exoplayer for my React Native app using the React Native video package. I have an app with both a HLS stream and a mp4 videos, these videos and are stored on my server (https). When browsing through videos the player gets stuck…
Nieck
  • 1,626
  • 3
  • 21
  • 41
33
votes
1 answer

YouTube video playback with ExoPlayer

I am interested in using the ExoPlayer for YouTube video playback. I see from the ExoPlayer samples that they play YouTube videos via DASH URLs. I'm using the Android YouTube API to search for videos, and don't see a means for obtaining a DASH URL…
Lo-Tan
  • 2,725
  • 1
  • 26
  • 27
30
votes
4 answers

Android ExoPlayer : Does it solve gapless / seamless playback issue that is broken for the Android Media Player

Has anyone tried using ExoPlayer to achieve this? I tried looking online with no success. When I say gapless playback, I am referring to the problem of using the media player to play local videos back to back. After the first video is done…
1
2 3
99 100