Create Stream Marker
Trigger creation of a Stream Marker on Twitch

Create Stream Marker Dialog
You can use this to signify an important event, or as a reminder for a point in the stream you'd like to review in your VOD at a later time.
Stream Markers are only available if you have VODs enabled on your channel!
Parameters
Description
Text
Write the description of your Stream Marker
Variables
Name | Type | Description |
---|---|---|
Example Value: 01.01.0001 00:00:00 Time when the marker was set | ||
Example Value: This is a test marker Description which was used for the marker | ||
Example Value: 8d25fc8f611f8aa57ae1eac3ad4b9c99 Id of the marker | ||
Example Value: 42 Position of the marker in the vod in seconds | ||
Example Value: True/False The status of the sub-action request | ||
Variables generated by all triggers and available within all action executions. |
C# Usage
Create a Stream Marker on Twitch
public StreamMarker CreateStreamMarker(string description)
descriptionstring required
using System; //must also add netstandard.dll in Find References tab
using Twitch.Common.Models.Api; //Needed for StreamMarker Type
public class CPHInline
{
public bool Execute()
{
//Get input from command for marker
CPH.TryGetArg("rawInput",out string description);
//Create marker
StreamMarker markerInfo = CPH.CreateStreamMarker(description);
//Access stream marker info
//Get when marker was created
DateTime createdAt = markerInfo.CreatedAt;
//Get Marker position in seconds
int position = markerInfo.Position;
//Get marker description
string markerDesc = markerInfo.Description;
return true;
}
}