Closed PikeNote closed 1 year ago
Hello! I realize the interface is clumsy, but in order to differentiate several instances of the same display, window etc. in one recording, the ID in question is generated unique per source instance. In other words, you need to store a reference to the recording source you pass when starting a recording, then pass the ID of that recording source when changing dynamic options.
Thanks for the quick response! I can confirm the id from the stored DisplayRecordingSource worked. I had assumed since it was the main monitor that the ID would just stay consistent. I saw in the example ScreenRecorderTests that it used DisplayRecordingSource.MainMonitor
and DisplayRecordingSource.MainMonitor.ID
for the dynamic options builder and assumed it worked the same.
When trying to use the DynamicOptionsBuilder to modify if a capture source is enabled, I am unable to disable it.
I created a standard recorder with
new DisplayRecordingSource(DisplayRecordingSource.MainMonitor)
as the source. Later on in the code I used the following code to attempt to disable the source (black out the video for a duration) but the recorder keeps recording with the source on/visible in the final video output.Nothing is visible in the output logs other than the standard recorder starting.
Full options applied:
Only running a single setup display with a HP X27q