AutoShare Intents with Google Play Music Radio

Discussion in 'AutoApps' started by scae, Feb 20, 2017.

  1. scae

    scae Member

    Joined:
    Feb 20, 2017
    Messages:
    35
    Likes Received:
    0
    Hi,
    I'm playing with intents for Google Play Music in order to start one of the Google provided radios. I can get a general search for playlists working, but I can never seem to get a Radio to play, even if it is the first search result. Any Ideas? I've tried the AutoShare set up process, but it doesn't work with specific searches (i.e. Artist, Genre... Radio).
    Currently I am using an intent with the radio URL in Data and playing it with AutoInput - but to do it via just the intent would be more elegant.

    Current Set up:
    Action:android.intent.action.VIEW
    Cat: Default
    Mime Type:
    Data: https://play.google.com/music/m/Ac524cs4icx4xnekce4qkegkrce
    Extra:
    Extra:
    Package:
    Class:
    Target:Activity

    Preferred Setup would like something like this:
    Action: android.media.action.MEDIA_PLAY_FROM_SEARCH
    Cat: Default
    Mime Type:
    Data:
    Extra: android.intent.extra.focus:vnd.android.cursor.item/radio
    Extra: query:<radio name here>
    Package:
    Class:
    Target: Activity
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Unfortunately Google didn't implement intents to start playing radios, so I don't think there's a way to do it, sorry!

    The most you can do is play a song and it'll automatically start a radio based on it.
     
  3. scae

    scae Member

    Joined:
    Feb 20, 2017
    Messages:
    35
    Likes Received:
    0
    OK - thanks for the quick reply Joaomgcd!
     
  4. dmorlitz

    dmorlitz New Member

    Joined:
    Mar 8, 2017
    Messages:
    1
    Likes Received:
    0
    I am not sure if this helps but AutoInput recognized the play button as a field. I have many Tasker tasks which open Google Play Music by URL (as you do) and then runs an AutoInput shared action to start the radio channel.
    I am happy to share the task configuration if I knew how to export the AutoInput shared action.
     
: GPM

Share This Page