This project is built with Lerna and contains the following packages:
millicast-sdk: The SDK itself.millicast-publisher-demo: Publisher demo page using SDK. You can try this demo here.millicast-viewer-demo: Viewer demo page using SDK.millicast-chromecast-receiver: Example of Google Cast receiver for demo.
Asumming that you have Node 12.10.x or newer and npm installed, install the required dependencies running:
npm ciAs the project is built using Lerna, we can rely on it to manage our packages dependencies, so you just need to run at project's root directory
npm run prepareNext, to build all packages add a .env file in both demo packages (millicast-publisher-demo, millicast-viewer-demo & millicast-chromecast-receiver). You can find the following example in .env.sample:
# Make a .env file with the following vars
MILLICAST_STREAM_NAME=test
MILLICAST_ACCOUNT_ID=test
MILLICAST_PUBLISH_TOKEN=testThen, build all packages:
npm run buildOptionally you can run other Lerna command using npx lerna [command].
If you want to add, fix or edit features in SDK, or just try our demo pages, run:
npm run startIt opens in your browser both demos and keep watching changes in all packages, so you only need to refresh both pages if you add changes in code.
The SDK documentation is written with JSDcos, so to build documentation to get HTMLs files run:
npx lerna run build-docsOr if you want to navigate docs in your localhost run:
npx lerna run start-docs --streamIn the logs you find the link where you can access to docs. By default is running at http://localhost:5000.