4,773 questions
0
votes
0
answers
36
views
Blur overlay that works on top of PlayerView using android java or kotlin
So i have these 2 PlayerView one top one bottom and they are mirrored one on top have full scale then the bottom one is compressed to fill the bottom part. So i want a blurr overlay that will be on ...
0
votes
1
answer
68
views
onBindViewHolder in Android recylerview is not called when update is triggered via setOnCompletionListener
I have been having a problem since quite some time and I have tried many things to understand and get rid of it without any success. Actually I am developing a music app with different songs that can ...
1
vote
1
answer
123
views
Playing media in the background and stop it when needed
I want to create an activity that includes an androidx.media3.ui.PlayerView. The player should play a video using a foreground service, allowing media playback to continue even when the app is ...
0
votes
0
answers
77
views
Create MediaSessionService and customize Media Notification
I am making a music player Android App with Kotlin and building UI with Jetpack Compose, using ExoPlayer as the player. Currently I'm using Hilt to inject ExoPlayer directly into the ViewModel ...
0
votes
0
answers
64
views
Media3 android auto closes now playing screen when stream changes
I support different types of streams in the app. When a transition between streams happens while on the Now Playing screen, Android Auto closes the screen.
I migrated the app from legacy ExoPlayer to ...
0
votes
0
answers
33
views
Android >31, how to send MediaPlayer through speaker, NO USER REQUIRED PERMISSIONS
I have the following code. When the alarm is triggered, if I have a bluetooth device connected, it will play on through bluetooth.
I have found an app that when playing an alarm, it plays through both ...
2
votes
0
answers
97
views
How to sync multiple Android media MusicPlayers with low latency
I’m developing an Android app that needs to play five audio tracks of a song simultaneously. I'm currently using the Android MediaPlayer package for playback. However, precise synchronization is ...
0
votes
1
answer
606
views
How to Play UDP Streams Using Media3 (ExoPlayer)?
I'm currently working on an Android app using the Media3 (ExoPlayer) library to stream video content. I've successfully implemented playback for HTTP streams, but I'm having trouble playing a UDP ...
1
vote
1
answer
56
views
Playing audio messages that come as cloudKey in mp4 format with mediaPlayer
This code is needed to implement MediaPlayer functionality. Since the project itself is multiplatform.
class AudioPlayerImp(private val client: HttpClient) : AudioPlayer {
private var mediaPlayer: ...
0
votes
0
answers
77
views
iOS mic audio recorded in MPEG4AAC does not play in Android
I am recording voice in my .net maui app in iOS using AVFoundation.AVAudioRecorder.
private AVAudioRecorder recorder;
...
{
var filePath = GetTempFilePath();
url = ...
0
votes
1
answer
40
views
Android Studio : lost MediaButtonReceiver library
After I left my project development sleep for a while, I had to get back to it.
I'm stuck with the loss of MediaButtonReceiver library ...
It used to sit in
android.support.v4.media.session....
1
vote
0
answers
453
views
How to Test if Video is Playing in Hardware or Software Mode in ExoPlayer
I want to implement the option to choose between hardware and software decoding in ExoPlayer based on user selection. I've implemented the following code:
private fun buildRenderersFactory(...
0
votes
2
answers
142
views
Android MediaPlayer SurfaceView video restarts on resume
Following is my code to play a video from an url
import androidx.appcompat.app.AppCompatActivity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.SurfaceHolder;
import ...
0
votes
0
answers
45
views
Unable to Play any Audio File from Cached File - Media/Exo Player
I am trying to record the audio using MediaRecorder API of android and save the audio file in the cache directory of the app. The audio file gets saved perfectly into the cache dir and is working fine ...
2
votes
1
answer
107
views
How to highlight the currently playing song in a RecyclerView after returning from another Activity in Android?
I am working on an Android app using Java, and I have a RecyclerView displaying a list of songs. When a song is selected, it starts playing, and the app navigates to a player Activity. After returning ...
0
votes
1
answer
402
views
In Pixel 7 facing issue like cropping video with exoplayer when opening initially in portrait
In Android Jetpack Compose when using Exoplayer when an app is defaulted in portrait the time of opening the media player shows media with cropping. But the issue was resolved after switching to ...
0
votes
1
answer
55
views
How to completely destroy Media Player on back pressed in an activity?
My problem is that I have used the MediaPlayer class in an activity to play music. The music is played online from a link, and I have used the prepareAsync method for audio. At the first time, the ...
2
votes
0
answers
280
views
ExoPlayer stops playing after empty playlist received with HLS
I'm using ExoPlayer in my Android app to play videos using HLS. Sometimes the server returns an empty playlist during playback (only headers without tracks). This happens quite rarely and subsequent ...
5
votes
1
answer
679
views
Android Media3: App launched from tapping media notification but extras from PendingIntent are not set
I would like to take the user directly to the player UI when the user taps on media notification. I see that app is launched (or brought to foreground) but intent extras are null and I cannot take the ...
0
votes
1
answer
624
views
Media3 notification: How to update title dynamically during playback
I need to modify the title shown in the media notification based on the current playback position. According to the documentation, I can use MediaNotification.Provider however the document also says ...
0
votes
0
answers
354
views
Unity VideoPlayer cannot play iPhones videos on Android
I am encountering an issue on Unity 2022.3.21f where I cannot seem to stream videos recorded by an iPhone on Android.
To isolate this problem, I create an empty Unity Project and add a VideoPlayer to ...
0
votes
1
answer
895
views
In Android Media3 MediaSessionService how to specify HLS streaming source
Apparently, we can set an HLS media source only to ExoPlayer and not to MediaController in the Activity/Composable. Is there way to pass URL and token to the service so that HLSMediaSource factory can ...
1
vote
2
answers
1k
views
Android Media3 (ExoPlayer): How to set defaultPositionUs of a Window in the Timeline?
I want to set default start positions of my playlist items (basically to resume from where the user left), to use when playlist item auto transitions to next item.
As per my understanding (I am not ...
1
vote
1
answer
519
views
PlaybackState "ACTION_STOP" not working in Android Auto Media App
i'm trying to build a media app for android auto. I have tried to build the app according to official documentation but i've missed/misunderstood some stuffs, probably. I've created a "Playable&...
0
votes
1
answer
115
views
is it possible to pre-load a playlist from network with android mediaplayer?
I'm working on an app that involves listening to playlists of audio tracks that are loaded asynchronously from network. the issue here is using mediaplayer, i load (prepare) each audio track after the ...