Closed CommandMaker closed 1 year ago
exactly my current problem!
it says it takes a ObsMediaInputAction
enum but I cant seem to be able to import such enum to use it.
currently this code works:
obs.call("TriggerMediaInputAction", {
inputName: "media6",
mediaAction: "OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTART",
});
but looks ugly. I was expecting something like
obs.call("TriggerMediaInputAction", {
inputName: "media6",
mediaAction: ObsMediaInputAction.RESTART,
});
How do I import ObsMediaInputAction
to use? 🤔
I've found a few places where theres all the input actions:
You need to use the string version. ObsMediaInputAction
doesn’t exist in the lib. I’ll make a pr today to add it and fix another little problem
Description
There is no completion on the "TriggerMediaInputAction" mediaAction parameter (type-hinted as string). Add a list of possibilities would be easier when using this request (because the wanted string by OBS is something like this : "OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTART")