Skip to content

v1.7.0

Compare
Choose a tag to compare
@MattiasBuelens MattiasBuelens released this 15 Feb 10:21
· 189 commits to main since this release

@theoplayer/web-ui

  • πŸš€ Added support for loading in Node for static site generation (SSG) or server-side rendering (SSR). (#50)
    • ⚠️ Although the Node entry point exports all custom element classes as usual, attempting to actually construct those classes will result in errors. Most dependencies are either replaced with stubs (using @lit-labs/ssr-dom-shim) or removed altogether (such as THEOplayer itself).
    • This should always be used together with an SSG or SSR solution. For example, you can use Open Video UI for React together with React server rendering.
  • πŸ› Fixed an issue where <theoplayer-ui> could throw an error when the player changes sources before all custom elements are properly registered. (#49)

@theoplayer/react-ui

  • πŸš€ Added support for loading in Node for static site generation (SSG) or server-side rendering (SSR). (#50)
    • This allows you to pass React components (such as <DefaultUI>, <UIContainer> or <PlayButton>) to the Server React DOM APIs, or to use them with a framework that supports SSG or SSR (such as Next.js, Remix or Gatsby).
    • ⚠️ The rendered HTML must still be hydrated on the client to load the Open Video UI properly. (Usually, this handled automatically by your React framework.)
  • πŸš€ Added utility hooks such as useCurrentTime(), usePaused() and useVolume(). (#51)