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

OBS refactoring (Sofie 2486) #316

Merged
merged 7 commits into from
Jan 9, 2024
Merged

Conversation

mint-dewit
Copy link
Contributor

  • Upgrades to obs-websocket-js v5 in order to gain compatibility with OBS 29+
  • Adds some extra options for controlling transforms and media

Currently using a github repo instead of the NPM package awaiting this PR obs-websocket-community-projects/obs-websocket-js#347

@mint-dewit mint-dewit requested a review from a team January 3, 2024 14:56
import _ = require('underscore')
import { OBSCommandWithContext, OBSCommandWithContextTyped } from '.'
import { OBSDeviceState, OBSScene, OBSSceneItem, OBSInputState } from './state'
import { OBSRequest as OBSRequestName } from 'timeline-state-resolver-types'
Copy link
Contributor

Choose a reason for hiding this comment

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

This rename is unnecessary (?)

@@ -1,35 +1,43 @@
import { DeviceType } from '..'

export enum OBSRequest {
Copy link
Contributor

Choose a reason for hiding this comment

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

This enum is only ever used in TSR, not externally. So we could move it into the TSR package instead.

(
While we're at it, add this comment as well:
/** values are derived from keyof OBSRequestTypes in obs-websocket-js */
)

@codecov-commenter
Copy link

codecov-commenter commented Jan 9, 2024

Codecov Report

Attention: 102 lines in your changes are missing coverage. Please review.

Comparison is base (23a7781) 46.76% compared to head (1d8120d) 48.59%.

Files Patch % Lines
...-state-resolver/src/integrations/obs/connection.ts 36.61% 40 Missing and 5 partials ⚠️
...meline-state-resolver/src/integrations/obs/diff.ts 77.19% 21 Missing and 5 partials ⚠️
...eline-state-resolver/src/integrations/obs/index.ts 50.00% 17 Missing and 2 partials ⚠️
...eline-state-resolver/src/integrations/obs/state.ts 87.95% 10 Missing ⚠️
...ges/timeline-state-resolver/src/service/devices.ts 33.33% 2 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           release51     #316      +/-   ##
=============================================
+ Coverage      46.76%   48.59%   +1.82%     
=============================================
  Files            110      113       +3     
  Lines           9956     9991      +35     
  Branches        2450     2478      +28     
=============================================
+ Hits            4656     4855     +199     
+ Misses          4823     4685     -138     
+ Partials         477      451      -26     

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

@mint-dewit mint-dewit force-pushed the SOFIE-2486-obs-refactoring branch from 4a3a4e9 to 2c20d0b Compare January 9, 2024 07:03
@mint-dewit mint-dewit merged commit 40968a3 into release51 Jan 9, 2024
36 checks passed
@mint-dewit mint-dewit deleted the SOFIE-2486-obs-refactoring branch January 9, 2024 08:28
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