rx-player icon indicating copy to clipboard operation
rx-player copied to clipboard

[DRAFT] Demo: store the settings in the url hash

Open Florent-Bouisset opened this issue 1 year ago • 1 comments

Storing the player settings in the url hash let us refresh the demo page while keeping all the settings previously set. It's more efficient and comfortable when debugging to not have to reset them manually after each page refresh.

To Do:

  • Add a switch/checkbox to disable/enable the storing in url OR let the RxPlayer logo be a tag with href with an empty hash allowing to reset.
  • Reloading a preset content will display it as a custom content, we can eventually improve that

Florent-Bouisset avatar Jan 05 '24 16:01 Florent-Bouisset

Add a switch/checkbox to disable/enable the storing in url OR let the RxPlayer logo be a tag with href with an empty hash allowing to reset.

I would advocate for both:

  • the switch would stop the URL from updating but keep it where it was. This would be useful when debugging settings you know are problematic, then playing with them, while being able to reset to the problematic scenario by just refreshing the page
  • the link would just reset to the default

peaBerberian avatar Jan 05 '24 17:01 peaBerberian