From b568c8b08256042acece270f88d9c1bddeebe750 Mon Sep 17 00:00:00 2001 From: Simon Ziegler Date: Thu, 25 Apr 2024 13:34:02 +0200 Subject: [PATCH] added html-functions to CasparCG-class --- src/CasparCG.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/CasparCG.ts b/src/CasparCG.ts index 27322908..10127515 100644 --- a/src/CasparCG.ts +++ b/src/CasparCG.ts @@ -84,6 +84,8 @@ import { CommitParameters, DiscardParameters, CustomCommandParameters, + PlayHtmlParameters, + LoadbgHtmlParameters, } from './parameters' export class CasparCG extends BasicCasparCGAPI { @@ -93,6 +95,12 @@ export class CasparCG extends BasicCasparCGAPI { params, }) } + async loadbgHtml(params: LoadbgHtmlParameters): Promise> { + return this.executeCommand({ + command: Commands.LoadbgHtml, + params, + }) + } async load(params: LoadParameters): Promise> { return this.executeCommand({ command: Commands.Load, @@ -105,6 +113,12 @@ export class CasparCG extends BasicCasparCGAPI { params, }) } + async playHtml(params: PlayHtmlParameters): Promise> { + return this.executeCommand({ + command: Commands.PlayHtml, + params, + }) + } async pause(params: PauseParameters): Promise> { return this.executeCommand({ command: Commands.Pause,