Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions TestClient/MainWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions TestClient/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,7 @@ private void btnBrowse_Click(object sender, EventArgs e)

private void btnSetPath_Click(object sender, EventArgs e)
{
// TODO: Need a method here, or the button must be removed
//obs.SetRecordingFolder(tbFolderPath.Text);
obs.SetRecordDirectory(tbFolderPath.Text);
}

private void onVirtualCamStateChanged(object sender, VirtualcamStateChangedEventArgs args)
Expand Down
16 changes: 16 additions & 0 deletions obs-websocket-dotnet/OBSWebsocket_Requests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2152,5 +2152,21 @@ public void OpenVideoMixProjector(string videoMixType, string projectorGeometry,

SendRequest(nameof(OpenVideoMixProjector), request);
}


/// <summary>
/// Sets the current directory that the record output writes files to.
/// </summary>
/// <param name="recordDirectory">Output directory</param>
public void SetRecordDirectory(string recordDirectory)
{
var requestFields = new JObject
{
{ nameof(recordDirectory), recordDirectory }
};

SendRequest(nameof(SetRecordDirectory), requestFields);
}

}
}