This demo uses routing to show case how one can clear-up the video being previewed when routing to a different route inside a single page application. The application shows two routes:
- About: Just shows "About" as heading.
- "Home": When you come to "/home", your video gets previewed. When you move to "/about", you should no longer see a red icon or video being used issue.
Running Steps:
git clone https://github.com/devalevenkatesh/video-preview-only-js-sdk.git
cd video-preview-only-js-sdk
npm install
npm run start