| Author |
|
thx1200 Enthusiast

Joined: 01 December 2007 Posts: 133
|
| Posted: 10 April 2008 at 11:03pm | IP Logged
|
|
|
I wanted to modify the behavior of the back/next mapped buttons (hardware buttons), so I created a plugin to do what I wanted. I am posting it here in case somebody else finds it interesting.
Here is what this plugin does...
- Adds two new mappable buttons under the "Buttons" tab in the configuration: "Rewind X Seconds/Previous" and "Forward X Seconds/Next"
- Mapped button will invoke the "Rewind/Forward [user defined value] seconds" button if the file you are playing supports it -- in other words, if it's a local file and not a stream, such as a radio station -- AND if the file is currently playing and is not paused. In all other cases, it will invoke the "Previous/Next" button, which loads up the previous or next file in your play list.
- What's the use? Well, when I'm listening to online radio, I want those buttons to go to the next/previous station in my playlist. When I'm listening to podcasts or songs, I want it to skip through the file instead. If I want to go to the next file in my playlist, I can pause the song first, then hit the button, and it will go to the next song.
- If you hold down the button it will repeat the skip forward/skip back, but will not invoke the actual "fast forward" or "rewind" feature, which is different. So if you set PP to skip forward/back by a large value, such as 5 minutes, it will skip through the file VERY quickly. Whereas the actual rewind/FF feature is slower. I may add "hold to FF/Rew" in the future. Right now I don't really have a use and it'll take a bit of coding to get to work.
- This plugin only adds mappable hardware buttons, it does not add anything to the UI skin.
- This plugin will NOT override any exsting buttons -- it adds two new buttons.
Enjoy!
http://www.avianwaves.com/tech/tools/pocketplayer/gen_morebu ttons.zip
Note: If you have a suggestion for alternate button behavior, let me know. I may add it to this plugin, just for fun! :-) Keep in mind I'm constrained by what's available in the PP SDK. So I can't add anything really exotic. :-)
|
| Back to Top |
|
| |
Ede77 Beginner

Joined: 22 August 2008 Posts: 1
|
| Posted: 23 August 2008 at 7:44am | IP Logged
|
|
|
Thanks for Plugin!!! It works super!
|
| Back to Top |
|
| |
tankers Expert

Joined: 21 August 2008 Posts: 11
|
| Posted: 27 August 2008 at 10:48am | IP Logged
|
|
|
This type of function would be great to have integrated into the podcast plugin. That way the functions it performs could be based on the podcast keyword and eliminate the need to pause songs before skipping.
|
| Back to Top |
|
| |
thx1200 Enthusiast

Joined: 01 December 2007 Posts: 133
|
| Posted: 27 August 2008 at 11:28am | IP Logged
|
|
|
I'm not sure if Conduits will support this functionality, but that is a feature I could add. I could perform the same "is it a podcast" query that the podcast plug does. I'll keep you updated.
|
| Back to Top |
|
| |
tankers Expert

Joined: 21 August 2008 Posts: 11
|
| Posted: 27 August 2008 at 11:52am | IP Logged
|
|
|
Awesome!
cheers
troy
|
| Back to Top |
|
| |