A recent version of Node.js is needed to build the library.
npm install
npm run buildWe provide some examples to see how to integrate the player in a web page.
To host them locally we suggest to use http-server :
http-server . -p 8081 -C <path to cert.pem> -K <path to key.pem> -SThen open playback-webrtc-middle.html, this example use:
- WebRTC first if possible,
getAwmMiddleMonitor()to implement ABR switchingforceTrackto force the first track selection to the selected bitrate (here 250000) You can add query options to change thehostandstreamNamelike this :
https://localhost:8081/examples/playback-webrtc-middle.html?host=fly.live.ceeblue.tv:4433&stream=out+de1e6f7c-e5db-450b-9603-c3644274779b