Web SDK (incl. UX)

Getting Started

3min

The easiest and quickest way to get started is to integrate one of the existing event experiences.

Event-specific experiences are importing the core and connecting any UI to the playback business logic and each available event experience has it's own npm package that can be installed and integrated in your web app.

Using the Default EXP

The Default EXP is a simple experience containing the main playback features, as well as the camera selection. It does not contain any event specific data integrations.

  1. Install the @nativewaves/exp-default and @nativewaves/exp-core packages using the JS package manager of your choice. (npm install --save @nativewaves/exp-core @nativewaves/exp-default)
  2. Install @tanstack/react-query (^4.36) and wrap your App with <QueryClientProvider>. (see https://tanstack.com/query/latest/docs/framework/react/overview)
  3. Install react-router-dom (>=6) and wrap your App with <BrowserRouter> or <MemoryRouter>. (see https://reactrouter.com/)
  4. Use the <ExperienceBaseStandalone> component in your application.
    1. make sure it is wraped with the <PlaybackContainer> component to provide it with the needed contexts.

Full Example

TypeScript


Properties:

Name

Description

Example

manifestId

The EXP manifest id provided by the console

kt9gxxav4k9znx8q

envType

The enviroment the manifest can be found

prod

routePath

The subpath the EXP is using (react-router)

/exp/default

The same steps can be applied when integrating any of the other existing experiences.

Using the Core library

When you want to create your own experiences you can also do that by importing our core package and developing your own UI.

Please check out the Custom Experiences using Core section for more information.