[Video] Refactor HLS logic (#5468)
* Extract HLS interop into useHLS
* Rename variable
* Move flushing outside an effect
* use continue instead of return
---------
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
authored by