raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.21k stars 2.91k forks source link

[OBS Control] Toggle Virtual Camera erroring out on OBS 30.2.0 #13558

Closed drewfustin closed 1 month ago

drewfustin commented 1 month ago

Extension

https://www.raycast.com/Yukai/obs-control

Raycast Version

1.78.1

macOS Version

14.5

Description

Error:

Error: VirtualCam is not available.

ar.call:toggle-virtual-cam.js:11:10028
async Object.bn:toggle-virtual-cam.js:11:13485

Steps To Reproduce

  1. OBS Studio 30.2.0 (just updated this morning..) + OBS websocket 4.9.1
  2. Can start virtual camera manually in OBS app
  3. "Toggle Virtual Camera" command errors with log provided above

Current Behaviour

Raycast command "Toggle Virtual Camera" throws a "Something Went Wrong" screen.

Expected Behaviour

Raycast command "Toggle Virtual Camera" toggles the virtual camera in OBS on/off.

raycastbot commented 1 month ago

Thank you for opening this issue!

🔔 @Yukaii you might want to have a look.

💡 Author and Contributors commands The author and contributors of `Yukai/obs-control` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
j3lte commented 1 month ago

@drewfustin I wanted to dig into this issue, but it seems to work fine on my end. I have updated OBS to the latest version, but didn't download the obs-websocket package. Here's why:

obs-websocket is now included by default with OBS Studio 28.0.0 and above. As such, there should be no need to download obs-websocket if you have OBS Studio > 28.0.0.

As seen on the README.

Can you check it again when you have removed the websocket package? You can enable the native version in Tools -> WebSocket Server Settings

drewfustin commented 1 month ago

You're right -- that was it. Coupled with a restart, all is working again. Sorry for the spurious issue.