Streaming player for web player using shaka-player()
const options = {
onTimeUpdate: (duration) => void;
onDurationUpdate: (duration) => void;
}
const streamingPlayer = new StreamingPlayer('streaming-player-id', options);
streamingPlayer.play(url: string, serverUrl: string, token: string);
streamingPlayer.pause();
streamingPlayer.resume();
streamingPlayer.seek(time: number);
Flaka uses typescript.
git clone git@github.com:Rhapsody/flaka.git
cd flaka
yarn
For VS Code you should install eslint and prettier as an extension.