-
Notifications
You must be signed in to change notification settings - Fork 24
feat: NORA Core Device (SOFIE-1377) #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
jstarpl
wants to merge
11
commits into
release48
Choose a base branch
from
feat/noraDevice
base: release48
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e451a6e
7.5.0-release47.4
20a54f4
chore: update casparcg-state
4481625
7.5.0-release47.5
5dee681
feat: clone HTTPSend device, add Nora-specific settings and content (…
jstarpl 3e2c972
fix: tests
jstarpl b242e8d
feat: codify the NORA Core payload a bit more
jstarpl 2eed30f
fix: use NORA layers instead of Sofie layers for tracking state
jstarpl 2e7949a
chore: fix log
jstarpl 58b0c83
chore: remove comment
jstarpl 5057fd7
fix: move properties around
jstarpl d17012b
chore: doc
nytamin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "version": "7.5.0-release47.3", | ||
| "version": "7.5.0-release47.5", | ||
| "npmClient": "yarn", | ||
| "useWorkspaces": true | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| import { Mapping } from './mapping' | ||
| import { TSRTimelineObjBase, DeviceType, TimelineDatastoreReferencesContent } from '.' | ||
|
|
||
| export interface MappingNoraNRK extends Mapping { | ||
| device: DeviceType.NORA_NRK | ||
|
|
||
| group: string | ||
| groupSuffix?: string | ||
| channel: string | ||
| } | ||
|
|
||
| export enum TimelineContentTypeNoraNRK { | ||
| TEMPLATE = 'template', | ||
| LAYER = 'layer', | ||
| } | ||
|
|
||
| export interface NoraNRKCommandBase { | ||
| temporalPriority?: number // default: 0 | ||
| /** Commands in the same queue will be sent in order (will wait for the previous to finish before sending next */ | ||
| queueId?: string | ||
| } | ||
|
|
||
| export interface NoraNRKTemplateCommandContent extends NoraNRKCommandBase { | ||
| type: TimelineContentTypeNoraNRK.TEMPLATE | ||
| // The payload obejct is defined from the NORA API. | ||
| payload: { | ||
| manifest?: string | ||
| template: { | ||
| name: string | ||
| event: 'take' | 'takeout' | 'preview' | ||
| layer: string | ||
| [key: string]: string | number | any | ||
| } | ||
| [key: string]: string | number | any | ||
| } | ||
| } | ||
|
|
||
| export interface NoraNRKLayerCommandContent extends NoraNRKCommandBase { | ||
| type: TimelineContentTypeNoraNRK.LAYER | ||
| // The payload obejct is defined from the NORA API. | ||
| payload: { | ||
| template: { | ||
| event: 'takeout' | ||
| layer: string | ||
| } | ||
| } | ||
| } | ||
|
|
||
| type NoraNRKCommandContent = NoraNRKTemplateCommandContent | NoraNRKLayerCommandContent | ||
|
|
||
| export interface NoraNRKOptions { | ||
| // Base URL for relative urls | ||
| coreUrl?: string | ||
|
|
||
| // API Key to be added as a query argument ?apiKey= | ||
| apiKey?: string | ||
|
|
||
| makeReadyCommands?: NoraNRKCommandContent[] | ||
| /** Whether a makeReady should be treated as a reset of the device. It should be assumed clean, with the queue discarded, and state reapplied from empty */ | ||
| makeReadyDoesReset?: boolean | ||
|
|
||
| /** Minimum time in ms before a command is resent, set to <= 0 or undefined to disable */ | ||
| resendTime?: number | ||
| } | ||
|
|
||
| export type TimelineObjNoraNRKAny = TimelineObjNoraNRKRequest | ||
| export interface TimelineObjNoraNRKBase extends TSRTimelineObjBase { | ||
| content: { | ||
| deviceType: DeviceType.NORA_NRK | ||
| type: TimelineContentTypeNoraNRK | ||
| } | ||
| } | ||
| export interface TimelineObjNoraNRKRequest extends TimelineObjNoraNRKBase { | ||
| content: { | ||
| deviceType: DeviceType.NORA_NRK | ||
| } & NoraNRKCommandContent & | ||
| TimelineDatastoreReferencesContent | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.