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

Requests: Add SaveOutputScreenshot #1156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oleksandrpodran
Copy link

@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