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(vMix): add vMix input layers props and commands #331

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ianshade
Copy link
Contributor

About the Contributor

This PR is opened on behalf of TV 2 Norge.

Type of Contribution

This is a:

Feature

Current Behavior

Layer properties that can be set through the API since vMix 27 are not supported.

New Behavior

Introduces layers property on TimelineContentVMixInput. Deprecates the overlays (still functional).
The following properties/commands are now supported:

  • panX - SetLayer[1...10]PanX
  • panY - SetLayer[1...10]PanY
  • zoom - SetLayer[1...10]Zoom
  • cropLeft, cropTop, cropRight, cropBottom - SetLayer[1...10]Crop

Testing Instructions

Other Information

Status

  • PR is ready to be reviewed.
  • The functionality has been tested by the author.
  • Relevant unit tests has been added / updated.
  • Relevant documentation (code comments, system documentation) has been added / updated.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 83.14607% with 15 lines in your changes missing coverage. Please review.

Project coverage is 38.00%. Comparing base (c782645) to head (1bcf056).
Report is 1 commits behind head on master.

Files Patch % Lines
...line-state-resolver/src/integrations/vmix/index.ts 0.00% 6 Missing ⚠️
...-resolver/src/integrations/vmix/vMixStateDiffer.ts 80.64% 6 Missing ⚠️
...rc/integrations/vmix/vMixTimelineStateConverter.ts 33.33% 2 Missing ⚠️
...state-resolver/src/integrations/vmix/connection.ts 96.15% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #331      +/-   ##
==========================================
+ Coverage   37.58%   38.00%   +0.42%     
==========================================
  Files         106      106              
  Lines       10247    10308      +61     
  Branches     2452     2528      +76     
==========================================
+ Hits         3851     3918      +67     
+ Misses       6395     5843     -552     
- Partials        1      547     +546     

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

@jstarpl jstarpl requested a review from a team June 13, 2024 05:27
@@ -136,7 +138,7 @@ export class VMixTimelineStateConverter {
loop: content.loop,
position: content.seek,
transform: content.transform,
overlays: content.overlays,
layers: content.overlays ? this._convertDeprecatedInputOverlays(content.overlays) : content.layers,
Copy link
Member

Choose a reason for hiding this comment

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

If we are filling in both overlays and layers, it would be preferred to look at the layers property. The current behaviour is acceptable but should be documented as such.

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.

None yet

3 participants