I just want to share what I have done with Tasker and the Xiialive
radio application.
(Xiialive:
http://market.android.com/details?id=com.android.DroidLivePlayer)
They recently released a new Open API which is a number of public
intents. Xiialive News:
http://userecho.com/FFJd
You can control Xiialive with Tasker using the Action Intent feature
and the intents listed below.
Example:
Misc > Action Intent >
Action: com.vblast.xiialive.service.ACTION_MEDIA_PLAYBACK_TOGGLE
Cat: None
Data:
Extra:
Extra:
Target: Service
Xiialive Intents:
Used to start a new request for playback. [PAID ONLY]
com.vblast.xiialive.service.ACTION_MEDIA_PLAYBACK_PLAY
Used to resume last played. If already playing the requested action
will be ignored.
com.vblast.xiialive.service.ACTION_MEDIA_PLAYBACK_RESUME
Toggles between stop and play states.
com.vblast.xiialive.service.ACTION_MEDIA_PLAYBACK_TOGGLE
Stops media playback.
com.vblast.xiialive.service.ACTION_MEDIA_PLAYBACK_STOP
Mutes the media service.
com.vblast.xiialive.service.ACTION_MEDIA_PLAYBACK_MUTE
Unmutes the media service.
com.vblast.xiialive.service.ACTION_MEDIA_PLAYBACK_UNMUTE
Plays the next playlist item. [PAID ONLY]
com.vblast.xiialive.service.ACTION_PLAYLIST_NEXT
Plays the previous playlist item. [PAID ONLY]
com.vblast.xiialive.service.ACTION_PLAYLIST_PREV
Plays the next favorite item. [PAID ONLY]
com.vblast.xiialive.service.ACTION_FAVORITE_NEXT
Plays the previous favorite item. [PAID ONLY]
com.vblast.xiialive.service.ACTION_FAVORITE_PREV
The following intents are requests for information and I assume Pent
would have to add support in Tasker for these to work? Maybe something
to consider for a future release. It would be possible to build cool
radio widgets with Zoom!
* Used to request detailed information about the current loaded
* media. After the request a broadcast will be sent to the
* given action URI destination or if none specified it is sent
* using the intent action ACTION_NOTIFY_MEDIA_INFO.
*
* @Extra
* EXTRA_DESTINATION_ACTION <br>
* @Broadcasts
* EXTRA_MEDIA_REQ_DATA <br>
* EXTRA_MEDIA_REQ_MIME <br>
* EXTRA_MEDIA_TITLE <br>
* EXTRA_MEDIA_URL <br>
* EXTRA_MEDIA_MIME <br>
* EXTRA_MEDIA_BITRATE <br>
* EXTRA_MEDIA_FREQ <br>
* EXTRA_MEDIA_CHANNELS <br>
* EXTRA_MEDIA_GENRE <br>
* EXTRA_MEDIA_WEBPAGE
com.vblast.xiialive.service.ACTION_REQUEST_MEDIA_INFO
* Used to request current metadata. After the request a broadcast
* will be sent to the given action URI destination or if none
* specified it is sent using the intent action
ACTION_NOTIFY_METADATA.
*
* @Extra
* EXTRA_DESTINATION_ACTION <br>
* @Broadcasts
* EXTRA_MEDIA_TRACK_TITLE <br>
* EXTRA_MEDIA_TRACK_ARTIST
com.vblast.xiialive.service.ACTION_REQUEST_METADATA
* Used to request current media playback status. After the request
* a broadcast will be sent to the given destination action URI.
Request
* can be sent to startService or sendBroadcast which will avoid
starting
* the service if currently not running.
*
* @Extra
* EXTRA_DESTINATION_ACTION <br>
* @Broadcasts
* EXTRA_PLAYBACK_STATUS <br>
* EXTRA_PLAYBACK_IS_PLAYING
com.vblast.xiialive.service.ACTION_REQUEST_MEDIA_PLAYBACK_STATUS
* Broadcast action used to request current media playback mute
status.
* After the request a broadcast will be sent to the given
destination
* action URI. Request can be sent to startService or sendBroadcast
* which will avoid starting the service if currently not running.
*
* @Extra
* EXTRA_DESTINATION_ACTION <br>
* @Broadcasts
* EXTRA_MUTE_STATE
com.vblast.xiialive.service.ACTION_REQUEST_MEDIA_PLAYBACK_MUTE_STATE
* Broadcast action used to request sleep timer state. If media
service
* not running no broadcast will be sent.
*
* @Extra
* EXTRA_DESTINATION_ACTION <br>
* @Broadcasts
* EXTRA_SLEEPTIMER_TIMER_TIME (ms) <br>
* EXTRA_SLEEPTIMER_FADER_TIME (ms) <br>
* EXTRA_SLEEPTIMER_RUNNING (true/false)
com.vblast.xiialive.service.ACTION_REQUEST_SLEEPTIMER_STATE
* Broadcast sent out every time there is new media information
available.
* @Extra
* EXTRA_MEDIA_REQ_DATA <br>
* EXTRA_MEDIA_REQ_MIME <br>
* EXTRA_MEDIA_TITLE <br>
* EXTRA_MEDIA_URL <br>
* EXTRA_MEDIA_MIME <br>
* EXTRA_MEDIA_BITRATE <br>
* EXTRA_MEDIA_FREQ <br>
* EXTRA_MEDIA_CHANNELS <br>
* EXTRA_MEDIA_GENRE <br>
* EXTRA_MEDIA_WEBPAGE
com.vblast.xiialive.service.ACTION_NOTIFY_MEDIA_INFO
* Broadcast sent out every time there is new metadata available.
* @Extra
* EXTRA_MEDIA_TRACK_TITLE <br>
* EXTRA_MEDIA_TRACK_ARTIST
com.vblast.xiialive.service.ACTION_NOTIFY_METADATA
* Broadcast sent out every time there is new playback status
* change.
* @Extra
* EXTRA_PLAYBACK_STATUS <br>
* EXTRA_PLAYBACK_IS_PLAYING
com.vblast.xiialive.service.ACTION_NOTIFY_MEDIA_PLAYBACK_STATUS
* Broadcast sent out every time there is new playback status
* change.
* @Extra
* EXTRA_MUTE_STATE
com.vblast.xiialive.service.ACTION_NOTIFY_MEDIA_PLAYBACK_MUTE_STATE
* Broadcast sent out every time there is new playback status
* change.
*
* @Extra
* EXTRA_SLEEPTIMER_SET_TIMER (ms) <br>
* EXTRA_SLEEPTIMER_CURRENT_TIMER (ms) <br>
* EXTRA_SLEEPTIMER_SET_FADER (ms) <br>
* EXTRA_SLEEPTIMER_CURRENT_FADER (ms) <br>
* EXTRA_SLEEPTIMER_RUNNING (true/false)
com.vblast.xiialive.service.ACTION_NOTIFY_SLEEPTIMER_STATE
/******************************************************
* Common service extras.
******************************************************/
com.vblast.xiialive.is_paid_version
com.vblast.xiialive.media_req_data
com.vblast.xiialive.media_req_mime
com.vblast.xiialive.media_title
com.vblast.xiialive.media_url
com.vblast.xiialive.media_mime
com.vblast.xiialive.media_bitrate
com.vblast.xiialive.media_freq
com.vblast.xiialive.media_channels
com.vblast.xiialive.media_genre
com.vblast.xiialive.media_website
com.vblast.xiialive.media_track_title
com.vblast.xiialive.media_track_artist
com.vblast.xiialive.destination_action
com.vblast.xiialive.mute_state
com.vblast.xiialive.tag_state
com.vblast.xiialive.favorite_state