Skip to content

Commit 50e7c55

Browse files
authored
Merge pull request Sofie-Automation#1510 from Sofie-Automation/fix/mos-profile4
Fix: Mos-Gateway Implement required callbacks for profile 4
2 parents 8fa8bcc + a5b497d commit 50e7c55

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/mos-gateway/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const config: Config = {
219219
'1': true,
220220
'2': true,
221221
'3': false,
222-
'4': false,
222+
'4': true,
223223
'5': false,
224224
'6': false,
225225
'7': false,

packages/mos-gateway/src/mosHandler.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,11 @@ export class MosHandler {
371371
// Profile 3: -------------------------------------------------
372372
// Profile 4: -------------------------------------------------
373373
// onStory: (cb: (story: IMOSROFullStory) => Promise<any>) => void
374+
mosDevice.onRequestAllRunningOrders(async () => {
375+
// MOSDevice >>>> Core
376+
// Not implemented, as Sofie does not support this feature.
377+
return []
378+
})
374379
mosDevice.onRunningOrderStory(async (story: IMOSROFullStory) => {
375380
// MOSDevice >>>> Core
376381
return this._getROAck(story.RunningOrderId, coreMosHandler.mosRoFullStory(story))

0 commit comments

Comments
 (0)