Skip to content

Commit c7a39cf

Browse files
committed
chore: docs
1 parent 16250b8 commit c7a39cf

File tree

1 file changed

+93
-1
lines changed

1 file changed

+93
-1
lines changed
Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,122 @@
1+
/**
2+
* The possible statuses of a Package/media object status that can be translated.
3+
* In all cases the following strings will be available in the translation context, some keys add additional context:
4+
* - sourceLayer: The name of the source layer
5+
* - pieceName: The name of the piece the package belongs to
6+
* - fileName: The name of the file
7+
* - containerLabels: The labels of the container(s) that report this status
8+
*
9+
* For statuses not reported by Package Manager, the `containerLabels` will be an empty string.
10+
*/
111
export enum PackageStatusMessage {
212
// Media Manager
13+
/**
14+
* The File Path is missing
15+
* Note: Only used for Media Manager flow
16+
* The `fileName` property will always be an empty string
17+
*/
318
MISSING_FILE_PATH = 'MISSING_FILE_PATH',
19+
/**
20+
* The file is not yet ready on the playout system
21+
* Note: Only used for Media Manager flow
22+
*/
423
FILE_NOT_YET_READY_ON_PLAYOUT_SYSTEM = 'FILE_NOT_YET_READY_ON_PLAYOUT_SYSTEM',
24+
/**
25+
* The file is being ingested
26+
* Note: Only used for Media Manager flow
27+
*/
528
FILE_IS_BEING_INGESTED = 'FILE_IS_BEING_INGESTED',
29+
/**
30+
* The file is missing
31+
* Note: Only used for Media Manager flow
32+
*/
633
FILE_IS_MISSING = 'FILE_IS_MISSING',
734

835
// Package manager
36+
/**
37+
* The file can't be found on the playout system
38+
*/
939
FILE_CANT_BE_FOUND_ON_PLAYOUT_SYSTEM = 'FILE_CANT_BE_FOUND_ON_PLAYOUT_SYSTEM',
40+
/**
41+
* The file exists, but is not yet ready on the playout system
42+
* This has an extra `reason` property in the translation context, provided by the Package Manager
43+
*/
1044
FILE_EXISTS_BUT_IS_NOT_READY_ON_PLAYOUT_SYSTEM = 'FILE_EXISTS_BUT_IS_NOT_READY_ON_PLAYOUT_SYSTEM',
45+
/**
46+
* The file is in a placeholder state for an unknown workflow-defined reason
47+
* This is typically replaced by a more speific message provided by the Package Manager
48+
*/
1149
FILE_IS_IN_PLACEHOLDER_STATE = 'FILE_IS_IN_PLACEHOLDER_STATE',
50+
/**
51+
* The file is transferring to the playout system
52+
*/
1253
FILE_IS_TRANSFERRING_TO_PLAYOUT_SYSTEM = 'FILE_IS_TRANSFERRING_TO_PLAYOUT_SYSTEM',
54+
/**
55+
* The file is transferring to the playout system but cannot be played yet
56+
*/
1357
FILE_IS_TRANSFERRING_TO_PLAYOUT_SYSTEM_NOT_READY = 'FILE_IS_TRANSFERRING_TO_PLAYOUT_SYSTEM_NOT_READY',
58+
/**
59+
* The file is in an unknown state
60+
* This has an extra `status` property in the translation context, for the unhandled state.
61+
* Seeing this message means the Sofie code is missing handling this status, and is a bug or indicates mismatched versions.
62+
*/
1463
FILE_IS_IN_UNKNOWN_STATE = 'FILE_IS_IN_UNKNOWN_STATE',
1564

16-
// Common?
65+
// Common
66+
/**
67+
* The file doesn't have both audio and video streams
68+
*/
1769
FILE_DOESNT_HAVE_BOTH_VIDEO_AND_AUDIO = 'FILE_DOESNT_HAVE_BOTH_VIDEO_AND_AUDIO',
70+
/**
71+
* The file has the wrong format
72+
* This has an extra `format` property in the translation context, a user friendly representation of the scanned format
73+
*/
1874
FILE_HAS_WRONG_FORMAT = 'FILE_HAS_WRONG_FORMAT',
75+
/**
76+
* The file has the wrong number of audio streams
77+
* This has an extra `audioStreams` property in the translation context, the number of audio streams found in the file
78+
*/
1979
FILE_HAS_WRONG_AUDIO_STREAMS = 'FILE_HAS_WRONG_AUDIO_STREAMS',
2080

81+
/**
82+
* The clip starts with black frames
83+
* This has extra `frames` and `seconds` properties in the translation context, describing the duration of the black region
84+
*/
2185
CLIP_STARTS_WITH_BLACK_FRAMES = 'CLIP_STARTS_WITH_BLACK_FRAMES',
86+
/**
87+
* The clip ends with black frames
88+
* This has extra `frames` and `seconds` properties in the translation context, describing the duration of the black region
89+
*/
2290
CLIP_ENDS_WITH_BLACK_FRAMES = 'CLIP_ENDS_WITH_BLACK_FRAMES',
91+
/**
92+
* The clip has a single region of black frames
93+
* This has extra `frames` and `seconds` properties in the translation context, describing the duration of the black region
94+
*/
2395
CLIP_HAS_SINGLE_BLACK_FRAMES_REGION = 'CLIP_HAS_SINGLE_BLACK_FRAMES_REGION',
96+
/**
97+
* The clip has multiple regions of black frames
98+
* This has extra `frames` and `seconds` properties in the translation context, describing the total duration of all black regions
99+
*/
24100
CLIP_HAS_MULTIPLE_BLACK_FRAMES_REGIONS = 'CLIP_HAS_MULTIPLE_BLACK_FRAMES_REGIONS',
25101

102+
/**
103+
* The clip starts with freeze frames
104+
* This has extra `frames` and `seconds` properties in the translation context, describing the duration of the freeze region
105+
*/
26106
CLIP_STARTS_WITH_FREEZE_FRAMES = 'CLIP_STARTS_WITH_FREEZE_FRAMES',
107+
/**
108+
* The clip ends with freeze frames
109+
* This has extra `frames` and `seconds` properties in the translation context, describing the duration of the freeze region
110+
*/
27111
CLIP_ENDS_WITH_FREEZE_FRAMES = 'CLIP_ENDS_WITH_FREEZE_FRAMES',
112+
/**
113+
* The clip has a single region of freeze frames
114+
* This has extra `frames` and `seconds` properties in the translation context, describing the duration of the freeze region
115+
*/
28116
CLIP_HAS_SINGLE_FREEZE_FRAMES_REGION = 'CLIP_HAS_SINGLE_FREEZE_FRAMES_REGION',
117+
/**
118+
* The clip has multiple regions of freeze frames
119+
* This has extra `frames` and `seconds` properties in the translation context, describing the total duration of all freeze regions
120+
*/
29121
CLIP_HAS_MULTIPLE_FREEZE_FRAMES_REGIONS = 'CLIP_HAS_MULTIPLE_FREEZE_FRAMES_REGIONS',
30122
}

0 commit comments

Comments
 (0)