diff --git a/lib/obsws/req.rb b/lib/obsws/req.rb index c97602b..2b33859 100644 --- a/lib/obsws/req.rb +++ b/lib/obsws/req.rb @@ -77,7 +77,10 @@ module OBSWS end def call_vendor_request(name, type_, data = nil) - call(requestType, requestData) + payload = { vendorName: name, requestType: type_ } + payload[:requestData] = data if data + resp = call("CallVendorRequest", payload) + Mixin::Response.new(resp, resp.keys) end def get_hotkey_list diff --git a/lib/obsws/version.rb b/lib/obsws/version.rb index 9cd2216..013e000 100644 --- a/lib/obsws/version.rb +++ b/lib/obsws/version.rb @@ -11,7 +11,7 @@ module OBSWS end def patch - 2 + 3 end def to_a