Comments (4)
Would there be a possibility for a work-around where there's basically a "title" field but provided by the plugin?
Yes, and no.
Background
In the form of buttons, the SDK allows plug-ins to control two graphical things;
setImage
- Sets the icon of the action; this call is ignored if the user has specified an image in the Stream Deck application.setTitle
- Sets the title of the action; this call is ignored if the user has specified a title in the Stream Deck application.
Question at hand
With this knowledge, going back to your question: the plug-in could...
- Offer a text input that prompted the user for a "custom" title.
- Generate a new icon using the action's default icon, and the "custom" title.
- Call
setImage
with this generated icon that includes the "custom" title stamped into it.
This sadly means that users wouldn't be able to assign custom icons themselves, and we enter a similar problem that we did with setTitle
.
Future
Excitingly, with the release of the Stream Deck+, the SDK introduces the concept of "layouts", where plug-ins have much greater flexibility with how an action can be graphically represented by the plug-in. At this time, layouts are only available as part of the SD+'s touch screen. Moving forwards, I'm hopeful that they layouts will be available for standard "button" actions; should that happen, I'll look into this further! 🤞
from sounddeck.
Hey @SmartASCII, good news, this is currently available! There's a small caveat though, it does require the title field to be empty. Sadly this is a design feature that's enforced by the Stream Deck SDK, whereby the user-specified title takes precedent over the plug-ins preferred title.
If you set the title of the action to be empty, it should display the remaining time for the current audio file being played, like so:
from sounddeck.
Yuck, that's quite a restrictive caveat! I wish they'd allow it to function like their built-in sound board action.
Would there be a possibility for a work-around where there's basically a "title" field but provided by the plugin? That way you're not overriding the system-defined "user title", but just another field given by the plugin itself?
It's not a perfect solution, but it's not as messy as making me create 100+ icons with sound names on them 😁
from sounddeck.
Thanks for the detailed explanation!
from sounddeck.
Related Issues (20)
- Repeat Sound every X seconds HOT 3
- Show audio stop event in SoundDeck.log HOT 2
- Suggestion: Keep Sampler audio length the same or Specific length HOT 2
- Select a microphone on the Sampler Playback device HOT 1
- Allow the Clip Audio to clip custom durations HOT 1
- "Play Audio" function not working after update HOT 8
- Clipped audio doesn't exist HOT 2
- Windows 11 not showing audio devices (dropdown empty) HOT 7
- set app audio device HOT 3
- Question: sampler through my mic HOT 2
- Some trimming features
- Set Audio Device Volume No Longer Targets Specific Device HOT 7
- Dial support doesn't seem to work HOT 5
- Not work for me for some reason at all
- Pause audio recording
- Cant solve ! on stream deck plus
- Custom Playback Lenght
- Dial click no longer working after update to Stream Deck software v6.6.0 HOT 4
- Not Playing back sound
- Audio clips are always a minute long, regardless of recording duration.
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 sounddeck.