I don’t use HLS in widgets (never tried) but it should work even if you have to use a javascript player to handle it. See this post in particular and also the first post in the thread.
Clickable Camera Widget - Add-on Marketplace / UI Widgets - openHAB Community