[APP development]Windows Phone music player - Windows Phone 8 Apps and Games

Windows 10 mobile and Windows Phone 8.1 apps will most likely be 2 different packages: this will allow you to continue using the 8.1 version on windows 10 if you so desire.
Store availability
10: Available
8.1: Available
7.8/8.0: Unavailable, no longer supported
Most of the features will be common
Browse files and folders for music & videos
Support for most audio formats
Favorites & History
Built in file explorer
Integration with any cloud based storage
Equalizer
Customization options
Tabbed playback queues
NFC automation
Control playback from the start screen
Rewind/fast forward from UVC
Toggle track repeat and randomizer from UVC buttons.
Windows Phone 8.1 only features - so far
Live tile animation coupled with metadata tile (these will be mutually exclusive in windows 10)
Windows Phone 10 only features - so far
Continuum support
Support for PCs, tablets and other x86 based computers
*******************************************************************************************************[/B]
Windows Phone 7.5/7.8 & 8.0 Versions: -> download this if your carrier doesn't give you the 8.1 update or you are running on windows phone 7.8 devices (2010-2011 windows phone series!, OTHERWISE download from the first link. This app is no longer in development and only stays hidden in the marketplace for continuity purposes for windows phone 7 users!
STATUS: NO LONGER AVAILABLE

The latest update has been pushed for certification and should be available for everyone by the end of the week.
The app has been renamed to Media Player XP Pro.

Next release brings video player. With neat features.

reserved

Thanks for your effort!! Maybe in the next releases you could add the posibility of show the lyrics of the songs which are embebed in the ID3 Tag. I miss this feature of my old android.
It's only an idea.
Enviado desde mi Nexus 7 usando Tapatalk

serpico84 said:
Thanks for your effort!! Maybe in the next releases you could add the posibility of show the lyrics of the songs which are embebed in the ID3 Tag. I miss this feature of my old android.
It's only an idea.
Enviado desde mi Nexus 7 usando Tapatalk
Click to expand...
Click to collapse
I've been trying to do that for a while, but i just can't get the codec to work properly

I have discovered that the playlist engine is not working properly. This will be fixed in the net update.
The next update will also give you some degree of costumization over the interface.
EDIT: While i was in the shower i figured a news feed would be useful.

mcosmin222 said:
I have discovered that the playlist engine is not working properly. This will be fixed in the net update.
The next update will also give you some degree of costumization over the interface.
EDIT: While i was in the shower i figured a news feed would be useful.
Click to expand...
Click to collapse
Several bugs fixed. Should be available within 5 working days.

Sadly, i have a lot of projects to work on at the moment, development might be slowed down a bit, but the next major update will bring users the ability to do the following appearance customizations. You will notice the help+settings pivot has a new, empty tab in the next update.
1) change backgrounds (solid color, picture from picture library, slide shows)
2) change all title and text color in the application.
3) change the color of the app bar.
And that would be the first wave of customization.
After that, if i have time, add a theme engine and be able to customize themes from the desktop client and also replace visual assets (like images) with custom made ones.

mcosmin222 said:
Sadly, i have a lot of projects to work on at the moment, development might be slowed down a bit, but the next major update will bring users the ability to do the following appearance customizations. You will notice the help+settings pivot has a new, empty tab in the next update.
1) change backgrounds (solid color, picture from picture library, slide shows)
2) change all title and text color in the application.
3) change the color of the app bar.
And that would be the first wave of customization.
After that, if i have time, add a theme engine and be able to customize themes from the desktop client and also replace visual assets (like images) with custom made ones.
Click to expand...
Click to collapse
That's a nice project :3 better than nokia or default player
I only have a question, how do you manage to integrate some new codecs to play flac? I am amazed. I was trying hard to integrate some new video codecs but I never get it :S
Congrats!

blzkz said:
That's a nice project :3 better than nokia or default player
I only have a question, how do you manage to integrate some new codecs to play flac? I am amazed. I was trying hard to integrate some new video codecs but I never get it :S
Congrats!
Click to expand...
Click to collapse
You need a media stream source.
http://msdn.microsoft.com/en-us/library/hh180779(v=vs.95).aspx
I've written this article to explain how to create a FLAC media stream source. It also explains how media stream sources work in general.
http://social.technet.microsoft.com...play-flac-files-in-windows-phone-using-c.aspx
You will use a MediaElement instead of a background audio player. You will use its .SetSource method to a media stream source to play video samples.

An equalizer is on its way ...

After I sync from my skydrive, the songs doesn't save. The music bank is still empty, and none of the settings even save. Lumia 920 ATT using grd3.
Sent from my Nexus 7 using Tapatalk 4

hawkeye29 said:
After I sync from my skydrive, the songs doesn't save. The music bank is still empty, and none of the settings even save. Lumia 920 ATT using grd3.
Sent from my Nexus 7 using Tapatalk 4
Click to expand...
Click to collapse
You need to switch modes from help+settings, behavior tab.
In the next update, I will make these sensitive settings easier to find and set.

Are you going to include gapless playback and aqualizer in your app?

Wagierek said:
Are you going to include gapless playback and aqualizer in your app?
Click to expand...
Click to collapse
I had an attempt at an equalizer, but it didn't go according to my plans.
Besides, most WP8 phones (aside from samsung ones) already have an equalizer and their equalizer is system wide, whereas mine would only be used in my application.
It doesn't mean i gave up on the equalizer, however, this would be very confusing with users, and some of them are apparently incapable of reading all the guides and help i placed in the app...
I also have plans for true gapless playback (the player does have a pseudo gapless playback), but at this moment in time, I have a lot of things to do at collage. Maybe next week.
All of these features will, of course, only work with the local storage mode. You would have to replace the built-in player with this one completely.

Yes, but there is a Nokia Lumia 520 - cheap yet powerful and popular model. Also, it's mine. I'm so upset Nokia decided not to implement this feature in 520's software. I love listening to music, but it doesn't sound well without an EQ...

Wagierek said:
Yes, but there is a Nokia Lumia 520 - cheap yet powerful and popular model. Also, it's mine. I'm so upset Nokia decided not to implement this feature in 520's software. I love listening to music, but it doesn't sound well without an EQ...
Click to expand...
Click to collapse
Snap I tried a 5 band equalizer and the sound going out was pure noise, nothing was left from the original song.
I will try to get thing going, but as i said, next week.
I have all the infrastructure in place for an equalizer, but i just can't get it to work properly. Maybe i set the frequency levels wrong...didn't have much time to fool around with it.

I can help you if you want. I can be a beta tester or something, but it's the same here for me, next week PM me if you need help

Don't worry, I should be able to test it on my own phone Thanks.,

Related

Streaming audio, using ORB, alternatives....

Simple problem. I have several thousand mp3s at home and want to stream them to my phone so that I have all my songs regardless of my location. Even an 8GB MicroSDHC card will not hold all the songs, so streaming is the next best alternative.
I've tried using ORB, and it's a great idea, but the interface through PIE leaves much to be desired. It's difficult to drive around and click the little links, even on large font. Also there is no easy way to queue songs up without making a playlist prior.
Are there any alternatives to ORB that have a better front-end? It'd be nice to have a touch-friendly scrolling type of "catalog" of my songs, and then stream/queue them when I select them. Doesn't seem so hard.
I even tried creating a home web page with IIS, and that worked to a point, but there's got to be something better.
Thanks!
cpujunky said:
Simple problem. I have several thousand mp3s at home and want to stream them to my phone so that I have all my songs regardless of my location. Even an 8GB MicroSDHC card will not hold all the songs, so streaming is the next best alternative.
I've tried using ORB, and it's a great idea, but the interface through PIE leaves much to be desired. It's difficult to drive around and click the little links, even on large font. Also there is no easy way to queue songs up without making a playlist prior.
Are there any alternatives to ORB that have a better front-end? It'd be nice to have a touch-friendly scrolling type of "catalog" of my songs, and then stream/queue them when I select them. Doesn't seem so hard.
I even tried creating a home web page with IIS, and that worked to a point, but there's got to be something better.
Thanks!
Click to expand...
Click to collapse
I read in one of the other threads that SanDisk has announced a 12GB micro SD available this summer and they speculate that it may be a 16GB by the time it comes out.
I agree 100%...I love ORB but it is way too difficult to navigate.
They really have it all down except the few things you mentioned
Anyone else??
SelectRadio 4.0.2 ?
This prog has such an option, and I do use the program but have not tried it out for that so I do not know how well it works.
Lobster Tunes will do it for you. It's not free, though.
http://lobstertunes.com
Lobster looks pretty cool. I'm going to check it out and see if it offers a better experience than what I currently use (Andromeda - http://www.turnstyle.com/andromeda/home.asp).
sputnik said:
Lobster looks pretty cool. I'm going to check it out and see if it offers a better experience than what I currently use (Andromeda - http://www.turnstyle.com/andromeda/home.asp).
Click to expand...
Click to collapse
What do you find bad about Andromeda? I was thinking about giving it a try...
Here is one I have been wondering about. What software can you use to stream your local radio stations to your phone? I know about tuned.mobi and such, but the problem is that when a game comes on, they usually block the broadcast of the audio stream even though it is playing on the local AM radio station. I want to be able to broadcast my local radio stations (AM and FM) to my phone so I can still get the games.
I wonder if someone could not write a program that integrates everything available through orb into you wmp library i.e. some sort of plugin maybee we could put together a donation pot to get one of the dev's to work on the project
djlenoir said:
Here is one I have been wondering about. What software can you use to stream your local radio stations to your phone? I know about tuned.mobi and such, but the problem is that when a game comes on, they usually block the broadcast of the audio stream even though it is playing on the local AM radio station. I want to be able to broadcast my local radio stations (AM and FM) to my phone so I can still get the games.
Click to expand...
Click to collapse
you cant...if it isnt streamed, it cant be made out of thin air. get a radio.
dtrell said:
you cant...if it isnt streamed, it cant be made out of thin air. get a radio.
Click to expand...
Click to collapse
lol, I have a radio...multiple radios. I think you may have misunderstood me. If I got something like this device would I be able to stream it to my phone? I travel... when I am in another state, I can not stream my local radio station broadcasts through the internet to listen to games (blacked out). However, they are playing on the radio station if I were at home and able listen to my radio.
well I think I finally found my cream of the crop... saw this thread and I have to say, andromeda is the BEST solution I've found for getting my music to my PPC...
it works very well with PIE and is very zippy zippy zippy...
I've tried:
1) lobstertunes - buggy, slow, doesn't work with all ROMs
2) gnump3d - buggy perl script, cool features but crashes a lot
3) orb - as you all have stated, interface sucks in PIE and too hard to navigate
4) andromeda - FAST, stable, and CLEAN... worth every penny of the $20 lol
I like the interface of Andromeda the best, not to mention it's speed. Although you can create a playlist, you still can't just "queue" one up...unless I'm missing something.
Took me some tweaks to get it to work too. Have to rename the asp to m3u and make it executable on the server. I also had to use a third party player.
What player are you using? Also, when I click on a file to stream, it always asks me if I want to overwrite the existing m3u. I say yes and it works fine, but ya know
cpujunky said:
Took me some tweaks to get it to work too. Have to rename the asp to m3u and make it executable on the server. I also had to use a third party player.
What player are you using? Also, when I click on a file to stream, it always asks me if I want to overwrite the existing m3u. I say yes and it works fine, but ya know
Click to expand...
Click to collapse
Yup gotta do a few tweaks but it ends up workin'... yes same thing with overwiting the file but that's typical... I use TCPMP and it works flawlessly.
Zenoran said:
well I think I finally found my cream of the crop... saw this thread and I have to say, andromeda is the BEST solution I've found for getting my music to my PPC...
it works very well with PIE and is very zippy zippy zippy...
I've tried:
1) lobstertunes - buggy, slow, doesn't work with all ROMs
2) gnump3d - buggy perl script, cool features but crashes a lot
3) orb - as you all have stated, interface sucks in PIE and too hard to navigate
4) andromeda - FAST, stable, and CLEAN... worth every penny of the $20 lol
Click to expand...
Click to collapse
I like both mundu and resco radio, but they are streaming only. I may try andromeda, PM me with details please.
Do you have a mac?
I'm not sure this would work for you, but it's something that I'm going to try once the needed adapter comes in.
I feel slingbox works really well on my phone and I use it to stream live TV. For my media files I'm planning on using my mac mini which has an IR sensor for the remote and Front Row. The front row interface is very similar to the interface on an ipod and the commands are supposedly supported by slingbox. Once I get the adapter for vga-svideo I will set it up. The only downside I can think of is that audio when watching TV doesn't come over in good quality unless I have it in audio only mode, but this might not be a problem with Front Row where there will be very little visual data transmitted for audio files.
The reason a mac mini is nice is that it has a built in IR sensor. This bet this will work with windows media center too if you have something to control it with IR. Another potential downside is that the computer pretty much needs to be dedicated to working as a media server lest you forget to put it back into media mode.

[Q] DLNA/Allshare on the MIUI?

I love the MIUI but I have been skeptical about trying it because I'm too attached to Samsung's specially designed apps such as the Allshare (DLNA), Email (split view), Samsung keyboard, Memo, Kies Air, photo editor and Video Maker and Voice Talk (home button double click).
From what I read, these are built on a different framework than the MIUI (CM7) which will not work. Very sad face.
So the real question is, is there a way to port any of the mentioned apps over to MIUI?
A alternative for Allshare that I would recommend is Skifta. I even use it on my phone which is a stock based rom since it is better in the area of the phone as the player since Allshare is hard coded to use the stock video player and will not let you select a different installed player which means lower format support and you can't stream mkv's to the phone from a server even though the phone could play the same file if it is on the sdcard.
For phone to other device it has the same capabilities.
Please use the Q&A Forum for questions Thanks
Moving to Q&A
Thanks shadowofdarkness, unfortunately it doesn't seem to work properly. When I click on Music it just sits there for a while, and non of the movies play. I'm thinking maybe I need another player?
I noticed it's beta, so it might be in the process of being fixed.
xoltrix2000 said:
Thanks shadowofdarkness, unfortunately it doesn't seem to work properly. When I click on Music it just sits there for a while, and non of the movies play. I'm thinking maybe I need another player?
I noticed it's beta, so it might be in the process of being fixed.
Click to expand...
Click to collapse
What is your setup, is the phone the server or player? On my phone I prefer MX video player in SW mode for best compatibility.
I have the following devices and have not had any real problems
Phone server/client
XBMC server/client
MythTV server only
The clients especially TVs can have low format support since a lot of manufacturers only put in the most heavily used formats and can even have problems with variations of certain codec profiles.
All my media is stored on a windows 7 pc that has media stream server enabled. So whatever I have in My Music, My Video and My Pictures is easily viewed in Allstream. Skifta looks great btw, just hope they fix the issues soon.
xoltrix2000 said:
I love the MIUI but I have been skeptical about trying it because I'm too attached to Samsung's specially designed apps such as the Allshare (DLNA), Email (split view), Samsung keyboard, Memo, Kies Air, photo editor and Video Maker and Voice Talk (home button double click).
From what I read, these are built on a different framework than the MIUI (CM7) which will not work. Very sad face.
So the real question is, is there a way to port any of the mentioned apps over to MIUI?
Click to expand...
Click to collapse
Id say that if you like those special services that samsung provides don't install MIUI. Currently it is on v4 for the GS3, nevertheless the beta is on its way and is being tested as we speak. The GUI is really nice, but you DO loose some special services.
shadowofdarkness said:
A alternative for Allshare that I would recommend is Skifta. I even use it on my phone which is a stock based rom since it is better in the area of the phone as the player since Allshare is hard coded to use the stock video player and will not let you select a different installed player which means lower format support and you can't stream mkv's to the phone from a server even though the phone could play the same file if it is on the sdcard.
For phone to other device it has the same capabilities.
Click to expand...
Click to collapse
o,thanks! your answer also helped me to solve this big problem, especailly when i just trying the MIUI V5 in my galaxy S3

[Q] Would you be intersted in a new Android media player?

Hey guys I am contemplating on developing a media play that will be able to play both audio and video within a single app and designing it partly around the vanilla KitKat experience. I was thinking I would list it anywhere between $1 to $3. What do yall think. Is it a good idea? Do you think it would sell? Would you buy it?
Bump
I think people use their phones differently when listening to music or watching media, at least I do and the people I know do as well
So if I'm to listen to music, be it with head phones or streaming I go to one app, and I don't keep videos on my devices so all streaming is done through various apps
If you really want to do this I would suggest a free version with either limited options or ads so users can test and you will see if there is a market for it
But I think this is a case where you need to sell the user the idea that one app is better than two or three or....
Sent from my Nexus 4 using XDA Premium 4 mobile app
yeah i think this is a great idea especially with the kitkat UI implemented into it, and the idea to be able to have both music and videos within one app is great but what i think you should do is have different section for music and videos such as having a sub menu or something where you can select what you want to do and from that you could also implement a photo viewer and maybe even a stream type thing or something
I think a very simplistic "android player" with the new kitkat UI that plays all major video and audio would be useful. Possible features like playlists and album art would require the paid version. The focus of it would have to be the modern theme and simplicity since one app is simpler than two. It can still be very powerful without all the extra options that are in many applications.

BubbleUPnP great on Q!

Hi,
I recently installed Cyanogenmod 10 on my Q.
The install process was quite smooth. (see the Q developer forums for tutorials)
I chose the ROM with the amp support as I have two nice Bose speakers collecting dust.
Well no longer. The Q is now my main music device in my living room.
First, I was very excited about the Cheapcast app (quite a bit of stir about that here on the forums).
I could easily cast my music from my phone or tablet via Google Music. Worked fine, for a while.
Cheapcast, however, is nog very stable for streaming music. Hiccups, slow, connection loss.... I had to reboot the Q a lot.
I then tried Bubble UPnP (installed on Q, some minor config) combined with Cast To UPnP/DLNA for GMusic installed on your phone or tablet. This setup rocks and has been serving me music for the past couple of weeks.
You can try these apps for free, but there are time limits per session. Buying is well worth it.
I still preferred the original Q with the social streaming thing. But my current setup comes close: it's stable and easy. Somewhat slow in responding to actions like skip track, but it'll do.
If you have 5$ to spend on apps, give this a go. You won't be sorry.
Can you post the configuration for BubbleUPnP? I can't get the cast gmusic app to see my bubbleUPnP renderer.
Some settings
coolacid217 said:
Can you post the configuration for BubbleUPnP? I can't get the cast gmusic app to see my bubbleUPnP renderer.
Click to expand...
Click to collapse
Hi there, here's a few settings. I don't remember which ones are default and which ones I changed:
Local renderer
- enable
- allow remote control
Local media server
- enable
- advertise on lan
- allow remote clients: all clients
Cloud content
- google music: enable
- select account: none
Control:
- kill on inactivity: never
- start on boot
- volume keys
- media keys
- lockscreen controls
I do remember having to reboot te Q to make certain settings stick.
Hope this helps, regards,
eddib
Thank you! That did the trick.
Now also from the browser
You can now also cast directly from your Chrome browser with the Google Cast extension.
My Q started showing up recently.
eddib said:
You can now also cast directly from your Chrome browser with the Google Cast extension.
My Q started showing up recently.
Click to expand...
Click to collapse
I just wanted to pop in and thank you for this thread! I bought a Q from eBay a couple months back, and after setting up CM10, BubbleUPnP was the next thing I installed. It works great! While there have been changes with the most recent Google Play Music that prevents some capabilities, everything else works flawlessly. BubbleUPnP really does make the Q a serious streaming device again. Cheers!
Google being Google
Scuba Jeremy said:
While there have been changes with the most recent Google Play Music that prevents some capabilities, everything else works flawlessly. BubbleUPnP really does make the Q a serious streaming device again. Cheers!
Click to expand...
Click to collapse
Yep, Google seems to have locked down some functionality. You can still cast, but the receiving end has been secured with encrypted keys.
Cheapcast no longer works. I guess they want money for licenses.
Nor does casting to BubbleUPnP on your Q from the Google Music App (with Cast To UPnP/DLNA for GMusic; the app's gone from the App store btw).
I now cast music via the BubbleUPnP app to the Q, so not really using the Google Cast protocol, but the actual UPnP.
The interface for browsing music on you phone via BubbleUPnP is far from perfect, but it still gets the job done.
To use this, you need to add your Google Music library in BubbleUPnP.
If anyone finds another way to keep using the Google Music app to control the casting to the Q with BubbleUPnP, please let us know here.
I think it might be possible to use the Google Music App as a controller for BubbleUPnP, not sure though.
Hey guys,
just a quick message to let you know that the BubbleUpnp app has gotten some great updates recently and is now much cleaner and more responsive.
Also I found that CM 10.2 (from here in the forums) works best for this setup. It allows for the Q to run without screen or mouse attached, with BubbleUpnp running in the background. Other CM versions I've tested all needed the BubbleUpnp app to run in the foreground (thus needing screen and mouse).
I made a quick write-up for installation and added all files to my Google Drive, get it here
If this can be done with free apps, please reply here.
... now I need to find how to get the LED rings to do something
Does BubbleUpnp automatically load when the Q boots up? Also, if you could get the LED ring working again, you would be the hero of this sub forum
dts924s said:
Does BubbleUpnp automatically load when the Q boots up? Also, if you could get the LED ring working again, you would be the hero of this sub forum
Click to expand...
Click to collapse
Yes, you can configure the upnp app to start on boot.
For the led, there is an interesting thread here somewhere that discusses getting led functionality back. It should be possible to make this into an app.
i just got started learning Android dev, so for now, this is a bit out of my league.
eddib said:
Yes, you can configure the upnp app to start on boot.
For the led, there is an interesting thread here somewhere that discusses getting led functionality back. It should be possible to make this into an app.
i just got started learning Android dev, so for now, this is a bit out of my league.
Click to expand...
Click to collapse
Is there some setting in BubbleUPNP I'm missing? I still don't see the Nexus Q when I try to cast Google Play Music.

[DEV] Stop sound from official Radio, Mediaplayer, DAB, etc

Hello,
I'm trying to write a mediaplayer application for the MTCB. An issue that I'm not able to solve now is to stop the music from the other stock applications when my application start.
Does anybody has an idea about how to do that ? Seems that's not a possibility to use audio focus ...
Any help will be much appreciated.
mumu02 said:
Hello,
I'm trying to write a mediaplayer application for the MTCB. An issue that I'm not able to solve now is to stop the music from the other stock applications when my application start.
Does anybody has an idea about how to do that ? Seems that's not a possibility to use audio focus ...
Any help will be much appreciated.
Click to expand...
Click to collapse
Decompile stock apps and look inside.
mumu02 said:
Hello,
I'm trying to write a mediaplayer application for the MTCB. An issue that I'm not able to solve now is to stop the music from the other stock applications when my application start.
Does anybody has an idea about how to do that ? Seems that's not a possibility to use audio focus ...
Any help will be much appreciated.
Click to expand...
Click to collapse
You should try and PM Booroondook. Below is a Google-translation of his post on this matter:
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
The developers originally wanted to make a device completely replaces the car's radio. Moreover, up to the most complete simulation interface to motorists who allegedly used to. In addition, radio conceived such that it immediately ( "out of the box") would perform all the functions inherent in the car radio. Therefore it developed a set of so-called "factory" of applications that simulate the function of "advanced" regular radio - "Radio", "a DVD", "Music", "Video", "Photos", "the iPod," "Handsfree Bluetooth". By this set has also been added to the navigation functionality - as Application- "starter" selected by the user of the navigation program.
More precisely, mutual exclusion - integration system has been created for these applications. You work, "Radio", you run the "Music" - "Radio" is turned off. Launched the "Video" - disconnected "Music." And so on. It has even invented a special function (called by the MODE key), switching these applications in a circle - by analogy with the head unit.
These applications (according to developers) would have to cover all the needs of the motorist. And the Android operating system was the basis of fashion or marketing reasons, or both.
All would be good, but the developers have not considered (or ignored) the fact that the Android OS allows you to install additional applications. These additional user-installed applications do not "fit in" with the original logic of the functional simulation regular radio.
We take your specific example. You factory application "Music" chose a third-party, the establishment of additional "Google Music" app. It is clear that it is your choice to which you are entitled. But the developer is not able to assume that you install this application - and therefore your "Google Music" is not involved in "switching system" applications and "dampens" the other application.
What's in this case? Either put up with such behavior (ie, do not forget to manually turn off the "Radio" before turning on the "Google-Music"), or you can use some tricks to automate this business - good Android OS lets you do things with the help of supporting applications and system modules.
Members of our branches also have repeatedly faced with problems similar to yours. Force enthusiasts have developed tools that optimize the behavior of third-party applications such as media players.
Do not be lazy, look at the cap, there is a lot of links. Note the module Car Audio Service, as well as a set of tools from a reputable MVG-V70.
.............................................
Link to original post
.............................................
Unfortunately he is not that active on XDA
If someone is interested, finally it's very simple
private AudioManager am = null;
this.am = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
// Cut sound from stock audio applications
this.am.setParameters("av_channel_exit=dtv");
// Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
mumu02 said:
If someone is interested, finally it's very simple
private AudioManager am = null;
this.am = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
// Cut sound from stock audio applications
this.am.setParameters("av_channel_exit=dtv");
// Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
Click to expand...
Click to collapse
Could you please elaborate? I'm having the same issue, however I want to apply this behaviour to already existent apps, eg. Google Play Music (to pause everything else when Google Music starts)... Does your solution apply to my case and how should I procceed? Thank you so much in advance!
sarruma said:
Could you please elaborate? I'm having the same issue, however I want to apply this behaviour to already existent apps, eg. Google Play Music (to pause everything else when Google Music starts)... Does your solution apply to my case and how should I procceed? Thank you so much in advance!
Click to expand...
Click to collapse
I think one solution is to write a very simple application with just the mentionend code Inside. Then use tasker, and when you launch Google Play Music ask him to launch the small program before.
I can build the small app for you if you want to try ?
For my media player it's not working 100%. I'm able to cut off the sound when I launch my app but when I want to launch again the stock radio , it dosen't actually stop my mediaplayer since I can't get any notification Inside my app from the stock app.
mumu02 said:
I think one solution is to write a very simple application with just the mentionend code Inside. Then use tasker, and when you launch Google Play Music ask him to launch the small program before.
I can build the small app for you if you want to try ?
For my media player it's not working 100%. I'm able to cut off the sound when I launch my app but when I want to launch again the stock radio , it dosen't actually stop my mediaplayer since I can't get any notification Inside my app from the stock app.
Click to expand...
Click to collapse
What do you mean that you cannot get any notification?
What I've been doing till now is create a custom app using tasker (with a plugin called App factory, since my knowledge in programming doesn't go so far) and in fact use the created app to force close the radio app before launching, in my case, Google Play Music. But then, when I launch the radio app (or even the Bluetooth app)again, Google Play Music stops... So every shortcut of my preferred music app or even the mode.ini I use for the Xposed module I need to cycle through hu modes using my swc is associated not with the actual app, but with one custom made to suit my needs. Of course is kind of a mess, but so far haven't found anything better and working... Could you suggest anything better? Do you believe that there's an easier way for my case? Thank you so much for your help..!?
sarruma said:
What do you mean that you cannot get any notification?
What I've been doing till now is create a custom app using tasker (with a plugin called App factory, since my knowledge in programming doesn't go so far) and in fact use the created app to force close the radio app before launching, in my case, Google Play Music. But then, when I launch the radio app (or even the Bluetooth app)again, Google Play Music stops... So every shortcut of my preferred music app or even the mode.ini I use for the Xposed module I need to cycle through hu modes using my swc is associated not with the actual app, but with one custom made to suit my needs. Of course is kind of a mess, but so far haven't found anything better and working... Could you suggest anything better? Do you believe that there's an easier way for my case? Thank you so much for your help..!
Click to expand...
Click to collapse
What I mean, there is no communication between stock app and let's say a regular android app. I mean, when you launch a stock app, there is no way (at least I didn't find it) for another regular app to know that you launch the stock one.
In fact what I want to do is that when I launch my media player it stoppes the Stock app (This goal is reached) but then when I launch again a stock app, it should stop my mediaplyer app (Actually it just put the sound done. To sumarize what I want is that each time I bring an app in fordeground it should stopp all other (Music player). In fact it's the case between the stock media player and the stock radio.
So I think so far we are both at the same place
mumu02 said:
What I mean, there is no communication between stock app and let's say a regular android app. I mean, when you launch a stock app, there is no way (at least I didn't find it) for another regular app to know that you launch the stock one.
In fact what I want to do is that when I launch my media player it stoppes the Stock app (This goal is reached) but then when I launch again a stock app, it should stop my mediaplyer app (Actually it just put the sound done. To sumarize what I want is that each time I bring an app in fordeground it should stopp all other (Music player). In fact it's the case between the stock media player and the stock radio.
So I think so far we are both at the same place
Click to expand...
Click to collapse
Yeah, no matter how much I have searched, I haven't found any better solution..! But I'll keep trying, this solution doesn't satisfy me and isn't at all instinctive... Any way, I'll let you know if I find anything else! Cheers... ???
I thought all this was sorted about 3 years ago when @agentdr8 developed his XposedMTC app ?
typos1 said:
I thought all this was sorted about 3 years ago when @agentdr8 developed his XposedMTC app ?
Click to expand...
Click to collapse
My work on XMTC ceased a while back, but what was posted above was correct at the time. The audio output was controlled by the MCU, and triggered via different AudioManager object parameters.
The problem is, all Android app-based audio is done via 1 MCU output (av_channel=sys IIRC). So anyone designing an app would have to determine what the current av_channel parameter is set to. The stock MTC apps do that sort of (they just assume the newly-launched app is taking over audio control, and switches the av_channel).
agentdr8 said:
My work on XMTC ceased a while back, but what was posted above was correct at the time. The audio output was controlled by the MCU, and triggered via different AudioManager object parameters.
The problem is, all Android app-based audio is done via 1 MCU output (av_channel=sys IIRC). So anyone designing an app would have to determine what the current av_channel parameter is set to. The stock MTC apps do that sort of (they just assume the newly-launched app is taking over audio control, and switches the av_channel).
Click to expand...
Click to collapse
That was pre @7floor audio mod which bypasses the MCU and gives Android control of the audio IC, I wonder how XposedMTC works with that ? Not heard any one say that I remember.
mumu02 said:
If someone is interested, finally it's very simple
private AudioManager am = null;
this.am = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
// Cut sound from stock audio applications
this.am.setParameters("av_channel_exit=dtv");
// Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
Click to expand...
Click to collapse
Does this code work as it is?
It is a java code isnt it?
You said it worked for you to cut the audio from stock apps, but inside there is the option to enable it as well? I don't understand?
I would like to stop dvd using this code in tasker. I assume I have to change dvr with dvd and remove this part : // Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
I am sorry but I dont unsterstand java.
A time ago I creaTed Modeswitch https://forum.xda-developers.com/an...t/app-modeswitch-spotify-swc-control-t3310966
An application to help with audio focus on our devices. I am now trying to optimize it to speed it up, and now allow it change the audio focus even if the mode circle didn't run ( that was a limitation of the releases until now)
I would appreciate your help
p_mike83 said:
Does this code work as it is?
It is a java code isnt it?
You said it worked for you to cut the audio from stock apps, but inside there is the option to enable it as well? I don't understand?
I would like to stop dvd using this code in tasker. I assume I have to change dvr with dvd and remove this part : // Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
I am sorry but I dont unsterstand java.
A time ago I creaTed Modeswitch https://forum.xda-developers.com/an...t/app-modeswitch-spotify-swc-control-t3310966
An application to help with audio focus on our devices. I am now trying to optimize it to speed it up, and now allow it change the audio focus even if the mode circle didn't run ( that was a limitation of the releases until now)
I would appreciate your help
Click to expand...
Click to collapse
Wouldnt it be easier to go into factory settings and uncheck "DVD" ? That would remove the DVD from the circle entirely.
typos1 said:
Wouldnt it be easier to go into factory settings and uncheck "DVD" ? That would remove the DVD from the circle entirely.
Click to expand...
Click to collapse
I am aware of this. Actually my app has already a setting to exclude dvd from mode circle. But its not what I am trying to do. If you are listening to a track on cd/dvd disk and you open spotify (or other music app) the audio from the track continues to play, and you have audio from 2 sources !?
p_mike83 said:
I am aware of this. Actually my app has already a setting to exclude dvd from mode circle. But its not what I am trying to do. If you are listening to a track on cd/dvd disk and you open spotify (or other music app) the audio from the track continues to play, and you have audio from 2 sources !?
Click to expand...
Click to collapse
Right, I thought this was sorted by @agentdr8 3 years ago with MTCXposed.
typos1 said:
Right, I thought this was sorted by @agentdr8 3 years ago with MTCXposed.
Click to expand...
Click to collapse
p_mike83 said:
I am aware of this. Actually my app has already a setting to exclude dvd from mode circle. But its not what I am trying to do. If you are listening to a track on cd/dvd disk and you open spotify (or other music app) the audio from the track continues to play, and you have audio from 2 sources !
Click to expand...
Click to collapse
It was something I tried to address with XMTC and had moderate success with. Unfortunately that code has aged beyond the current ROM releases, and I didn't have time to keep it up to date.
In order to catch all launches of audio-outputting apps, you'd need an Xposed module to hook into either the current Launcher process to know when apps are opened, or into the system ActivityManager. From there, you could interrogate the AudioManager instance and get/set parameters to flip audio sources. It was something I was looking into for XMTC, but never made any progress.
EDIT: Not sure if you've tried adding in this to switch away from the dvd source and back to the Android source:
Java:
am.setParameters("av_channel_exit=dvd");
am.setParameters("av_channel_enter=sys");
Also, I don't think any of this would matter if the @7floor mod was done. Everything should be piped into the standard Android audio streams at that point.
agentdr8 said:
It was something I tried to address with XMTC and had moderate success with. Unfortunately that code has aged beyond the current ROM releases, and I didn't have time to keep it up to date.
In order to catch all launches of audio-outputting apps, you'd need an Xposed module to hook into either the current Launcher process to know when apps are opened, or into the system ActivityManager. From there, you could interrogate the AudioManager instance and get/set parameters to flip audio sources. It was something I was looking into for XMTC, but never made any progress.
EDIT: Not sure if you've tried adding in this to switch away from the dvd source and back to the Android source:
Java:
am.setParameters("av_channel_exit=dvd");
am.setParameters("av_channel_enter=sys");
Also, I don't think any of this would matter if the @7floor mod was done. Everything should be piped into the standard Android audio streams at that point.
Click to expand...
Click to collapse
Oh, I thought that XposedMTC was still THE way to stop 2 sources from playing at the same time and to add extra sources into the src button (I use the built in apps myself so dont use XMTC for that)>
typos1 said:
Oh, I thought that XposedMTC was still THE way to stop 2 sources from playing at the same time and to add extra sources into the src button (I use the built in apps myself so dont used XMTC for that)>
Click to expand...
Click to collapse
Thanks! I came along this as I was trying to find the answer. (You have to remove "this" from the code). But anyway I already found an other work around ?. So time for testing my app. The first tests were successful!?

Categories

Resources