To get started building a simple extension, we will modify the starter project to create a basic Panel Extension that lets a broadcaster set a “Message of the Day” for their viewers.
When the broadcaster activates the Muxy Live Dashboard, they see a text input box and button. They can enter some message text, and press the button to publish the message to all current viewers. Any new viewers who visit the channel will see the most recent message the broadcaster sent.
To create this functionality, we define two panel extensions, one for the viewer and one for the broadcaster.
- The Viewer Panel Extension subscribes to and displays the message to the viewer.
See the commented Viewer Panel code here
- The Broadcaster Live Dashboard Extension lets the broadcaster enter the text and publish the message.
See the commented Broadcaster Live Dashboard code here
These extensions are part of the MEDKit Hello World Example, defined by
live.html. In the MEDKit Starter project, these page source files would reside in the
Updated 2 months ago