Getting Started
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.
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.
- 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)
- Install react-router-dom (>=6) and wrap your App with <BrowserRouter> or <MemoryRouter>. (see https://reactrouter.com/)
- Use the <ExperienceBaseStandalone> component in your application.
- make sure it is wraped with the <PlaybackContainer> component to provide it with the needed contexts.
Full Example
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.
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.