Most media players respond to the media keys. This will allow you to send them.
It only has one method, SendMediaButton
Which only has one parameter, which is the media button you want to send:
KeyCodes.KEYCODE_MEDIA_PLAY_PAUSE
KeyCodes.KEYCODE_MEDIA_FAST_FORWARD
KeyCodes.KEYCODE_MEDIA_NEXT
KeyCodes.KEYCODE_MEDIA_PREVIOUS
KeyCodes.KEYCODE_MEDIA_REWIND
KeyCodes.KEYCODE_MEDIA_STOP
It only has one method, SendMediaButton
Which only has one parameter, which is the media button you want to send:
KeyCodes.KEYCODE_MEDIA_PLAY_PAUSE
KeyCodes.KEYCODE_MEDIA_FAST_FORWARD
KeyCodes.KEYCODE_MEDIA_NEXT
KeyCodes.KEYCODE_MEDIA_PREVIOUS
KeyCodes.KEYCODE_MEDIA_REWIND
KeyCodes.KEYCODE_MEDIA_STOP