create_play_queues
Create a Plex play queue to start playback, with controls for shuffle, repeat, and starting from a specific item.
Instructions
Create a play queue.
POST /playQueues
Args:
uri: The content URI for what we're playing.
playlist_id: the ID of the playlist we're playing.
type: The type of play queue to create
key: The key of the first item to play, defaults to the first in the play queue.
shuffle: Whether to shuffle the playlist, defaults to 0.
repeat: If the PQ is bigger than the window, fill any empty space with wraparound items, defaults to 0.
continuous: Whether to create a continuous play queue (e.g. from an episode), defaults to 0.
extras_prefix_count: Number of trailers to prepend a movie with not including the pre-roll. If omitted the pre-roll will not be returned in the play queue. When resuming a movie extrasPrefixCount should be omitted as a parameter instead of passing 0.
recursive: Only applies to queues of type photo, whether to retrieve all descendent photos from an album or section, defaults to 1.
on_deck: Only applies to queues of type show or seasons, whether to return a queue that is started on the On Deck episode if one exists. Otherwise begins the play queue on the beginning of the show or season.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| uri | No | ||
| type | No | ||
| repeat | No | ||
| on_deck | No | ||
| shuffle | No | ||
| recursive | No | ||
| continuous | No | ||
| playlist_id | No | ||
| extras_prefix_count | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |