GSPlayer with AVRCP!! - JASJAR, XDA Exec, MDA Pro ROM Development

Hello everybody,
after my resume-plugin for the Windows Media Player i have developed a little AVRCP agent, wich allows to use AVRCP in combination with the GSPlayer, even to start the GSPlayer by pressing the "start" button on the A2DP Headset.
If there´s anyboby interested in, i would post it in this thread....
Greets,
Thomas

core
core player is better

I'm interested in that plugin. Thanks.

I'm interested, could you please post it?

The Agent......
Ok, here is the agent!
It is a little app(NOT a plugin for the GSPlayer!) wich runs in background. The app uses the Windows Media Player plugin for parsing the AVRCP signals (thank you to Mirko Schenk from MortPlayer for his help!!).
On startup you do not see anything from the app! When you start it a second time, you see an menu at the bottom (OK and SETTINGS) where you can configure various things like the path to the GSPlayer and timings for double and triple clicks. Don´t click the OK button, because the app will exit after that! Just leave it run in background. The menu disappears after clicking somewhere else.
When you have configured the GSPlayer path, the plugin ready to work.
Headset Button functions:
Play - click - If GSPlayer is not running, it will startup, if it is running you can switch between play and pause.
Play - double click - turns the screen off
Play - triple click - opens the "File Open" Dialog
Play - long click - exits the GSPlayer. you can start it again with another click!
Forward - click - jumps forward one track.
Forward - double click - fast forward.
Backward - click - jumps back one track.
Backward - double click - fast rewind.
OK, that´s all. The best thing is to start the app in autostart, it is only 50kb of size and uses about 50-100kb of main memory! Then you are able to start the the GSPlayer when you connect your headset.
I´ve tested it with the Motorola HT810 Headset under WM6, but it SHOULD work under WM5 and with any other Headset wich is supported by the Windows Media Player. I´am working at a new version, where you can fully configure the functions of the buttons, e.g. start any other app and control it by sending WM_ messages.....
Ok, then enjoy.
Any feddback is welcome! Excuse my english if there are any mistakes in the post, but i am german..
Greets,
Thomas

This is exactly what I was looking for! I love GSPlayer. The agent works for all single click functions, but the double and triple clicks don't work for me. If I try to set the times for those functions, it doesn't get saved. It just reverts back to blank. I don't really need those functions, but I thought you'd want to know about it.

Question please for those using GS Player...
When Itried GS Player months ago... I noticed it can't select and play every MP3 songs I have. It only can play 10 songs.
For example, I have 100 MP3 songs in one folder. With WMP or TCPMP, if I select all and press play. It will play ALL 100 MP3 songs until the end or it runs out of battery. BUT with GS Player, it only can select 10 songs even if I MANUALLY select them one by one.
My question is: Does GS Player still suffer from this BUG???
---

rofl ,i dont know what gsgetfile version you are using..but..trust me..its not normal.

AVRCP - How did you do that?
Wolfman, could you point me to some sites that explain how to add AVRCP support to Windows Mobile apps?
I did a lot of searching, but haven't found the "holy grail" ...

pshaw118 said:
This is exactly what I was looking for! I love GSPlayer. The agent works for all single click functions, but the double and triple clicks don't work for me. If I try to set the times for those functions, it doesn't get saved. It just reverts back to blank. I don't really need those functions, but I thought you'd want to know about it.
Click to expand...
Click to collapse
That´s strange. Which device and OS are you using? I tested it on universal and WM6.....

Thanks Wolfman for your great job

By the way: i have modified the GSPlayer Source, so it can display Album or Track covers and changed some Parameters so that the Player is VGA-Compatible (i think someone did this before too). There are some VGA-Skins wich looks really nice.
Anyone interested?

VGA updated GSplayer
I would be very interested in your modified GSplayer and VGA skins, please let me know where I can download them from so I can try it out. Great work.

Here are the Files.
It´s just the gsplayer exe and one dll. The SubDirs are some VGA skins i have collected.
If there is a jpg file with the same Name as the mp3 file in the directory, it will be shown at the bottom. If not and there is a file named "folder.jpg" in the directory it will be displayed instead.

is it possible to change?
from:
Forward - click - jumps forward one track.
Forward - double click - fast forward
to:
Forward - double click - jumps forward one track.
Forward - Click - fast forward
thx

Yes, i have already change it, because i like it better, too.
This is the newest Version of the AVRCP-Agent.
New Features:
-Changed double and dingle click behaviour of forward/backward buttons
-Pause and Resume the GSPlayer on incoming call.
-If you press the VoiceCommand Button, the Player will pause too.
Greets,
Thomas

Hey, can we adapt this to other programs, like say, TCPMP?
Or better yet, can we assign custom commands to the AVRCP calls? For example, maybe I'd like a forward-press to launch WMP, and a back press to launch TCPMP, or something along those lines?
I could see this being very useful in my car since I have a AVRCP / A2DP stereo unit.
It would be interesting to have a control start the GPS app on my phone..

Great agent
Thanks very much for this agent it works great. If I could get the universal to ring through the internal speaker as well as the bluetooth headset at the same time I would have the perfect solution from my persepective.

Dishe said:
Hey, can we adapt this to other programs, like say, TCPMP?
Or better yet, can we assign custom commands to the AVRCP calls? For example, maybe I'd like a forward-press to launch WMP, and a back press to launch TCPMP, or something along those lines?
I could see this being very useful in my car since I have a AVRCP / A2DP stereo unit.
It would be interesting to have a control start the GPS app on my phone..
Click to expand...
Click to collapse
It´s no Problem to start other Applications, i plan to make the commands to be customizable. To start the WMP is a problem, because i use the WMP-AVRCP plugin to parse the AVRCP commands. It will start, but then there are 2 AVRCP Application running, this would be problematic.
To control the TCPMP would be no problem, if would have the corrosponding WM_ Messages to control the TCPMP. I would need the TCPMP Source code to do so.
I you just need a button to start your GPS App, just replace the path to the GSPlayer in "Settings" with the path to your GPS-App.

the new settings for one/doble click arent really confortable for my hbh-ds970
will you release the configurable version of this ?
also, ANY chance you can not only make gsplayer to pause, but also send sound to the loudspeaker on a call (for the ringtone )
i dont know if its a WM limitation, but i hate not hearing my ringtones and missing calls when i drive

Related

Windows Media Player Resume Plugin

Hello everybody,
i just developed a little plugin für the Windows Media Player (10) wich kills one the biggest disadvantages of the Windows Media Player, the missing resume function.
My plugin saves the state when you press "pause" and reloads the state when you start the Media Player again.
If there is anybody interested in, i would try to upload the files.....
I tried it on WM6, but it SHOULD work on WM5 too.....
Greets,
Thomas
would be great wolfman.. i'd try it if you happen to post it
Great idea! Would you be so kind to post it please?
The files
Ok, here are the files.
The archive consists of two files:
resumePlugin2.dll - the Plugin
regPlugin.exe - exe to reg the Plugin
Just copy the two files in a directory on the device, then execute the
regPlugin file. After that the plugin should be active. I´ve tested it only on my device and i give no warranty that it will work! If there are any problems just delete the reg-Key \HKLM\SOFTWARE\Microsoft\MediaPlayer\UIPlugins\{71D48166..........}.
The plugin saves the playlist and the resume-position in a file named "resume.pl" located in the root directory of the device every time you press the "pause" button in the media player. When you exit the player it will reload the playlist and the resume position the next time when you start the player and start playback. The resumePlugin will not affect the VoiceCommand functionality.
I would welcome any feedback.
Greet,
Thomas
Thanks! Greatly appreciated, and great work!
nice work. works well with my jasjar running jwright wm5.
how about equaliser plugin?
thanks
It looks like it works but only the first time...
I installed it and ran windows media player. Set pause and waited until it went to sleep. Turned it on and there it was, my playlist as I left it.
But the next time it would forget! Next time it works, next it doesn't. Or sometimes it looks like it is randomly working...
Using official XDA EXEC ROM (latest) with WM5...
Thank you anyway for your time and effort in developing this... nice idea! It is the most annoying thing for me with WMP, the second is the playlist management itself, wish it was more like mortPlayer, wouldn't you happen to have a plugin that fixes or adds functionality to the WMP playlist?
excellent little app. a couple of suggestions, perhaps it would be better if it did not begin playing automatically on resume, but rather started paused. also perhaps if it would save on close rather than on pause (it seems more logical and it seems to me that the app leangthens the pause time by a second or two).
i don't mean to sound critical (i don't know the first little thing about programing, so i fully respect your creation) just my little two sense.
Great plugin. I wish I had found this sooner.
One note though, in order to install it, I had to run the exe from the root level directory. I originally tried it from the program files folder and it did not work. So the dll sits in my root level folder.

E100/W100 RC now works with PocketPlayer!

Breaking news!:
Well, I never gave up, so I kept investigating how to use Pocket Player with E100/W100 RC and know what? Now all keys works wonderful without a glitch, but only if the the E100/W100 device is linked to Windows MediaPlayer, here's how:
1.Install Attached MP_HTCWMPPlug_061031.CAB
2.Install PocketMusic
3.Install Conduits WMP Plugin Adapter (get it in Conduits webpage)
4.Inside Pocket Player, go to Options - Plugins, enter Configure WM Adapter, and check "Close WMP before loading" and "Intercept/Override WMP", also check "HTC WMP Control Plugin", checking both workarounds inside seems to do nothing so I kept them unchecked.
5. Close/Reopen App
That's it, all keys work now, remember if your default player is HTC Audiomanager, you must first need to change it to Windows MediaPlayer (use AdvancedConfig or your favorite tool).
I've tried also Coreplayer, but the plugin system is not well implemented, it tries to work, but fails, let's hope CoreCodec fix it.
There are other players that support WM Plugins, I'll try to test them, share your experiences.
If you use WM6.5, you might need to change Windows Media Player to an earlier version that supports E100/W100.
I've tested it in several ROMs, works fine.
Note: For user of other platforms that use E100/W100 RC, this solution should also work for you.
Link to a Windows Media Player that support E100/W100 (for WinMo6.5):
http://forum.xda-developers.com/showpost.php?p=2686409&postcount=1
Great work so far.
I installed your cab. I am using MORT PLAYER and what should I say....
following buttons are working now:
play/paused
forward/backward
green/red phone button
not working
volume
Thats for me nearly perfect
Just to be in the clear, this is for PocketMusic of PocketMinds and not for Pocket Player of Conduits?
*edit: apparently it was for Pocket Player of conduits
now i have 1 small problem, i have Touch Pro2 and it seems i can't change the default audio player =\
*edit 2: that was not necessary apparently
nice work, will be using this one asap.. again great find mate!
I'm using HTC Touch Diamond 2 (Topaz) with WM 6.1.
Volume Control with RC E100 on Pocket Player does not work! By pressing the butten nothing happens (good news is, WMP does not opens, but volume can not be controlled by PP, too).
Any additional settings I have to consider?
C. Paul
Just tested this on a Touch Diamond and it works almost perfectly! the only problem is that when adjusting the volume, it wakes the screen up. a little annoying if the phone is in ya pocket. havent been able to find a way around this. suggestions anyone?
btw, very nice work Drakh for finding this one out. since HTC Audio manager doesnt support songs downloaded from iTunes I have had to use Coreplayer for listening to music from iTunes, well not anymore. and to think i was almost going to throw away my e100 cos it never worked in coreplayer. glad i didnt now
what does the cab exactly do?
c.pa said:
I'm using HTC Touch Diamond 2 (Topaz) with WM 6.1.
Volume Control with RC E100 on Pocket Player does not work! By pressing the butten nothing happens (good news is, WMP does not opens, but volume can not be controlled by PP, too).
Any additional settings I have to consider?
C. Paul
Click to expand...
Click to collapse
Yes.
I experience the same problem with HTC Diamond 2.
Play/pause forward/backward work.
But volume control doesn't.
How do you change default player?
Drakh said:
Well, I never gave up, so I kept investigating how to use Pocket Player with E100/W100 RC and know what? Now all keys works wonderful without a glitch,
Click to expand...
Click to collapse
Great news, I've been looking for this! On my Nike, I've managed to install the tools and keep the HTC audio manager from starting when I press play/pause, but I still can't get the PocketPlayer to play or pause music.
Drakh said:
That's it, all keys work now, remember if your default player is HTC Audiomanager, you must first need to change it to Windows MediaPlayer (use AdvancedConfig or your favorite tool).
Click to expand...
Click to collapse
I havn't found this setting anywhere, not in AdvancedConfig nor by registry search. Do you have any tips on where to look?
Drakh said:
That's it, all keys work now, remember if your default player is HTC Audiomanager, you must first need to change it to Windows MediaPlayer (use AdvancedConfig or your favorite tool).
Click to expand...
Click to collapse
I too would like to know how to set the default player. Can't find the setting in AdvancedConfig.
Thanks in advance.
HTC Touch DIAMOND
Windows Mobile 6.5.1 (EnergyROM)
Conduit Pocket Player 4.0 & 4.1
Conduits WMP Plugin Adapter 2.31
_______________________________
none of the buttons work, any press still opens WMP.
what version of WM and WMP Plugin Adapter did you use?
any new on this, i'm trying to make it work with CorePlayer, but everytime i press play it just open Windows media player.
And i'm not sure where to change the default music player thing, i have been looking in Advanced Config and TouchPro Tweak without any luck.
Has anyone been able to configure the WMPlayer plugin for Conduits PocketPlayer? I can get to the configuration screen but every single one of the checkboxes is "locked" - i.e. they don't respond to being clicked. They're not greyed out, just completely unresponsive
???
itm said:
but every single one of the checkboxes is "locked"
Click to expand...
Click to collapse
Use virtual keyboard: up, down, Enter.
If I use the virtual keyboard the phone freezes which I press the space bar to "click" an item (requiring a reboot)
Pjevser said:
any new on this, i'm trying to make it work with CorePlayer, but everytime i press play it just open Windows media player.
And i'm not sure where to change the default music player thing, i have been looking in Advanced Config and TouchPro Tweak without any luck.
Click to expand...
Click to collapse
Same problem, if someone has the solution to make E100 work with CorePlayer ?
I don'i know if this helps anyone but I write it anyway...
I have just disabled HTC Audio Manager using Diamonf TF3D Config.
Whenever I want to use Pocket PLayer I need to first start it manually and as long as it is started I have no problems what-so-ever using the RC-W100 remote. If I close Pocket Player manually or restart the phone I need to restart Pocket Player...
Sorry to bump this but havent found the solution.
The e100 plays well with Pocket Player after installing the WMP plugins.
However, you need to start Pocket Player manually as the previous author posted too. If Pocket Player is not running and you press the PLAY button, then the Audio Manager starts.
Although it is not the biggest problem in the world, I'd like to know if there is a solution to it.
Probably making WMP default player over Audio Manager? (although .mp3 files open by default with Pocket Player)
Anyone that found a solution?
Why there is no interest in this Thread??
I can´t figure out why there is so little interest in this topic, I use the remote a lot, and still have not found any way to fully integrate with other appz but WMp and Manila Player. Whith the time I learned to love the HTC audio manager (Newest cookie home screen integrated) But now I can´t make my W100 to open the HTC audio manager it only controls WMP.
Please, we need the expert to pay some attention here.
Thanks
I agree - the remote is so (potentially) useful for listening to music when the phone is in a pocket etc, which I do alot.

M4B Audiobooks on Windows Mobile

Hi,
I used to listen to a lot of audiobooks during a day on my iPod. Since I have a decent sized memory card in my HTC Topaz, I'd rather use it instead so I only need one device with me. The problem is that all of my audiobooks are in .m4b format, so I need something that runs on WinMo that can:
1. Play this .m4b format (I think it's just AAC)
2. Bookmark where I am in each book so if I close and re-open the player, the book continues from where I left off
3. Allows fine tuned rewind/fast forward as I often rewind 5-30 seconds to hear some part of a book a second time
4. Show me the chapters of M4B (Unicode support).
5. In iPod there is an option to listen at faster speed, which is very nice when you can short the time for a book by 25%.
6. Support the Bluetooth Play(Main)/Next Chapter(VolUp) etc buttons.
I've found tcpmp/core player can play .m4b's, but it's not great at bookmarking. That is, if I'm listening to a book, close the player and re-open it, the bookmark works fine and it continues to play where I left off. However, if I open any other file in between, the bookmark is lost. This is made worse by the inability to do any fine tuned rewind/fast forward. The only option is to use the progress slider, which tends to jump in VERY large increments.
Any suggestions?
You hit the nail on the head with this one. Any luck finding an app for us??
m4b on windows mobile
still an unsolved question... The first post here still brings it right to the point!
There are two indispensable functions regarding a m4b player for me:
- remember last position for each audiobook when stop playing / restart player / change audiobook
- possibility to list and scroll through chapter marks (!) - which seems not to be possible with any player I know...
I'd be glad to hear somebody has found a solution???
PocketMusic 5.3.5 does remember playing position in m4b, however chapters navigation is still an open issue.
wjenya said:
Hi,
I used to listen to a lot of audiobooks during a day on my iPod. Since I have a decent sized memory card in my HTC Topaz, I'd rather use it instead so I only need one device with me. The problem is that all of my audiobooks are in .m4b format, so I need something that runs on WinMo that can:
1. Play this .m4b format (I think it's just AAC)
2. Bookmark where I am in each book so if I close and re-open the player, the book continues from where I left off
3. Allows fine tuned rewind/fast forward as I often rewind 5-30 seconds to hear some part of a book a second time
4. Show me the chapters of M4B (Unicode support).
5. In iPod there is an option to listen at faster speed, which is very nice when you can short the time for a book by 25%.
6. Support the Bluetooth Play(Main)/Next Chapter(VolUp) etc buttons.
I've found tcpmp/core player can play .m4b's, but it's not great at bookmarking. That is, if I'm listening to a book, close the player and re-open it, the bookmark works fine and it continues to play where I left off. However, if I open any other file in between, the bookmark is lost. This is made worse by the inability to do any fine tuned rewind/fast forward. The only option is to use the progress slider, which tends to jump in VERY large increments.
Any suggestions?
Click to expand...
Click to collapse
Try elaudiobooks
http://forum.xda-developers.com/win...oks2-audio-t2922308/post56362244#post56362244

Best mp3 player on the TG01

I hope I do not annoy you guys with my ... "Best ..." threads.
However I really would like to know what is your favourite Mp3 player on the TG01 - I personally haven't found a lot good players besides HTC Media Player and Nitrogen!
xda_dev2063 said:
I hope I do not annoy you guys with my ... "Best ..." threads.
However I really would like to know what is your favourite Mp3 player on the TG01 - I personally haven't found a lot good players besides HTC Media Player and Nitrogen!
Click to expand...
Click to collapse
I second those 2
InsertNameHere said:
I second those 2
Click to expand...
Click to collapse
The best is pocket player (just use a skin for wvga - surch for it at xda)
much more options tna anyother, much better sound quallity (you don't need srs wow to simulate surround or bass boost)
it playes everything... and best of all, It works very well whit my bluetooth phones (witch, by the way, for it's price, I recomend - phillyps shb7110 - it can be used in the car also, and with any hi-fi or anyother apparatus with sound output) nitrogen doesn't work with the keys of forward or rewind of this phones.
gluonyc said:
The best is pocket player (just use a skin for wvga - surch for it at xda)
much more options tna anyother, much better sound quallity (you don't need srs wow to simulate surround or bass boost)
it playes everything... and best of all, It works very well whit my bluetooth phones (witch, by the way, for it's price, I recomend - phillyps shb7110 - it can be used in the car also, and with any hi-fi or anyother apparatus with sound output) nitrogen doesn't work with the keys of forward or rewind of this phones.
Click to expand...
Click to collapse
I agree: Pocket Player: It has hundreds of features!
My favourite is S2P - it´s for sure not as overloaded with features as pocket player is - but with a few ticks you listen music. And it integrates well with S2U2 (at least when you use it).
Pocket Player hangs on my phone when it goes to sleep, or the playback stutters. Maybe there´s an option somewhere - but until now I didn´t found it.
trident0815 said:
My favourite is S2P - it´s for sure not as overloaded with features as pocket player is - but with a few ticks you listen music. And it integrates well with S2U2 (at least when you use it).
Pocket Player hangs on my phone when it goes to sleep, or the playback stutters. Maybe there´s an option somewhere - but until now I didn´t found it.
Click to expand...
Click to collapse
in pocket player go to options advanced and search under power. Theres something related to that problem of going to sleep... (if can't find say again and I will see, can't do it now)
s2p is good but the author left its developmnt in favor of only s2u2. it lacks somethings important - can't bind buttons and doens't work landscape... for instance
gluonyc said:
in pocket player go to options advanced and search under power. Theres something related to that problem of going to sleep... (if can't find say again and I will see, can't do it now)
s2p is good but the author left its developmnt in favor of only s2u2. it lacks somethings important - can't bind buttons and doens't work landscape... for instance
Click to expand...
Click to collapse
Nevermind ... I wouldn´t use it anyway. And it has some problems with the 6.5.5 Button-Bar, at least the version I once had.
I don´t use landscape on my phone, but for what you want to bind buttons? Switching songs? I do this with my BT-Headset, so it´s enough for me. The only thing I miss is the album scrolling from the earlier releases, but from time to time there are updates for S2P - so I haven´t stop hoping it will come back some day

[App Request/Idea] Music controll

Hello,
I'm riding a bicycle everyday and skipping a track while riding isn't so easy. Pulling my X10 out of a pocket and changing a song is pretty hard (I have it in etui). So I was looking for an app that could change the tracks being played on a default music player (e.g.MIUI Miusic), not that it has it's own music player, because they're very bad. After pressing a button on a headset the app should activate and wait for voice command (e.g. next track) and it also should work offline, because I don't have instant Internet access, so something like database of commands on a sdcard. Also there wouldn't be such a big problem with language and missunderstanding the command. All the programs that I've found till this time needed Internet connection or had their own music player (e.g.Skyvi). I'm not an Android Dev, so It would be great if some of the Developers could make such a program.
I did a quick search and found https://play.google.com/store/apps/details?id=jp.co.chobirich.tools.mediabutton&hl=en
Would it accomplish what you're looking for albeit without voice commands?
Starfleeter said:
I did a quick search and found https://play.google.com/store/apps/details?id=jp.co.chobirich.tools.mediabutton&hl=en
Would it accomplish what you're looking for albeit without voice commands?
Click to expand...
Click to collapse
SE original headset isn't so fast for that program, so I choose JAYS Headset Control, in which I was able to configure the delay between clicks. It will take a while to learn the speed of clicking etc., but to answer Your question: Yes, this program does thing that I wanted > skips a track without taking out the phone
Thank You

Categories

Resources