I’ve implemented a player UI including some custom buttons. What, if need to trigger any functionality outside of the player context? Is there a way to eg. throw a custom event which may be handled from the application?
Examples
We’re having a button which allows the user to start another stream. Since this streams url needs to be fetched from an API first, i can’t/don’t want to do this call inside the custom button component.
There will be a button, which loads a listing of streams and show it in a sidebar in the application.
Hi,
If you instantiate the button within the player UI framework, I don’t think you can easily connect it to external actions. However, if you instantiate it like shown in the following example, you might be able to do so.
Please let us know in case you have any questions.