How to set two applications to different audio streams to play simultaneously? - General Questions and Answers

Brief question description:
I'm trying to set different audio streams for two different applications in order to play their sounds simultaneously with different volume levels.
For example, I want to set App1 to Media stream and App2 to System or Alarm stream. Then by setting different volume levels for each stream I will be able to play sounds from App1 and App2 simultaneously with different volume levels.​
Purpose:
Play music in the background with low level volume and simultaneously play video in the foreground with higher level volume.​My other questions having the same purpose:
How to have a background app and a foreground app with different volumes?​
Specific Usage Case:
I'm using Poweramp Music Player (in the background) to play music, and MX Player (in the foreground) to play videos (video lectures). What I'm looking for is to play music in the background with low volume level while playing videos in the foreground on MX Player with another higher volume level.​
Device Info:
ROM: Android v6.0.1 (Rooted with Xposed installed)

Yes, its possible.
Use Tasker>Media >Play folder and choose your music folder to play.
Next use the MX player to play your video.
Now both of them will play simultaneously.
In the end, thank me.

Related

Can anybody develope usefull player of lossless audio formats?

This must be such a 'native' player which stays in pause when user of device answers on incoming or make outgoing call.
It must play *.APE and *.FLAC and has simple interface:
playlist + buttons "Play", "pause", "skip forward", "skip backward", "shuffle" and "repeat all/current" + position of playing of current track with possibility of rewind + volume control.
That's all
Who dares?
if you check the Hero app section there is an app there that may fit your needs.
I've use that player. The 'rooted' device is NECESSARY - it's may be difficulty for ordinary users. This player plays track with the same volume in any ways of use of the device.
I'll try to tell my wishes to the author of that player but i'm not sure that it's possible because the player is JAVA application.
Thanks for advise - player is on support.
2admins: topic may be deleted.
CyanogenMod will play FLAC files natively.

[Q] Music Player doesn't normalize volume?

I have normalized the volume on all of my mp3 files using the MP3Gain application on my PC. This applies a factor to the file telling the music player how to adjust the volume for each mp3 so that they will all play at the same level. Otherwise, you get the problem that every mp3 starts at a different volume and you have constantly adjust the level.
Most well-designed music players will use the gain settings and make the level adjustment, but the stock music player on the Captivate seems to ignore the settings.
So, my questions are:
1. Does anybody know how to make the stock music player play nice with the gain settings?
2. Otherwise, does anybody know if there are other players which will use the gain settings.
Also, is the Captivate player a skinned version of the standard Android player? If so, does the standard player pay attention to the gain settings? If so, then maybe there's a hidden setting that will make it work on the Captivate. Anybody who's knowledgeable about this, please jump in.
It would be nice if an Android music player supported ReplayGain, yeah; I'm not sure if any do. It certainly would have to be a third-party music player. The only way to make the stock music player respect this would be to actually normalize the files instead of having ReplayGain tags. The downside, of course, if that this irreversibly changes the actual music files, themselves.

[Q] Is there a way to play audio from two apps at once in Android 5.0.x?

I'm interested in listening to podcasts with Google Play Music playing in the background at low volume. I can lower the volume in Play Music independently by using the equalizer and moving all the sliders to the bottom. I just can't get it to keep playing when I start a podcast in BeyondPod. They both take control of the audio focus. Does anyone know of a way to prevent specific apps from taking control of audio focus?

How to have a background app and a foreground app with different volumes?

Brief question description:
I'm trying to set different sound levels for two different sounds playing simultaneously from two applications.​
Purpose:
Play music in the background with low level volume and simultaneously play video in the foreground with higher level volume.​
Specific Usage Case:
I'm using Poweramp Music Player (in the background) to play music, and MX Player (in the foreground) to play videos (video lectures). What I'm looking for is to play music in the background with a specific (low) sound level (or volume level) while playing videos in the foreground on MX Player with another (higher) sound level. I'm able to play two sounds simultaneously by disabling Permanent Audio Focus Change (in Audio Focus ← Audio in Poweramp, hinted by this question) but without being able to set two different sound levels for the two sounds (The sound from Poweramp and the other one from MX Player) as there is only one generic sound level for everything on the media stream that all apps abide to.​
Suggestions I'm trying:
Setting different Audio stream for each of the two applications. [Related Question]
Suggestions tried but unsuccessful:
I've tried App Volume Control, but it says:
It's not possible to have a background app and a foreground app with different volumes, this is an Android limitation.
Click to expand...
Click to collapse
Device Info:
ROM: Android v6.0.1 (Rooted with Xposed installed)

Default music app behaviour

Hi XDA community,
I have just received a reply to a 'bug report' I submitted.
I queried if the following is normal behaviour on OnePlus devices:
1. Pair phone with Bluetooth headphone/speaker
2. Disable Google Play Music (this is so that I can change the default Music app)
3. Change default Music app (I changed it to Pi Music Player)
4. Open default Music app (Pi Music Player) and play any track
5. Stop track and close the default Music app (Pi Music Player)
6. Open YouTube or any other streaming app and play content
7. Close YouTube
8. Click play/pause button on Bluetooth headphone/speaker
9. This should open your default Music app (Pi Music Player), but it does not.
I received the following reply:
'Good day sir, as we confirmed, this is by default design, In this case, youtube app won't handle any key event if they're in background.
Thanks for your effort and hope you have good day.'
My question is are OnePlus saying that if I use Youtube then the play/pause button on my Bluetooth headphone is disabled on OnePlus devices even though Youtube has been closed, shutdown and not running in the background? If so this sounds to me like default music app setting in OnePlus is not working properly. This is the same even if I restart the phone. The only way to make it work is to open default Music app (Pi Music Player) again and play a track.
On all other devices I use when clicking the play/pause button on my Bluetooth headphone the default music app is automatically started regardless of whether I have previously used Youtube and then closed it.
Any thoughts?
Can someone advise how the 'default music app' setting is supposed to work in OOS? OnePlus have confirmed that it doesn't ensure your Bluetooth headphones to auto start your default music app.
This was the reply:
'Yes sir, it will open the last player app you run and it's current rules. It may not change in a short time.'
Other than selecting 'Auto Play' under 'Earphone mode', is there any way to get round this as it is annoying having to take the phone out of the pocket to open music app.

Categories

Resources