Upgrade to Pro — share decks privately, control downloads, hide ads and more …

iOSDJ2025 - Stream Deck Plugin using Swift

Avatar for h.crane h.crane
September 19, 2025

iOSDJ2025 - Stream Deck Plugin using Swift

With Stream Deck, you can create custom plugins and register actions.
This time, I created a plugin in Swift to make it work like a device for DJs.

Avatar for h.crane

h.crane

September 19, 2025
Tweet

More Decks by h.crane

Other Decks in Technology

Transcript

  1. Quate: https://www.elgato.com/jp/ja/p/stream-deck-plus USB PC Stream Deck App Application How Stream

    Deck works The Stream Deck commands are executed by the host app on the PC.
  2. PC Stream Deck App Action Application Action Action Plugin WebSocket

    HTTP, Socket, gRPC etc. How Stream Deck works Stream Deck App and Plugin communicate internally via WebSocket.
  3. Quate: https://github.com/elgatosf/streamdeck How to create a plugin The fastest way

    to create a plugin is by using the o ff i cial SDK. Note: However, it only supports TypeScript.
  4. How to create a plugin Typescript Javascript Node.js Transpile Quate:

    https://www.typescriptlang.org/branding/, https://github.com/voodootikigod/logo.js/, https://nodejs.org/en/about/resources/ Transpile TypeScript with Node and use JavaScript as the executable fi le.
  5. Stream Deck App Application Plugin Javascript How to create a

    plugin Quate: https://github.com/voodootikigod/logo.js/ The Stream Deck host application on the PC acts as the interpreter that runs the JavaScript code.
  6. How to create a plugin using Swift WebSocket Stream Deck

    App Plugin Application If WebSocket communication is implemented in Swift, a plugin can be created using Swift.
  7. How to create a plugin using Swift Quate: https://docs.elgato.com/streamdeck/sdk/guides/actions#handling-events Event

    Lifecycle Since various event cycles are available, 
 the task is simply to cover them.
  8. 0 1 2 3 1 How to create a plugin

    using Swift 0 1 2 3 0 1 2 3 Also, button coordinates can be obtained from Stream Deck.
  9. Mach-O Compile Quate: https://developer.apple.com/swift/, Swift swift build -c release How

    to create a plugin using Swift Swift code cannot be run directly, so it must be compiled into an executable using the Swift build command.
  10. How to create a plugin using Swift Stream Deck App

    Application Plugin Mach-O Additionally, other compiled languages can be used as plugins if they implement WebSocket protocol correctly and produce an executable.
  11. Stream Deck App Plugin DJ application Socket Server Sound Player

    Unix Domain Socket .
 . How DJ application works On Mac app side, it runs as a socket server while also implementing functions to control audio.
  12. How DJ application works - Network Framework - Foundation Stream

    - CFSocket - Darwin API Low High API Level - Darwin API Options for Socket Communication Socket Server
  13. How DJ application works Sound Player - AVAudioEngineɿ Controlling audio

    nodes - AVAudioNodeɿ Generates and effects sound The audio implementation uses AVFoundation APIs.
  14. How DJ application works Sound Player Loop Delay Reverb Flanger

    Isolator Pitch Rate Stutter Sound Effect Scratch