Skip to content

Commit

Permalink
Merge pull request #207 from z1glr/feat/html-producer
Browse files Browse the repository at this point in the history
Functions for HTML-producers
  • Loading branch information
mint-dewit authored May 7, 2024
2 parents 23103b2 + b568c8b commit b20fa46
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/CasparCG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ import {
CommitParameters,
DiscardParameters,
CustomCommandParameters,
PlayHtmlParameters,
LoadbgHtmlParameters,
} from './parameters'

export class CasparCG extends BasicCasparCGAPI {
Expand All @@ -93,6 +95,12 @@ export class CasparCG extends BasicCasparCGAPI {
params,
})
}
async loadbgHtml(params: LoadbgHtmlParameters): Promise<APIRequest<Commands.LoadbgHtml>> {
return this.executeCommand({
command: Commands.LoadbgHtml,
params,
})
}
async load(params: LoadParameters): Promise<APIRequest<Commands.Load>> {
return this.executeCommand({
command: Commands.Load,
Expand All @@ -105,6 +113,12 @@ export class CasparCG extends BasicCasparCGAPI {
params,
})
}
async playHtml(params: PlayHtmlParameters): Promise<APIRequest<Commands.PlayHtml>> {
return this.executeCommand({
command: Commands.PlayHtml,
params,
})
}
async pause(params: PauseParameters): Promise<APIRequest<Commands.Pause>> {
return this.executeCommand({
command: Commands.Pause,
Expand Down

0 comments on commit b20fa46

Please sign in to comment.