C-sharp Stream Deck plugin development: Difference between revisions

From munkjensen.net/wiki
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
=== Description ===
=== Documentation for the StreamDeck Toolkit ===
 
* https://fritzandfriends.github.io/StreamDeckToolkit/articles/intro.html
* Stream Deck Toolkit - https://github.com/FritzAndFriends/StreamDeckToolkit
 
=== Video guide ===
Credits to the [https://www.youtube.com/c/NETFoundation .NET foundation] for the following demo.
Credits to the [https://www.youtube.com/c/NETFoundation .NET foundation] for the following demo.


Line 34: Line 39:
* Stream Deck - https://elgato.com/en/gaming/stream-deck
* Stream Deck - https://elgato.com/en/gaming/stream-deck
* Stream Deck SDK - https://developer.elgato.com/documentation/stream-deck/sdk/overview/
* Stream Deck SDK - https://developer.elgato.com/documentation/stream-deck/sdk/overview/
* Stream Deck Toolkit - https://github.com/FritzAndFriends/StreamDeckToolkit
* Stream Deck Emulator - https://github.com/FritzAndFriends/StreamDeckEmulator
* Stream Deck Emulator - https://github.com/FritzAndFriends/StreamDeckEmulator
* James Stream Timer - https://github.com/jamesmontemagno/MyStreamTimer
* James Stream Timer - https://github.com/jamesmontemagno/MyStreamTimer

Latest revision as of 20:27, 12 July 2022

Documentation for the StreamDeck Toolkit

Video guide

Credits to the .NET foundation for the following demo.

The Elgato Stream Deck has transformed live streaming, production, and general productivity. It is a nifty little box with customizable buttons that can do just about anything. Best of all, you can build custom plugins and extensions. Join James Montemagno as he walk through what the Elgato Stream Deck is, what it can do, and how you can build your first Plugin completely in C# and .NET!

StreamDeckToolkit is a Visual Studio template to help create plugins for the Elgato Stream Deck, using the Stream Deck SDK with Dotnet Core.

  1. Actual webinar starts at 16:36 with an explanation on what a Stream Deck is and how it works.
  2. Development talk starts around 32:14 with the Plugin UI as focus.
  3. UI elements (properties) are shown from 34:12
  4. Stream Deck architecture is explained from 36:11
  5. "Inside a Plugin" starts at 38:14
  6. "Events" starts at 40:14
  7. There is an "Emulator" that emulate keypresses and it is explained at 41:28
  8. Get Started with StreamDeckToolkit starts at 42:01
  9. "Create Project" --> 43:07
  10. Content "In the project" starts at 44:01 - Assets, Models, UI Css/HTML, Manifest & Action Code
  11. Let's do it - practical demo of a simple counter starts at 45:27
  12. The five important files are explained from 47:01 and forward
  13. The manifest.json file - 47:02
  14. The property.inspector.html file - 49:00
  15. The property-inspector.js file - 50.02
  16. The CounterSettingsModel.cs file - 51:09
  17. The MyPluginActions.cs file - 51:31
  18. First Build and Run of the demo Counter Plugin - 53:13
  19. Build events runs a PowerShell script that takes care of everything - 53:50
  20. Putting the plugin to use on the Stream Deck - 54:24
  21. Tapping the buton makes a bunch of things happen - 56:41
  22. Going beond the counter actions example starts at 57:53
  23. Making sure the events are beeing passed back and forth - 1:02:33
  24. Build the plugin again - 1:03:58
  25. Using the text file in OBS - 1:04:56
  26. So! - there you have it - Litterally just wrote a dot.net C# plugin for Stream Deck - 1:07:21

Resources