Skip to content
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

feat: update atem-connection and atem-state SOFIE-2504 #289

Merged
merged 7 commits into from
Nov 16, 2023

Conversation

Julusian
Copy link
Member

@Julusian Julusian commented Sep 13, 2023

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

feature

  • What is the current behavior? (You can also link to an open issue here)

TSR is using v2.4 of atem-connection, this works perfectly for us, but is a little out of date. This means that when implementing new things, that ends up being done once for v3 and then backported (which sometimes results in almost completely rewriting the change from scratch)

  • What is the new behavior (if this is a feature change)?

This updates TSR to be using v3 of atem-connection. This includes the ability to control various additional areas of the atem (not yet exposed in TSR), and reworks some areas to be simpler or translate better to models released since v2.0 of atem-connection.

The updated atem-state allows for specifying what to diff. For now, this is setup to perform diffing which will match previous versions of TSR. In the future, we should work on making this dynamic based upon the mappings in the system, so that we only control resources which sofie blueprints/users have specified

  • Other information:

atem-connection is also a sofie nrkno project, but a large amount of v3 was contributed by the community (some of which is also part of the nrkno team, but not done on behalf of nrkno)

@Julusian Julusian marked this pull request as ready for review September 13, 2023 15:08
@Julusian Julusian requested a review from a team September 13, 2023 15:08
packages/timeline-state-resolver/package.json Outdated Show resolved Hide resolved
newAtemState.video.auxilliaries[i] = undefined
}
}
const diffOptions = createDiffOptions(mappings)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Should we add a device option for enabling/disabling partial control?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is currently intended to behave identically to previous versions of TSR in what it will control.
Long term, we should make this more configurable, but I don't want to do that as part of this PR.

@codecov-commenter
Copy link

codecov-commenter commented Sep 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7641cfa) 40.60% compared to head (7641cfa) 40.60%.

❗ Current head 7641cfa differs from pull request most recent head 3b8f5e2. Consider uploading reports for the commit 3b8f5e2 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           release51     #289   +/-   ##
==========================================
  Coverage      40.60%   40.60%           
==========================================
  Files            104      104           
  Lines           9957     9957           
  Branches        2453     2453           
==========================================
  Hits            4043     4043           
  Misses          5374     5374           
  Partials         540      540           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Julusian Julusian force-pushed the feat/update-atem-connection branch from b9ff5a0 to d36402b Compare September 28, 2023 11:56
@Julusian Julusian force-pushed the feat/update-atem-connection branch from bc81e7f to 20fe31e Compare November 16, 2023 10:49
Base automatically changed from chore/refactor-atem to release51 November 16, 2023 10:51
@Julusian Julusian force-pushed the feat/update-atem-connection branch from 20fe31e to 3b8f5e2 Compare November 16, 2023 10:55
@Julusian Julusian merged commit 10d1509 into release51 Nov 16, 2023
36 checks passed
@Julusian Julusian deleted the feat/update-atem-connection branch November 16, 2023 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants