exoplayer Questions

2

I'm making an app where I play .mp3 files from the URL. I'm using the latest version of ExoPlayer 2.11.4. What I need to do is get the total duration of the audio from the url so I can use it in m...
Casual asked 29/4, 2020 at 16:47

5

Solved

In Exoplayer version 2.14.1 Playerd.EventListener() is deprecated. when I read docs its says use instead of Player.Listener, but I have no idea how to use that method like below code. simpleExoPlay...
Acid asked 25/6, 2021 at 11:38

9

Solved

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 ?
Cherida asked 10/12, 2014 at 15:13

11

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) me...
Malisamalison asked 16/2, 2017 at 1:47

7

Solved

I have a dog.mp4 video file in res/raw folder, which I want to play with ExoPlayer. I'm trying to figure out how to get video Uri for this line of code from ExoPlayer developers guide (https://goog...
Cressida asked 27/10, 2016 at 4:15

5

Solved

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 t...
Kiely asked 7/1, 2017 at 3:16

1

I am using exoplayer2 via androidx.media3:media3-exoplayer:1.0.0-beta03. I have a androidx.media3.ui.PlayerView in my XML layout, and then in my code I am creating an Exoplayer with ExoPlayer.Build...
Fugazy asked 20/2, 2023 at 21:53

0

I want to integrate Audio ads into my podcast app with the interval of 3 podcasts. After every 3 podcasts, I need one specific ad to play which could be skippable or non-skippable. For integration,...
Swamp asked 17/2, 2023 at 12:17

3

Solved

I'm using ExoPlayer to play a list of videos as playlist: MediaSource[] mediaSources = new MediaSource[mList.size()]; for (int i = 0; i < mList.size(); i++) { mediaSources[i] = buildMediaSou...
Ethno asked 16/8, 2017 at 8:53

10

Solved

I use ExoPlayer to play audio on my Android App with SimpleExoPlayerView as the controller. The default controller have five button, Play/Pause, Forward, Backward, Next, and Previous. My app only u...
Quoits asked 27/4, 2017 at 7:33

3

Solved

I don't know why, but sometimes Exoplayer buffers my video very slowly. My server is responding properly and the internet is also fast but sometimes Exoplayer buffers my video slowly for less than ...
Maiga asked 9/5, 2022 at 9:34

3

Solved

I am following this tutorial to implement the Exoplayer. But the ExtractorMediaSource class is deprecated. I need to play video from a remote url. What is the alternative to use in this situation? ...
Headboard asked 19/6, 2019 at 7:11

4

Using ExoPlayer i'm trying to play two audio tracks simultaneously. My idea was to create two MediaSource, and to "combine" between them using MergingMediaSource. This is what I have done: Uri ur...
Vola asked 16/12, 2016 at 16:12

5

Solved

I'm using the new features from ExoPlayer 2.x to play a list of audio files like this: List<MediaSource> playlist = new ArrayList<>(); ... ConcatenatingMediaSource concatenatedSource...
Overland asked 27/10, 2016 at 12:37

3

I use Exoplayer and bind with PlayerNotificationManager to handle player action on the notification. It works fabulous but I want to get a listener or receiver when stop button pressed from notific...
Quant asked 7/10, 2019 at 5:31

5

I am developing a music app but i am getting error can anybody tell me how to fix this PlayerNotificationManager.createWithNotificationChannel? .createWithNotificationChannel is not recognizable c...
Uhlan asked 23/9, 2021 at 20:27

7

Solved

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 overfl...
Postbox asked 14/7, 2015 at 22:0

2

Solved

I have application with exoplayer on Android. I have create youtube's double-tap gesture to jump 10 seconds forward or backward with animation! How create this semicircle with ripple effect on doub...
Mariejeanne asked 6/11, 2018 at 13:55

4

I'm using exoPlayer to stream video to my app and so far works fine. What I would like to do now is to add some extra functionality such as a button on the bottom right edge to act as a "full scree...
Helenahelene asked 2/5, 2016 at 19:29

5

Solved

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....
Contract asked 26/2, 2018 at 12:1

8

Solved

I have added ExoPlayer in one of the activity to play videos and it is working properly. But when the video is playing and user presses back button, the video still continue to play in background. ...
Inarch asked 29/1, 2018 at 17:8

5

Solved

I have simple player activity: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools...
Inherit asked 4/4, 2018 at 18:9

1

I am using ExoPlayer for playing video in loop, but before source video is started each loop I need to reset some states of my Layout. I know ExoPlayer is calling onPlayerStateChanged with ExoPlaye...
Assassinate asked 22/5, 2017 at 9:20

11

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 ...
Built asked 24/2, 2015 at 15:56

1

Solved

I'm trying to implement the Android Media3 MediaSessionService and MediaController but for some reason the playback doesn't start. What am I doing wrong? I think I did everything exactly as describ...

© 2022 - 2025 — McMap. All rights reserved.