|
| 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 | + */ |
1 | 11 | export enum PackageStatusMessage { |
2 | 12 | // 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 | + */ |
3 | 18 | 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 | + */ |
4 | 23 | 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 | + */ |
5 | 28 | FILE_IS_BEING_INGESTED = 'FILE_IS_BEING_INGESTED', |
| 29 | + /** |
| 30 | + * The file is missing |
| 31 | + * Note: Only used for Media Manager flow |
| 32 | + */ |
6 | 33 | FILE_IS_MISSING = 'FILE_IS_MISSING', |
7 | 34 |
|
8 | 35 | // Package manager |
| 36 | + /** |
| 37 | + * The file can't be found on the playout system |
| 38 | + */ |
9 | 39 | 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 | + */ |
10 | 44 | 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 | + */ |
11 | 49 | FILE_IS_IN_PLACEHOLDER_STATE = 'FILE_IS_IN_PLACEHOLDER_STATE', |
| 50 | + /** |
| 51 | + * The file is transferring to the playout system |
| 52 | + */ |
12 | 53 | 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 | + */ |
13 | 57 | 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 | + */ |
14 | 63 | FILE_IS_IN_UNKNOWN_STATE = 'FILE_IS_IN_UNKNOWN_STATE', |
15 | 64 |
|
16 | | - // Common? |
| 65 | + // Common |
| 66 | + /** |
| 67 | + * The file doesn't have both audio and video streams |
| 68 | + */ |
17 | 69 | 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 | + */ |
18 | 74 | 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 | + */ |
19 | 79 | FILE_HAS_WRONG_AUDIO_STREAMS = 'FILE_HAS_WRONG_AUDIO_STREAMS', |
20 | 80 |
|
| 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 | + */ |
21 | 85 | 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 | + */ |
22 | 90 | 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 | + */ |
23 | 95 | 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 | + */ |
24 | 100 | CLIP_HAS_MULTIPLE_BLACK_FRAMES_REGIONS = 'CLIP_HAS_MULTIPLE_BLACK_FRAMES_REGIONS', |
25 | 101 |
|
| 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 | + */ |
26 | 106 | 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 | + */ |
27 | 111 | 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 | + */ |
28 | 116 | 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 | + */ |
29 | 121 | CLIP_HAS_MULTIPLE_FREEZE_FRAMES_REGIONS = 'CLIP_HAS_MULTIPLE_FREEZE_FRAMES_REGIONS', |
30 | 122 | } |
0 commit comments