Comments (7)
I will try to do that on Monday because i'm currently not at home. And only got my Laptop with me.
from elgatowavelinksdk.
It seems that Wavelinks Websocket is not running correctly.
When I send Send.json it replys wtih Reply.json and does nothing.
Send.json
{
"jsonrpc": "2.0",
"method": "setInputMixer",
"params": {
"bgColor": "#B521FF",
"filters": [
{
"active": true,
"filterID": "9D156679-24B9-4BAF-A1A0-9442FD89C24B",
"name": "ReaComp (ReaPlugs Edition)",
"pluginID": "7265636d"
}
],
"iconData": "",
"inputType": 3,
"isAvailable": true,
"isLocalInMuted": false,
"isStreamInMuted": true,
"localMixFilterBypass": false,
"localVolumeIn": 30,
"mixId": "pcm_out_01_v_04_sd4",
"mixerName": "Browser",
"streamMixFilterBypass": false,
"streamVolumeIn": 30
}
}
Reply.json
{
"id": 0,
"jsonrpc": "2.0",
"result": {
"bgColor": "#B521FF",
"filters": [
{
"active": true,
"filterID": "9D156679-24B9-4BAF-A1A0-9442FD89C24B",
"name": "ReaComp (ReaPlugs Edition)",
"pluginID": "7265636d"
}
],
"iconData": "",
"inputType": 3,
"isAvailable": true,
"isLocalInMuted": false,
"isStreamInMuted": true,
"localMixFilterBypass": false,
"localVolumeIn": 100,
"mixId": "pcm_out_01_v_04_sd4",
"mixerName": "Browser",
"streamMixFilterBypass": false,
"streamVolumeIn": 100
}
}
from elgatowavelinksdk.
I tried to build the setInputMixer call out of the JS Plugin (call.json) then tried to send it via Postman and it crashed.
I think the Websocket function setInputMixer is broken..
call.json
{
"method": "setInputMixer",
{
"mixId": "pcm_out_01_v_04_sd4",
"slider": "local",
"localVolumeIn": 30,
"isLocalInMuted": true,
"streamVolumeIn": 30,
"isStreamInMuted": true,
"filters": [
{
"active": true,
"filterID": "9D156679-24B9-4BAF-A1A0-9442FD89C24B",
"name": "ReaComp (ReaPlugs Edition)",
"pluginID": "7265636d"
}
],
"localMixFilterBypass": false,
"streamMixFilterBypass": false
}
}
reference.js
setInputMixer(mixId, slider) {
this.mixers.forEach(mixer => {
if (mixer.mixerId == mixId) {
this.rpc.call("setInputMixer", {
"mixId": mixer.mixerId,
"slider": slider,
"localVolumeIn": mixer.localVolIn,
"isLocalInMuted": mixer.isLocalMuteIn,
"streamVolumeIn": mixer.streamVolIn,
"isStreamInMuted": mixer.isStreamMuteIn,
"filters": mixer.filters,
"localMixFilterBypass": mixer.localMixFilterBypass,
"streamMixFilterBypass": mixer.streamMixFilterBypass
}).then((result) => {
mixer.isAvailable = result["isAvailable"];
mixer.localVolIn = result["localVolumeIn"];
mixer.isLocalMuteIn = result["isLocalInMuted"];
mixer.streamVolIn = result["streamVolumeIn"];
mixer.isStreamMuteIn = result["isStreamInMuted"];
mixer.localMixFilterBypass = result["localMixFilterBypass"];
mixer.streamMixFilterBypass = result["streamMixFilterBypass"];
mixer.filters = result["filters"];
this.emit("inputMixerChanged", mixer.mixerId);
});
}
});
}
from elgatowavelinksdk.
Hey,
I can't get switchMonitoring or setInputMixer to act correctly,
I'd say we're sending something wrong rather than their websocket being broken seeing as the stream deck plugin works correctly.
So I'm assuming we're not sending the correct data and so the websocket is freaking out
I've recently moved country and I've still not fully setup my office, (Currently only using my work laptop) so I don't have my wave setup to test any of this probably.
I'll try have a look at this later next week
from elgatowavelinksdk.
Looking at the reply you're getting with an empty Id value, I'm guessing maybe we need to give it some sort of MessageId to keep track of replies??
Maybe try sending your send.json with a random Id, that might do something
from elgatowavelinksdk.
I tried sending an ID but that didn´t work.
from elgatowavelinksdk.
This has been fixed in the latest build, I'll be pushing it to NuGet once the pipeline completes
The issue was you have to pass through which mix you want to change
Ex. local vs stream, looking at the JS library there is a "all" option but I couldn't get that to work
So I'm only going to support that for now till I have the time to investigate it further
from elgatowavelinksdk.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elgatowavelinksdk.