Actions14
- Cache Actions
- Interrupt Actions
- Playlist Actions
- Schedule Actions
- Stream Actions
Interrupt → Play
AI-generatedSummary
Interrupt current playback on the Rasp-Cast server by playing either a single track or multiple tracks immediately.
Inputs
- Mode (required) — Choose whether to interrupt playback with a single track or multiple tracks.
- Source Type (required) — Select if the single track is a local file or a remote URL (only for single track mode).
- File Path (required) — Provide the relative path to the MP3 file on the server when interrupting with a single local file (shown only if Source Type is 'File').
- URL (required) — Provide the remote MP3 URL when interrupting with a single track from a URL (shown only if Source Type is 'URL').
- Title — Track title for the single track; if omitted and the source is a file, it will attempt auto-detection from ID3 tags.
- Artist — Track artist for the single track; if omitted and the source is a file, it will attempt auto-detection from ID3 tags.
- Tracks — Add one or more tracks for interrupt playback when mode is set to multiple; each track must specify source type (File or URL), and the corresponding path or URL, with optional title and artist.
Output shape
a single JSON object containing the server's response to the interrupt play request
The response includes the result of the HTTP POST to the server's /interrupt endpoint and is returned as a JSON object. The shape and fields depend on the Rasp-Cast API response for this action.
Examples
Example 1: Interrupt playback with a single local file track
Mode set to 'Single Track', Source Type to 'File', and File Path provided (e.g., 'music/jingle.mp3'). Optionally include Title and Artist.
Example 2: Interrupt playback with a single remote URL track
Mode set to 'Single Track', Source Type to 'URL', and URL provided (e.g., 'https://example.com/track.mp3'). Optionally include Title and Artist.
Example 3: Interrupt playback with multiple tracks queued
Mode set to 'Multiple Tracks', then add multiple tracks each with source type (File or URL), and corresponding file path or URL plus optional title and artist.