bartbutenaers / node-red-dashboard-2-ui-video

A Node-RED node for playing video in dashboard D2
Apache License 2.0
1 stars 0 forks source link

Dynamically change the HLS config #6

Open bartbutenaers opened 2 months ago

bartbutenaers commented 2 months ago

It would be nice to be able to change the HLS config dynamically via msg.ui_update.hlsConfig. Whilst that would work similar to the other dynamic properties, there is a big difference: the HLS player is being created in the mounted event when the widget is being created, and then the initial HLS settings are set. So we need to override these intial settings afterwards.

Not sure yet if we can live override the settings, or we need to destroy the old player and create a new one.

bartbutenaers commented 2 months ago

Some remarks:

joepavitt commented 1 month ago

Based on your own notes, I would suggest destroy/re-build is appropriate here