obs-websocket icon indicating copy to clipboard operation
obs-websocket copied to clipboard

Feature Request: Easy way to copy the obsws: URI to clipboard

Open Rosuav opened this issue 3 years ago • 8 comments

Feature Request Type

Settings Dialog

Feature Request Type (Other)

No response

Requested Feature

The QR code contains a simple encoding of all three crucial pieces of information (IP, port, password). It would be convenient to use this without an actual QR code reader, by simply allowing it to be copied to the clipboard just like the three individual components.

Requested Feature Usage Scenario

Any WS client that isn't connected to a phone will want to get this information. By making this easy to copy/paste, you can also de facto standardize on it being the single easiest way to configure a WS client, which will be more convenient for everyone.

Rosuav avatar Sep 23 '22 10:09 Rosuav

Note that qr code scanning isn't exclusive to phones, but I agree that there should be an easier way for any given program to be able to connect to obs-websocket. That's why I put together obsconnect, but I think an authorization prompt like that one should be added to obs-websocket as an alternative or replacement to password authorization, since a system like that could use unique tokens per authorized app that can then be revoked on a per-app basis.

sugoidogo avatar Oct 13 '22 06:10 sugoidogo

Indeed, it isn't, but if you have a web page for your remote control (very common), having it scan for a QR code on the screen requires getting permission to capture the screen - that's kinda a big deal. With a single copy/paste of the URI, it would be easy enough to transfer that information without needing any special permissions.

An authorization prompt is also an interesting option, though a larger change.

Rosuav avatar Oct 13 '22 06:10 Rosuav

Can I ask why asking for that permission is a big deal? I only tested OBS connect in Chrome but the access control was very fine-grained, to the point that the only thing that actually had to be shared was the window that shows the QR code, so it's not as if OBS connect could get any information beyond that or access the screen again without the user explicitly granting permission again.

sugoidogo avatar Oct 14 '22 00:10 sugoidogo

Last I checked, getting permission for screensharing required an extension. Has that changed?

Rosuav avatar Oct 14 '22 00:10 Rosuav

Also - it's not just about permissions. The URI can easily be shared in any way (with or without the associated password), as it's simple text. The QR code is less easy to share.

Rosuav avatar Oct 14 '22 00:10 Rosuav

Last I checked, getting permission for screensharing required an extension. Has that changed?

Yes, media capture APIs were added along with webrtc to facilitate standardized peer to peer video calling/screen sharing, which is how obsconnect works.

sugoidogo avatar Oct 14 '22 00:10 sugoidogo

Last I checked, getting permission for screensharing required an extension. Has that changed?

Yes, media APIs were added along with webrtc to facilitate standardized peer to peer video calling/screen sharing

Ah okay. Still, the ability to share on any textual communication channel is a very large piece of convenience, and doing that with a single URI rather than three separate pieces (host, port, and password) will definitely make things easier.

Rosuav avatar Oct 14 '22 00:10 Rosuav

Also - it's not just about permissions. The URI can easily be shared in any way (with or without the associated password), as it's simple text. The QR code is less easy to share.

I think that could be debated but I will agree that there are scenarios where copying the uri string to clipboard is easier than scanning it from the qr code

sugoidogo avatar Oct 14 '22 00:10 sugoidogo