Windows Media Player Resume-Plugin (Version 1.2.1 09/25/08) - Windows Mobile Apps and Games

Hello,
for everyone who is interested in: i have developed a resume-plugin for the windows media player. Just install the .cab and everytime you press pause on the MediaPlayer it will save the playlist and the position. Afte you exit the player or the device resets it will resume at the same position.
Perhaps someone find it useful in combination with audio-books.
Have fun,
greets,
Thomas
P.S: The plugin is for the MOBILE Windows Media Player, that means it is for devices with the Windows Mobile OS! (For those who come direct from google to this PDA-Forum..
UPDATE 1.1:
-now it is not necessary (written correct..? to press "pause". Every 20 sec a resume list is written.
UPDATE 1.2:
-New Config-Tool for setting the Save-Interval and an option for asking to resume on startup.
-The save-interval is the time for automatic save in Milliseconds
-please de-install the previous version before installing the new!
UPDATE 1.2.1:
-the PopUp for resuming is bound to the mediaplayer so you can use the library startoption.
You have to close the library to see the PopUp.
Have Fun!

Hi,
your cab installs the "ResumePlugin2.dll" on "\Program Files\ResumePlugin", without reg entries or Links.
how will this work?
wfg
starbase64

starbase64 said:
Hi,
your cab installs the "ResumePlugin2.dll" on "\Program Files\ResumePlugin", without reg entries or Links.
how will this work?
wfg
starbase64
Click to expand...
Click to collapse
It is a self-register com-component. On install the installer calls the self-register function of the .dll, it registers itsself as WMP Plugin and makes the reg-entries in \hklm\software\microsoft\mediaplayer\uiplugins. After that, the plugin works.
Greet,
Thomas

Really very useful plug in.
Thanks a lot for this app.

Wolfman-XP said:
Hello,
for everyone who is interested in: i have developed a resume-plugin for the windows media player. Just install the .cab and everytime you press pause on the MediaPlayer it will save the playlist and the position. Afte you exit the player or the device resets it will resume at the same position.
Perhaps someone find it useful in combination with audio-books.
Have fun,
greets,
Thomas
Click to expand...
Click to collapse
Wowz! You're a star! I check it ASAP.

Thanks! i m going to try.

Works great on all my WM5+ test devices (PPC and SP alike), except for the HP iPAQ 210.

thank you. this is working great for me as well. it is standard on every other media player except wm...
side note: s2p has this standard and seems to use less resources then wm.
thanks again for this very handy hack. I will pass this along as well.

Wolfman-XP said:
Hello,
for everyone who is interested in: i have developed a resume-plugin for the windows media player. Just install the .cab and everytime you press pause on the MediaPlayer it will save the playlist and the position. Afte you exit the player or the device resets it will resume at the same position.
Perhaps someone find it useful in combination with audio-books.
Have fun,
greets,
Thomas
Click to expand...
Click to collapse
Another thing that Windows have forgotten !
Thanks for making WMP better !
PS : It was one of the reasons that make me install S2P... I was obliged to select again and again the playlist...

See http://forum.xda-developers.com/showthread.php?p=2469301

tadevinney said:
s2p seems to use less resources then wm.
Click to expand...
Click to collapse
No it doesn't. Read my related review.

Just one word: BRILLIANT!

I'm not getting any love from this.
It did it once, but I can't repeat it.
also, has anyone tested it with the HTC Home music tab?
Ive tried launching direct from wmp shortcut also...

Can you make a configurable auto-bookmark? Every X seconds, bookmark the file. Don't need to keep history of all the autobookmarks, that would obviously grow and grow.
That way we would at least have a auto-bookmark in case we forget to hit pause or WMP crashes.

itesla said:
Can you make a configurable auto-bookmark? Every X seconds, bookmark the file. Don't need to keep history of all the autobookmarks, that would obviously grow and grow.
That way we would at least have a auto-bookmark in case we forget to hit pause or WMP crashes.
Click to expand...
Click to collapse
Done. But it´s not configurable...

One thing I noticed is that if I have shuffle turned on, when I reopen WMP, it will start playing another song in the list instead of picking up where it left off.

Great WMP is the mosed used app for me.
And now i can skip the Library and just get going.
It's only when you lose these sort of small extra's when you realize how important they are.
So before this get's lost.
Danke Wolfman.

Excellent work! This is perfect. Works exactly as it should on my Vox.

OK, it is now resuming the playlist (all music - shuffle), however, it doesn't resume from where it left off... It starts the same random playlist, but not in the correct place

I haven't installed this yet but am so excited I wanted to thank you immediately for developing this and making it available for free to the masses.
I use my HTC Wizard to listen to podcasts, lectures, and audio books but this has driven me crazy for 2yrs. Now, thanks to your efforts it sounds like it will be solved.

Related

media center extender for athena?

please don't flame me for not searching the forums if such a topic has already been discussed - my search function simply isn't working. I have however browsed the forums with no luck. I was simply wondering if it is possible to use my athena as a media extender- not just control it but view videos, music and pictures the same way i would through an xbox or a pc.
leoni1980 said:
please don't flame me for not searching the forums if such a topic has already been discussed - my search function simply isn't working. I have however browsed the forums with no luck. I was simply wondering if it is possible to use my athena as a media extender- not just control it but view videos, music and pictures the same way i would through an xbox or a pc.
Click to expand...
Click to collapse
Yeah please this would be cool feature
ORB is the answer you seek
Has Anyone Tried This?.......
spacecat said:
ORB is the answer you seek
Click to expand...
Click to collapse
orb is ok but id prefer something to directly sync with my Media Center setup at home.
Also my Athena crashes whenever Media Player loads up. I've got PK's Black Touch 2.0. Applied the WM fix but it didn't work.
Wondered if anyone has tried this..... haven't had chance yet
http://www.getjar.com/products/11070/MobileMediaCenterBeta
Be interested to get some feedback
Try using Webguid on your media center pc. It integrates into the mediacenter application and is a ton more stable than Orb (especially on Vista). It's free for XP and Vista media center users and is very easily navigated on a laptop or handheld (more than Orb was anyway, and yes I've used both). Webguide is the closest I've come to turning my handheld into a media center extender as I can get.
I don't have the url, but a quick google for webguide+mediacenter should get you going in the right direction. Also, try using TCPMP to view the streaming on your handheld instead of WMP.
Good luck.
leoni1980 said:
orb is ok but id prefer something to directly sync with my Media Center setup at home.
Also my Athena crashes whenever Media Player loads up. I've got PK's Black Touch 2.0. Applied the WM fix but it didn't work.
Wondered if anyone has tried this..... haven't had chance yet
http://www.getjar.com/products/11070/MobileMediaCenterBeta
Be interested to get some feedback
Click to expand...
Click to collapse
If it helps, I tried the various WMP fixes without success until I saw the one about previewing the skins. This is what worked for me:
1) In options uncheck open in library screen.
2) In landscape mode go to options and select skin tab. Wait until the skin appears - takes a few seconds
3) In Portrait mode do the same as for 2)
That worked for me. I don't think I did the "play a track from playlist" trick, but I did have a playlist set up. Reason I can't be sure is that this is the third time I've had to rebuild my Athena with PK2.0 because previous 2 versions got stuck during hard reset after I had set various things up.
Hope this helps someone

Updated!! Mplayer port for Windows Mobile!

Hi All,
This is the mplayer (famous linux media player ) port for Windows smartphone . I have tested this with Application unlocked SP5m ( WM6) . It should run on all WM5+ smartphones as well Pocket PCs .
Installation guide..
Unzip all the contents to memory card and run mplayer.exe , All files should be in same folder.
Advantage of mplayer
-- Full support of streaming
-- supports all real media formats including streaming.
-- Supports RV40, RV30, R20 , sipro , cook and atrac codecs.
-- Supports MP4 streaming over RTSP.
-- All flavors of Flash video are supported.
-- Uses coremp4 for MP4 decoding.
TODO:
-- Need to imporve GUI ( current version is just for preview)
-- WMA decoder is not supported ( Need to add windows DMO driver, any help will be great)
-- Need to fix some crashes .
Overclock your tornado to 240 MHz , this will give best result.
Download armv4 version of Mplayer this should run on all devices
Menneisyys' Mirror
Download armv5te version of Mplayer this should run on all omap850+ devices
Menneisyys' Mirror
Download iwmmxt version of Mplayer this should run on all devices which has iwmmxt optimization, not tested thought, pls share your results
Menneisyys' Mirror
I will post the device list with compatibility soon till then you have to hit and try different version on your device.
Regarding high CPU usage on streaming and missing live555 support , this is something I have to debug , will update you soon.
Finally , If you feel mplayer port is useful please donate , It will help me to make Mplayer more useful and powerful.
Click here to donate
Usage:
Use Open File to open any media file stored locally
Use Open Url to open a URL , if url is a playlist click Open As Playlist open.
Use Open Playlist to open a playlist stored locally.
Keys:
right arrow key-- forward
left arrow key --rewind
center key -- play / pause
volume up key / down key --vol up/down
* -- prev song in playlist
# -- next song in playlist
Reply with suggestions and comments , I will try to work on them.
Thanks
Amit Vijayvargiya
Brilliant!!!! Nice work, Amit!
Tell us if you are also planning a PPC port like axim x51v. Thanks
Hi amitv_17! Great work.
I am russian. When I try to open file with russian name, your plays said that can't find this file, and show me on screen abracadabra, not russian name me the file I try.
Your player don't understand russian font symbols.
Hi,
Absolutely amazing!
Are the codecs all written in software? Or do you use hardware acceleration?
I'm running it on both my Kaiser and Vox. I tried a few flash video files and a mpeg4 file. They all worked well. Unfortunately I got an error when streaming mpeg4 via rtsp. The errors are:
"Server returned 400: Bad request" and then "no stream found to handle url rtsp://192.168.1.26:7070"
With VLC player I can play this stream without problems. Any solution?
And before I forget, let me know your palpay address then I will send you a donation
Cheers
JockyW
PS: the link http://www.geocities.com/amitv_17/cemplayer doesn't work
Wowz! I'll frontpage this!
BTW, what makes the port Tornado-only? The entire WinMo coummity would certainly welcome the port!
jockyw2001 said:
I'm running it on both my Kaiser and Vox. I tried a few flash video files and a mpeg4 file. They all worked well.
Click to expand...
Click to collapse
Wowz, nice to know it's indeed compatible with other models.
BTW, can I relocate this thread to Dev & Hacking so that it gets MUCH bigger exposure?
BTW, can I relocate this thread to Dev & Hacking so that it gets MUCH bigger exposure (before I publish my article, that is)?
Menneisyys said:
BTW, can I relocate this thread to Dev & Hacking so that it gets MUCH bigger exposure (before I publish my article, that is)?
Click to expand...
Click to collapse
Great, it absolutely deserves exposure. This is a high potential!
what kind of rendering engine does this use? it seems to be pretty slow when playing rm on my Kaiser
jockyw2001 said:
Hi,
Absolutely amazing!
Are the codecs all written in software? Or do you use hardware acceleration?
I'm running it on both my Kaiser and Vox. I tried a few flash video files and a mpeg4 file. They all worked well. Unfortunately I got an error when streaming mpeg4 via rtsp. The errors are:
"Server returned 400: Bad request" and then "no stream found to handle url rtsp://192.168.1.26:7070"
With VLC player I can play this stream without problems. Any solution?
And before I forget, let me know your palpay address then I will send you a donation
Cheers
JockyW
PS: the link http://www.geocities.com/amitv_17/cemplayer doesn't work
Click to expand...
Click to collapse
Hi JockyW
I am currently too busy. I will make the website up by next week. Does port 7070 is correct for your rtsp link , try with 80 as mplayer doesnt try port 80 by default.
follow this link to make donation:
https://www.paypal.com/cgi-bin/webs...ode=USD&lc=IN&bn=PP-DonationsBF&charset=UTF-8
Thanks
Amit
arthurkok2 said:
what kind of rendering engine does this use? it seems to be pretty slow when playing rm on my Kaiser
Click to expand...
Click to collapse
It uses realplayer binary codecs optimized for ARM , for some rm files you need to overclock your Phone.
Amit
Lemark said:
Tell us if you are also planning a PPC port like axim x51v. Thanks
Click to expand...
Click to collapse
Yes I will try to port this on PPC too. Can you run this on your Axim and give me the error details.
Thanks
Amit
Lovetz said:
Hi amitv_17! Great work.
I am russian. When I try to open file with russian name, your plays said that can't find this file, and show me on screen abracadabra, not russian name me the file I try.
Your player don't understand russian font symbols.
Click to expand...
Click to collapse
Yes the unicode support is missing currently ,so you have to rename the files to or wait for some time , I will make unicode available.
Amit
amitv_17 said:
It uses realplayer binary codecs optimized for ARM , for some rm files you need to overclock your Phone.
Amit
Click to expand...
Click to collapse
Great, you support RealOne? Do you also plan to support HTTP to stream RealOne, as opposed to RTSP? RealOne's official player doesn't support HTTP tunneling, only RTSP, which means it's useless on many NAT networks.
(Sorry for not trying it myself - I'm very busy with two other articles right now.)
amitv_17 said:
Hi JockyW
I am currently too busy. I will make the website up by next week. Does port 7070 is correct for your rtsp link , try with 80 as mplayer doesnt try port 80 by default.
follow this link to make donation:
https://www.paypal.com/cgi-bin/webs...ode=USD&lc=IN&bn=PP-DonationsBF&charset=UTF-8
Thanks
Amit
Click to expand...
Click to collapse
The address and port I use is 100% correct (rtsp://192.168.1.26:7070).
It works in VLC and Quicktime. I'm streaming mpeg4 video via RTSP.
Just made a donation
Any ideas about releasing source code ??
mplayer !! yesss....
I'm using it on Linux, I'm using it on Windows... now is the last step taken
ugh...
It should run on all windows smartphones as well Pocket PCs with QVGA display (240x320)
Click to expand...
Click to collapse
well, it can't initialize a video for me... Himalaya. There's a lack of a whole central part (video area) - I can see an underlying application. The voice is working, though...
well... clicking 'tools" on softbar quits program.
"open menu" is working, player just works, but cannot do anything else..
i am using wm06 wizard.
playback is much slower, than with tcpmp, imo.

PMP Rom

I would love to turn my HTC6500 into a personal media player (PMP) i have been looking around and havent found anything even remotely like this. the idea is to make it boot into a screen where i can navigate easily to movies and music, with the comm manager available as well. if this is already possible i would love to be pointed in the right direction. thanks guys
Yes, i've been looking for something like this a long time, too. For now I'am using TCPMP and Mort for Media Access, but a GUI like IPOD Touch would be nice.
Has anybody seen or produced am "Multimedia ROM"?
Greetz,
TSU

Problem with jabra bt3030 and remote control

Sorry if a similar thread already exist, i used the search and i didn't find anything.
The problem is that I can't control another media player instead of windows media player with the buttons of my bluetooth device.
I have tried to install various programs like TCPMP and mortplayer, and tried to do again the pairing procedure, but when i click on the play button of my bt device, it open the damn windows media player.
Please help
I don't know what to do.
S2P
Have you ever tried S2P (Slide to Play) ?
It works great with my Sony DR-BT21G.
S2U automatically launch windows media player in background to use avcrp control.
s2p is a good software but it seems to have small bugs with spb mobile shell, for example don't start when i tap on the icon.
Anyway i think that the cause of these little bugs is mobile shell because with manila the hd was perfect (almost).
S2P & spb ms3
I'm using spb Mobile shell 3 with S2P. I don't have this kind of bugs.
Sometimes it doesn't start when I press the play button of my bluetooth headset and I have to launch it whith the shortcut. Once launched, there is no more bugs.
Have you got the last version of theses softwares ?
sar3vok said:
s2p is a good software but it seems to have small bugs with spb mobile shell, for example don't start when i tap on the icon.
Anyway i think that the cause of these little bugs is mobile shell because with manila the hd was perfect (almost).
Click to expand...
Click to collapse
In my opinion, S2P is very buggy. I have tried it with different ROMs (including stock ROM) and with no other software installed - and it never seems to work right. Eventually it freezes or it looks like it is playing but it really is not, or it plays but the volume shows as being muted, when it is really not muted. And the cover-flow view is either very choppy or it goes really fast - hard to control. So, I wouldn't bother with S2P. It's unfortunate because it looks nice.
I also have the jabra bt3030 and I am only able to use it with Manila or with Windows Media Player. I don't know that there is a way to use it with other programs, but I hope I'm wrong.
So, I'm with sar3vok. If anyone knows how to do this, please let us know.
I have done some tests and have found that the mobile shell and the wktask create small noious bugs, so i think that it was the principal cause of the bugs that i have found with this mobile shell.
Anyway i'm going out topic.
If someone found a way to use a bt remote control with the HD (and without WMP) please let me know.
I hate this windows program obligation
I'm using Pocket Player
This player works fine with the bt3030.
Great!!!
maikelr said:
I'm using Pocket Player
This player works fine with the bt3030.
Click to expand...
Click to collapse
I LOVE YOU MAN!!!!
And i love the conduits.
This is the 2nd program that surprise me for efficiency after pocket artist.
The conduits programmers really deserve the payment for their programs!
Pocket player and the wmp plugin resolve half of my problem with the mobile shell!!
Really thanks maikelr!!!

[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