Skip to content

Commit 7a69dfc

Browse files
committed
chore: docs
1 parent b5ab678 commit 7a69dfc

File tree

2 files changed

+72
-0
lines changed
  • packages/documentation/docs
    • for-developers/for-blueprint-developers
    • user-guide/installation/installing-a-gateway/rundown-or-newsroom-system-connection

2 files changed

+72
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# MOS Statuses
2+
3+
Sofie is able to report statuses back to stories and objects in the NRCS. This is driven by blueprints defining properties during Ingest.
4+
5+
:::tip
6+
For any statuses to be sent, this must be enabled on the gateway. There are some additional properties too, to limit what is sent. This is described in the [MOS Gateway Installation Guide]('../../../../user-guide/installation/installing-a-gateway/rundown-or-newsroom-system-connection/mos-gateway.md).
7+
:::
8+
9+
# Part Properties
10+
11+
All of these properties reside on the IBlueprintPart that are returned from `getSegment`.
12+
13+
```ts
14+
/** The externalId of the part as expected by the NRCS. If not set, the externalId property will be used */
15+
ingestNotifyPartExternalId?: string
16+
17+
/** Set to true if ingest-device should be notified when this part starts playing */
18+
shouldNotifyCurrentPlayingPart?: boolean
19+
20+
/** Whether part should be reported as ready to the ingest-device. Set to undefined/null to disable this reporting */
21+
ingestNotifyPartReady?: boolean | null
22+
23+
/** Report items as ready to the ingest-device. Only named items will be reported, using the boolean value provided */
24+
ingestNotifyItemsReady?: IngestPartNotifyItemReady[]
25+
```
26+
27+
## Examples
28+
29+
### Simple Statuses
30+
31+
For the most basic setup, of Sofie Reporting `PLAY` and `STOP` to the NRCS at activation and while playing a rundown you need to perform the following steps.
32+
33+
1. Enable the `Write Statuses to NRCS` setting in the MOS gateway setting
34+
1. For each part that should report `PLAY` and `STOP` statuses, set `shouldNotifyCurrentPlayingPart: true`.
35+
If your part `externalId` properties do not match the `externalId` of the NRCS data, you will need to set `ingestNotifyPartExternalId` to the NRCS `externalId`, so that the MOS gateway can match up the statuses to the NRCS data.
36+
37+
Optionally, you may also wish to report `READY` or `NOTREADY` statuses to the NRCS for any stories which have not been played or set as next. You can do this by setting `ingestNotifyPartReady`. A `true` value means `READY`, with `false` meaning `NOTREADY`. Leaving it unset or `undefined` will skip reporting these statuses.
38+
39+
### MOS Item Statuses
40+
41+
You can also report statuses for MOS items if needed. These can be set based on Package Manager statuses, as they can trigger the ingest of a part to be rerun. With this you can build status reporting based on whether clips are ready for playout.
42+
43+
Because Sofie Pieces rarely map 1:1 with MOS items, these statuses are not done via pieces, but instead the `ingestNotifyItemsReady` is used.
44+
This property is a simple array of:
45+
46+
```ts
47+
export interface IngestPartNotifyItemReady {
48+
externalId: string
49+
ready: boolean
50+
}
51+
```
52+
53+
Only items which are present in this array will have statuses reported.

packages/documentation/docs/user-guide/installation/installing-a-gateway/rundown-or-newsroom-system-connection/mos-gateway.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,22 @@ You can activate the profile by setting `COMPOSE_PROFILES=mos-gateway` as an env
1111
Development of the MOS gateway is done as a package in the [sofie-core repository on GitHub](https://github.com/nrkno/sofie-core/tree/master/packages/mos-gateway).
1212

1313
One thing to note if managing the mos-gateway manually: It needs a few ports open \(10540, 10541\) for MOS-messages to be pushed to it from the NCS.
14+
15+
## Status Reporting
16+
17+
:::warning
18+
Behaviour of this has changed In R53 as part of expanding the reporting ability.
19+
If you were using this prior to that change, you can restore previous behaviour by enabling `Write Statuses to NRCS` and `Only send PLAY statuses` in the MOS gateway settings.
20+
:::
21+
22+
Sofie is able to report statuses back to stories and objects in the NRCS. It does this by having the blueprints define some properties on the Part during ingest, and the mos-gateway to consolidate this and send messages.
23+
24+
:::tip
25+
This functionality requires blueprints which set some properties to enable the various states and behaviours. You can read more about that in the [developer guide](../../../../for-developers/for-blueprint-developers/mos-statuses.md)
26+
:::
27+
28+
### Gateway settings
29+
30+
- `Write Statuses to NRCS` - This is the core setting that must be enabled for any statuses to be checked or sent.
31+
- `Send when in Rehearsal mode` - By default statuses are not reported when in rehearsal mode.
32+
- `Only send PLAY statuses` - In some environments it can be desirable to only send `PLAY` messages and not `STOP`. Enabling this will stop Sofie from sending anything other than `PLAY`

0 commit comments

Comments
 (0)