Page 1 of 3 123 LastLast
Results 1 to 20 of 47
  1.    #1  
    Okay, so basically, you can use a quick double press of the headset button to advance tracks in the music player. However, I often am not sure if it's advanced the track or for some reason has paused it.

    I started digging and my result is this. The Pre will do a long vibration (750ms) when it advances the track, only if you're using the headset button to do so. I'll be submitting to Preware in a few minutes.

    Code:
    --- .orig/usr/palm/applications/com.palm.app.musicplayer/scripts/MediaKeyControlHandler.jsjsjs
    +++ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$musicplayer$/$scripts$/$MediaKeyControlHandler$.$js$
    @@ -$23$,$6$ +$23$,$9$ @@
     			
     			$case$ &$quot$;$next$&$quot$;:
     				// $start$ $playing$ $automatically$ $when$ $the$ $song$ $is$ $switched$
    +				$this$.$serviceRequest$ = $new$ $Mojo$.$Service$.$Request$(&$quot$;$palm$://$com$.$palm$.$vibrate$&$quot$;, {
    +					$method$: '$vibrate$', $parameters$: { '$period$': $0$,'$duration$': $750$ }
    +				});
     				$this$.$musicPlayer$.$setPlayingState$($true$);
     			
     				$this$.$musicPlayer$.$nextSong$();
    Also, I did some playing around, because I don't always feel the vibrate when I have my Pre in my pocket, to do a vibration and a tone. The built in system sounds suck, but I did have a little bit of success:

    Code:
    --- .orig/usr/palm/applications/com.palm.app.musicplayer/scripts/MediaKeyControlHandler.jsjsjs
    +++ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$musicplayer$/$scripts$/$MediaKeyControlHandler$.$js$
    @@ -$23$,$6$ +$23$,$12$ @@
     			
     			$case$ &$quot$;$next$&$quot$;:
     				// $start$ $playing$ $automatically$ $when$ $the$ $song$ $is$ $switched$
    +				$this$.$serviceRequest$ = $new$ $Mojo$.$Service$.$Request$(&$quot$;$palm$://$com$.$palm$.$vibrate$&$quot$;, {
    +					$method$: '$vibrate$', $parameters$: { '$period$': $0$,'$duration$': $750$ }
    +				});
    +				$this$.$serviceRequest$ = $new$ $Mojo$.$Service$.$Request$(&$quot$;$palm$://$com$.$palm$.$audio$/$systemsounds$&$quot$;, {
    +					$method$: '$playFeedback$', $parameters$: { '$name$': '$shuffle_03$' }, $onSuccess$: {}, $onFailure$: {}
    +				});
     				$this$.$musicPlayer$.$setPlayingState$($true$);
     			
     				$this$.$musicPlayer$.$nextSong$();
    The tones version works, you'll hear a click when you move to the next track. However, it will NOT be submitted to Preware, for two reasons. One, it plays at the volume of your "system sounds" slider no matter what. Unlike other tones that play when music is playing, it doesn't lower the volume automatically, so for me it's almost deafening over my Etymotics. Secondly, for some reason it plays the sound over both the headphones and the system speaker.

    Patches here are completely open-source, I don't know the differences between any of the licenses, but please feel free to take them and improve them, especially the tones one. I know there are other methods to play sounds that might work better but they're a bit beyond my comprehension.
  2. #2  
    awesome, man. i have the same problem with pandora, never know if its buffering the next track or if its paused. Can't wait to try this out.
  3.    #3  
    Oh, sorry, this will only work with the built-in music player, I think. It's really a per-application thing, not a global one. I'll have to check the Pandora code when I get a chance, see if I can do the same thing.
  4.    #4  
    Pandora one:

    Code:
    --- .orig/var/usr/palm/applications/com.palm.pandora/app/core/device_service.jsjsjs
    +++ /$var$/$usr$/$palm$/$applications$/$com$.$palm$.$pandora$/$app$/$core$/$device_service$.$js$
    @@ -$121$,$6$ +$121$,$9$ @@
     		$Util$.$log$(&$quot$;$media$ $event$: &$quot$; + $event$.$key$);
     		$switch$ ($event$.$key$) {
     			$case$ &$quot$;$next$&$quot$;:
    +				$this$.$serviceRequest$ = $new$ $Mojo$.$Service$.$Request$(&$quot$;$palm$://$com$.$palm$.$vibrate$&$quot$;, {
    +					$method$: '$vibrate$', $parameters$: { '$period$': $0$,'$duration$': $750$ }
    +				});
     				$AppGlobals$.$station$.$skip$();
     				$break$;
     
    \ $No$ $newline$ $at$ $end$ $of$ $file$
  5. R_E
    R_E is offline
    R_E's Avatar
    Posts
    341 Posts
    Global Posts
    343 Global Posts
    #5  
    so i was installing the pandora patch from preware and i accidentally pressed back while it was installing. Now i get an error about it ther being a reversed patch already. How can i remove whatever was partially installed?
  6.    #6  
    Not sure on that, sorry.

    Pandora had an update on 11/1 that seems to be breaking the headset button support entirely though, so I'm going to email them to see if they know about this, and maybe try changing the device_service.jsjsjs $back$ $to$ $how$ $they$ $used$ $to$ $have$ $it$.
  7. #7  
    I have the updated pandora fom 11-1 and yep the patch is broke. The bigger problem is i cannot remove the patch right now from preware. Getting the generic error for during the pre-remove script execution. Please tell me that we dont have to run erp for this? Thanks!!
  8. #8  
    I have tried reinstalling Pandora and just delete Pandora and remove the patch with pandora gone and still got the error. How can I manually move the patch??
    Last edited by addiarmadar; 11/05/2009 at 10:40 AM.
  9. #9  
    Ok I fixed the issue. Used the webos quick install to remove the patch and not preware is letting me install the patch again, even though ill wait on an update for this patch
  10.    #10  
    Sorry, the reason I haven't updated it is because Pandora headset support seems to be broken in general in the newest update. Even without the patch it wouldn't respond to any button presses.
  11.    #11  
    Pandora is still not working with the headset button in 1.3.1.

    Here's an updated version that appears to be working for me in 1.3.1 for the music player though. There's two different cases in the file now, but this one appears to be working for me.

    Code:
    --- .orig/usr/palm/applications/com.palm.app.musicplayer/scripts/MediaKeyControlHandler.jsjsjs
    +++ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$musicplayer$/$scripts$/$MediaKeyControlHandler$.$js$
    @@ -$32$,$6$ +$32$,$10$ @@
     
     				$this$.$musicPlayer$.$nextSong$();
     
    +				$this$.$serviceRequest$ = $new$ $Mojo$.$Service$.$Request$(&$quot$;$palm$://$com$.$palm$.$vibrate$&$quot$;, {
    +					$method$: '$vibrate$', $parameters$: { '$period$': $0$,'$duration$': $750$ }
    +				});
    +
     				$break$;
     				
     			$case$ &$quot$;$prev$&$quot$;:
  12. #12  
    The patch works in my Pre with 1.3.1 using Music Player Remix but I am not getting the vibrate. I have not tested in the normal Music player since I have it hidden.
  13.    #13  
    Quote Originally Posted by Gamequeen View Post
    The patch works in my Pre with 1.3.1 using Music Player Remix but I am not getting the vibrate. I have not tested in the normal Music player since I have it hidden.
    Yeah, it'll only patch the default music player. It looks for a specific file as part of the application, and so music player remix would stay untouched.
  14.    #14  
    So Pandora's latest version was a few months ago, and it broke the headset button control entirely. I was hoping that they'd have fixed it themselves by now, but they haven't, so I just uploaded a patch that used the old method of handling the button (the one that worked) as well as adds a vibrate when you skip to the next track.
  15.    #15  
    Oops, forgot to attach the actual patch file for the Pandora one for those who don't want to wait until it's in Preware.

    Edit: No longer works in Pandora 1.0.1, removed attachment.
    Last edited by jhoff80; 02/28/2010 at 03:50 PM.
  16. kra2y's Avatar
    Posts
    85 Posts
    Global Posts
    156 Global Posts
    #16  
    does this patch work with wireless headsets and wired?
  17.    #17  
    Quote Originally Posted by kra2y View Post
    does this patch work with wireless headsets and wired?
    Not sure, I only have the wired one. I would think yes, but honestly just don't know.

    The updated Pandora one is now in Preware, though.
  18. kra2y's Avatar
    Posts
    85 Posts
    Global Posts
    156 Global Posts
    #18  
    it doesn't work with my wireless headset, but it's not a stereo bluetooth set either. Can't play music, just calls through it. Mayber stereo one would work
  19. #19  
    OMG this is amazing! Thank you so much for taking the initiative and helping all of us out. I still can't believe Pandora's dev didn't fix this on their own, but this goes to show our community is up to any challenge.

    thank you!!!
  20. cwgtex's Avatar
    Posts
    608 Posts
    Global Posts
    609 Global Posts
    #20  
    Can you please write a version of this patch that work fully (vibrate) on Music Player Remix?
Page 1 of 3 123 LastLast

Posting Permissions