triggerMedia method

Future<bool> triggerMedia(
  1. String playlistId,
  2. String itemId
)
inherited

triggerMedia -> /v1/trigger/media/{playlist_id}/{item_id}

Triggers the specified media item in the specified media playlist.

PARAMETERS

playlistId : The ID of the playlist, either UUID, name, or index, in order of interpretation and search priority. A path can also be specified to identify playlists within folders. UUID and name matches are searched through the entire playlist tree. Because UUIDs are unique a path is not necessary. A name path is not necessary unless there are multiple playlists with the same name in different folders. A partial path of names can be used as well. Indices only index into the immediate children at each level of the tree so an index path is requred to access playlists within folders if only using indices. A mix of UUIDs, names, and indices can be used for the path if desired.

  • Example (by_uuid): 3C39C433-5C18-4F51-B357-55BB870227C4
  • Example (by_name): Playlist Name
  • Example (by_name_with_path): Folder1/Folder2/Playlist Name
  • Example (by_index): 3
  • Example (by_index_path): 2/0/1
  • Example (by_mixed_path): 3C39C433-5C18-4F51-B357-55BB870227C4/Folder Name/0

itemId : The ID of the item within a playlist, either UUID, name, or index, in order of interpretation and search priority.

  • Example (by_uuid): 3C39C433-5C18-4F51-B357-55BB870227C4
  • Example (by_name): Presentation Name
  • Example (by_index): 3

RESPONSE 204:

The request was processed successfully. There is no response body.

content-type: NONE

Implementation

Future<bool> triggerMedia(String playlistId, String itemId) async {
  String url = '/v1/trigger/media/$playlistId/$itemId';

  return await call('get', url, httpAccept: 'application/json');
}