Documentation

How to: Trigger the different interactions allowed on PlaybackItems

Examples below show how to trigger each of these interactions to test your application.

  • SKIP
    
    
    mutation {
      playback {
        setSource(deviceUuid: "deviceXYZ", sourceId: "AL:4346886") {
          current {
            ... on TrackItem {
              interactions
              track {
                name
              }
            }
          }
        }
      }
    }
    
    
    
    
    {
      "data": {
        "playback": {
          "setSource": {
            "current": {
              "interactions": [
                "SKIP",
                "SEEK",
                "PREVIOUS"
              ],
              "track": {
                "name": "Born Confused"
              }
            }
          }
        }
      }
    }
    
    
  • THUMB
    
    
    mutation {
      playback {
        setSource(deviceUuid: "deviceXYZ", sourceId: "PE:8462") {
          current {
            ... on PodcastEpisodeItem {
              interactions
              podcastEpisode {
                name
              }
            }
          }
        }
      }
    }
    
    
    
    
    {
      "data": {
        "playback": {
          "setSource": {
            "current": {
              "interactions": [
                "THUMB",
                "BACK_15_SECONDS",
                "FORWARD_15_SECONDS",
                "SEEK"
              ],
              "podcastEpisode": {
                "name": "AMA Bonus: Ask Me Another Turns Five!"
              }
            }
          }
        }
      }
    }
    
    
  • FORCE_ACTIVE
    
    
    {
      "data": {
        "playback": {
          "setSource": {
            "current": {
              "__typename": "SimStreamViolationItem",
              "errorHeader": "Someone else is listening to your Pandora account",
              "fileGain": "-7.37",
              "interactions": [
                "FORCE_ACTIVE",
              ],
              "sourceId": "ST:0:4251511226237296220",
            }
          }
        }
      }
    }
    
    
  • REPLAY
    
    
    mutation {
      playback {
        setSource(deviceUuid: "deviceXYZ", sourceId: "SF:16722:1090863") {
          current {
            ... on TrackItem {
              interactions
              fileGain
              track {
                name
              }
            }
          }
        }
      }
    }
    
    
    
    
    {
      "data": {
        "playback": {
          "setSource": {
            "current": {
              "interactions": [
                "SKIP",
                "REPLAY",
                "THUMB"
              ],
              "fileGain": "-6.72",
              "track": {
                "name": "Walking The Cow"
              }
            }
          }
        }
      }
    }
    
    
  • FORWARD_15_SECONDS
    
    
    mutation {
      playback {
        setSource(deviceUuid: "deviceXYZ", sourceId: "PE:8462") {
          current {
            ... on PodcastEpisodeItem {
              interactions
              podcastEpisode {
                name
              }
            }
          }
        }
      }
    }
    
    
    
    
    {
      "data": {
        "playback": {
          "setSource": {
            "current": {
              "interactions": [
                "THUMB",
                "BACK_15_SECONDS",
                "FORWARD_15_SECONDS",
                "SEEK"
              ],
              "podcastEpisode": {
                "name": "AMA Bonus: Ask Me Another Turns Five!"
              }
            }
          }
        }
      }
    }
    
    
  • BACK_15_SECONDS
    
    
    mutation {
      playback {
        setSource(deviceUuid: "deviceXYZ", sourceId: "PE:8462") {
          current {
            ... on PodcastEpisodeItem {
              interactions
              podcastEpisode {
                name
              }
            }
          }
        }
      }
    }
    
    
    
    
    {
      "data": {
        "playback": {
          "setSource": {
            "current": {
              "interactions": [
                "THUMB",
                "BACK_15_SECONDS",
                "FORWARD_15_SECONDS",
                "SEEK"
              ],
              "podcastEpisode": {
                "name": "AMA Bonus: Ask Me Another Turns Five!"
              }
            }
          }
        }
      }
    }
    
    
  • SEEK
    
    
    mutation {
      playback {
        setSource(deviceUuid: "deviceXYZ", sourceId: "PE:8462") {
          current {
            ... on PodcastEpisodeItem {
              interactions
              podcastEpisode {
                name
              }
            }
          }
        }
      }
    }
    
    
    
    
    {
      "data": {
        "playback": {
          "setSource": {
            "current": {
              "interactions": [
                "THUMB",
                "BACK_15_SECONDS",
                "FORWARD_15_SECONDS",
                "SEEK"
              ],
              "podcastEpisode": {
                "name": "AMA Bonus: Ask Me Another Turns Five!"
              }
            }
          }
        }
      }
    }
    
    
  • PREVIOUS
    
    
    mutation {
      playback {
        setSource(deviceUuid: "deviceXYZ", sourceId: "AL:4346886") {
          current {
            ... on TrackItem {
              interactions
              track {
                name
              }
            }
          }
        }
      }
    }
    
    
    
    
    {
      "data": {
        "playback": {
          "setSource": {
            "current": {
              "interactions": [
                "SKIP",
                "SEEK",
                "PREVIOUS"
              ],
              "track": {
                "name": "Born Confused"
              }
            }
          }
        }
      }
    }