Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add resume command to ChannelManager #3

Merged
merged 1 commit into from Sep 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/StarDust.CasparCg.net.Device/Manager/ChannelManager.cs
Expand Up @@ -244,6 +244,25 @@ public virtual bool Pause(uint videoLayer)
return _amcpTcpParser.SendCommand($"{AMCPCommand.PAUSE.ToAmcpValue()} {ID}-{videoLayer}");
}

/// <summary>
/// Resume playout for channel layer 0
/// </summary>
/// <returns></returns>
public virtual bool Resume()
{
return _amcpTcpParser.SendCommand($"{AMCPCommand.RESUME.ToAmcpValue()} {ID}");
}

/// <summary>
/// Resume playout for the given layer
/// </summary>
/// <param name="videoLayer"></param>
/// <returns></returns>
public virtual bool Resume(uint videoLayer)
{
return _amcpTcpParser.SendCommand($"{AMCPCommand.RESUME.ToAmcpValue()} {ID}-{videoLayer}");
}

/// <summary>
/// Stop playout on the layer 0.
/// </summary>
Expand Down