Start Commercial
Runs on: Backend.
Starts an ad break on your channel. Twitch supports lengths of 30, 60, 90, 120, 150 or 180 seconds.
It needs the channel:edit:commercial scope. Only broadcasters or editors with the right permission can start commercials.
Inputs
| Name | Type | Description |
|---|---|---|
activate | any | Any signal that starts the commercial. |
duration | number | Length in seconds (30-180). Uses the inline field when not connected. |
Configuration
- Duration (inline): The length in seconds when the
Durationhandle isn't wired. Accepts 30-180 and is clamped to that range. Defaults to30.
Example
A !ad command for trusted moderators sends a signal to Start Commercial with a 60-second duration.