You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
π 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).
π 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)