-
Notifications
You must be signed in to change notification settings - Fork 703
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
Migrate video settings to realm and remove video settings service. #5285
Conversation
BundleMonFiles updated (1)
Unchanged files (3)
Total files change -2.37KB -0.02% Final result: ✅ View report in BundleMon website ➡️ |
@@ -23,6 +24,9 @@ export default function DisplaySelector(p: IDisplaySelectorProps) { | |||
} = useGoLiveSettings(); | |||
|
|||
const setting = p.platform ? platforms[p.platform] : customDestinations[p.index]; | |||
const label = p.platform | |||
? platformLabels(p.platform) | |||
: (setting as ICustomStreamDestination).name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like we aren't referencing p.label anymore? should we just get rid of that prop?
|
||
const videoSettings = useRealmObject(Services.VideoService.state); | ||
const dualOutputMode = DualOutputService.views.dualOutputMode; | ||
const cantEditFields = StreamingService.views.isStreaming || StreamingService.views.isRecording; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont think these are reactive but also i dont think they'd change while this window is open so its probably ok
await this.gameOverlayService.destroy(); | ||
this.videoService.shutdown(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious about this change but not a blocker
this.videoService.setBaseResolution(this.data.baseResolutions); | ||
this.streamingService.setSelectiveRecording(!!this.data.selectiveRecording); | ||
this.streamingService.setDualOutputMode(this.data.dualOutputMode); | ||
this.videoService.setBaseResolution(this.data.baseResolutions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love to see the simplification here :D
|
||
return videoSettings; | ||
} catch (e: unknown) { | ||
console.warn('Error fetching video settings from video factory', e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a big deal but i think this error was copypasted from the above one
// const base = `${settings.baseWidth}x${settings.baseHeight}`; | ||
// const output = `${settings.outputWidth}x${settings.outputHeight}`; | ||
// } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this function is no longer used?
// const output = `${this.state.horizontal.video.outputWidth}x${this.state.horizontal.video.outputHeight}`; | ||
// this.settingsService.setSettingValue('Video', 'Output', output); | ||
// } | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
No description provided.