shakajs
v0.0.7
Published
Shaka Player component built for Vue
Downloads
422
Readme
shakajs
npm install shakajs
<script setup>
import { Shaka } from "shakajs"
</script>
<template>
<Shaka src="https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd"></Shaka>
</template>
<template>
<Shaka
src="https://storage.googleapis.com/shaka-demo-assets/angel-one-widevine/dash.mpd"
poster="https://storage.googleapis.com/shaka-asset-icons/angel_one.webp"
:autoplay="true"
:muted="false"
:loop="false"
:streaming='{
"lowLatencyMode": true,
"inaccurateManifestTolerance": 0,
"rebufferingGoal": 0.01,
}'
:drm='{
"servers": { "com.widevine.alpha": "https://cwip-shaka-proxy.appspot.com/no_auth" }
}'
:ui='{
"addSeekBar": false,
"controlPanelElements": ["play_pause", "time_and_duration", "spacer", "overflow_menu"],
"overflowMenuButtons": ["quality", "captions"]
}'
></Shaka>
</template>