
dash-shaka-playback
A clappr playback to play dash based on shaka-player.
CDN: https://cdn.jsdelivr.net/clappr.dash-shaka-playback/latest/dash-shaka-playback.js
NPM: https://www.npmjs.com/package/dash-shaka-playback/

Usage
<html>
<head>
<script src="https://cdn.jsdelivr.net/clappr/latest/clappr.min.js"></script>
<script src="https://cdn.jsdelivr.net/clappr.dash-shaka-playback/latest/dash-shaka-playback.js"></script>
</head>
<body>
<div id="player"></div>
<script>
var player = new Clappr.Player(
{
source: 'https://shaka-player-demo.appspot.com/assets/angel_one.mpd?_=1446383792251',
plugins: {
playback: [DashShakaPlayback]
},
parentId: '#player'
});
</script>
</body>
</html>
Development
Install dependencies:
npm install
Build:
npm run build
Run:
npm start
This playback offers you an API for handling with: audio, video and text tracks.
enableTextTrack(state)
textTracks()
selectTextTrack(id)
audioTracks()
selectAudioTrack(id)
videoTracks()
selectVideoTrack(id)
observations
This playback supports the browsers that shaka does and it also has the same content restrictions.