Skip to content

Requests: Add SaveOutputScreenshot#1156

Open
oleksandrpodran wants to merge 1 commit intoobsproject:masterfrom
oleksandrpodran:feature/save-output-screenshot
Open

Requests: Add SaveOutputScreenshot#1156
oleksandrpodran wants to merge 1 commit intoobsproject:masterfrom
oleksandrpodran:feature/save-output-screenshot

Conversation

@oleksandrpodran
Copy link
Copy Markdown

@oleksandrpodran oleksandrpodran commented Jul 24, 2023

Description

Adds a new request called SaveOutputScreenshot which takes a screenshot of the main OBS output.

Motivation and Context

I am currently developing a plugin that utilizes the OBS WebSocket Server. One of the essential
commands I need to include is the ability to capture an output screenshot. This command must be
made available in the OBS WebSocket Server.

How Has This Been Tested?

Tested OS(s): macOS Ventura 13.4.1
Testing method: Postman
After successfully connection, I send this command:

{
    "op": 6,
    "d": {
        "requestType": "SaveOutputScreenshot",
        "requestId": "19b2e224-67b8-470a-a216-fc0f6a87160e"
    }
}

Then I received responses:

{
    "d": {
        "requestId": "19b2e224-67b8-470a-a216-fc0f6a87160e",
        "requestStatus": {
            "code": 100,
            "result": true
        },
        "requestType": "SaveOutputScreenshot"
    },
    "op": 7
}
{
    "d": {
        "eventData": {
            "savedScreenshotPath": "/Users/oooooo/Movies/Screenshot 2023-07-24 15-52-42.png"
        },
        "eventIntent": 1024,
        "eventType": "ScreenshotSaved"
    },
    "op": 5
}

Types of changes

Checklist:

  • I have read the Contributing Guidelines.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • My code is not on master or a release/* branch.
  • The code has been tested.
  • I have included updates to all appropriate documentation.

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.

2 participants