oplayer-plugin-shaka
(opens in a new tab)
(opens in a new tab)
(opens in a new tab)
shaka-player (opens in a new tab) plugin for oplayer
Install
npm i @oplayer/shaka shaka-player
<script src="https://cdn.jsdelivr.net/npm/@oplayer/core@latest/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@oplayer/shaka@latest/dist/index.min.js"></script>
<div id="oplayer" />
<script>
OPlayer.make('#oplayer', {
source: {
src: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8',
poster: 'https://cdn.jsdelivr.net/gh/shiyiya/QI-ABSL@master/o/poster.png'
}
})
.use([
OShaka({
library: 'https://cdn.jsdelivr.net/npm/shaka-player@4.14.1/dist/shaka-player.compiled.min.js',
config: {
drm: {
clearKeys: {
xxxxxxxxxx: 'xxxxxxxxxxx'
}
}
}
})
])
.create()
</script>