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
26
votes
11 answers

Fullscreen the Exoplayer

I try to show the show video (.mp4) with exoplayer in RecyclerView and ViewPager. I show the video controller with custom layout. so far so good. Now try to fullscreen the video like other video player how use before but can't find a good way in the…
Ashkan
  • 1,357
  • 4
  • 16
  • 37
26
votes
5 answers

Reproducing encrypted video using ExoPlayer

I'm using ExoPlayer, in Android, and I'm trying to reproduce an encrypted video stored locally. The modularity of ExoPlayer allows to create custom components that can be injected in the ExoPlayer, and this seems the case. Indeed, after some…
GVillani82
  • 17,196
  • 30
  • 105
  • 172
25
votes
5 answers

ExoPlayer 2 Playlist Listener

I'm using the new features from ExoPlayer 2.x to play a list of audio files like this: List playlist = new ArrayList<>(); ... ConcatenatingMediaSource concatenatedSource = new ConcatenatingMediaSource( playlist.toArray(new…
timoschloesser
  • 2,790
  • 4
  • 25
  • 33
25
votes
3 answers

How to restart video on Exoplayer after ExoPlayer.STATE_ENDED

I'm using Exoplayer with a base of the DemoPlayer. I want to restart/replay the video from beginning on some user action after that ExoPlayer.STATE_ENDED is dispatched. I've tried to use seekTo(0) and mPlayer.setPlayWhenReady(true); after but it…
Hugo Gresse
  • 17,195
  • 9
  • 77
  • 119
24
votes
3 answers

ExoPlayer: Place controller under the video without overlapping the video

I have a PlayerView that takes up the top half of the Activity in portrait orientation with the bottom half of the screen showing some text. I need to have the controller under the video without overlapping the video content (it will always be…
Sasha Shpota
  • 9,436
  • 14
  • 75
  • 148
23
votes
3 answers

Custom UI on exoplayer sample

** I really need help if you don't know anything don't give me a negative point :| if something bother you comment** I want to write custom UI for my player in Exoplayer(change button of pause play or add new buttons like player speed next and etc)…
Siavash Abdoli
  • 1,852
  • 3
  • 22
  • 38
23
votes
6 answers

Changing playback speed in Exoplayer

I'm looking to implement an audio player with variable speed playback (1.0x, 1.25x, 1.5x) like typical audiobook players currently on the market do. I would like to use Google's Exoplayer library as my audioplayer library however they don't appear…
two1stnamz
  • 608
  • 1
  • 6
  • 18
22
votes
4 answers

ExoPlayer resume on same position on rotate screen

I am using ExoPlayer in my activity,What i want is to smoothly play video in portrait and landscape mode.For this purpose what I am doing is in onpause I save the currentPlayerPosition and seek player to that position in onresume but while rotating…
Ali Akram
  • 4,803
  • 3
  • 29
  • 38
21
votes
8 answers

Exoplayer and ProgressBar

I'm new to Android Studio and ExoPlayer I started the player to play videos but I don't know to detect if the player is buffering and show a progress bar to notify the user, any help please?
Omar Alesharie
  • 251
  • 1
  • 2
  • 6
21
votes
5 answers

ExoPlayer2 - How can I make a HTTP 301 redirect work?

I started using ExoPlayer to stream some audio. All was well until I came across an URL that has a "301 Moved Permanently" redirect. ExoPlayer2 does not handle that by default. I've already seen this thread:…
20
votes
1 answer

Detect if HDMI service is UP on android TV

We have a problem with HDMI service. Our Android TV app are set as default on STB. When you launch STB it doesnt show you launcher, it shows you out App immediately with playing HLS video stream. For playing video we are using Exo Player version…
bene25
  • 580
  • 6
  • 18
20
votes
7 answers

Exoplayer playing m3u8 files Android

After trying multiple ways of playing m3u8 files using videoview and mediaplayer I decided to give up. Everytime i play the m3u8 file I only hear the voice.(please dont write urls from stack overflow answering my question. I' ve red them all ) Been…
Payam30
  • 689
  • 1
  • 5
  • 20
19
votes
3 answers

How to have similar mechanism of center-crop on ExoPlayer's PlayerView , but not on the center?

Background We record a video of the user's face, and usually the face is located at the upper half of the video. Later we wish to view the video, but the aspect ratio of the PlayerView might be different than the one of the video, so there needs to…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
19
votes
9 answers

How to play video full screen in landscape using exoplayer

I am using exoplayer to play video from url in my android app. In portrait everything work as expected (using viewpager, fragments and tabs inside activity). My goal is to play the video in full screen when the user is in landscape. It means only…
19
votes
8 answers

ExoPlayer - play local mp4 file in SD card

I am using the Exoplayer Demo app and want to preload a MP4 video from SD card. I have tried out the implementation from this post, but it does not work. There is no such class called DemoUtil.java in my exoplayer Demo. Instead used: public static…
Meera Anand
  • 348
  • 1
  • 2
  • 8