@grfzhl/vue-hls-player 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -188,6 +188,8 @@ onMounted(() => {
188
188
 
189
189
  if (mediaTheme && mediaTheme.shadowRoot) {
190
190
  const fullscreenButton = mediaTheme.shadowRoot.querySelector('media-fullscreen-button');
191
+ const playbackRateButton = mediaTheme.shadowRoot.querySelector('media-playback-rate-menu');
192
+ playbackRateButton.setAttribute('rates', '0.25 0.5 0.75 1 1.5 2 3');
191
193
  if (fullscreenButton) {
192
194
  fullscreenButton.handleClick = async (event) => {
193
195
  event.preventDefault();
@@ -289,7 +291,7 @@ function toggleTranscript() {
289
291
 
290
292
  function seekVideo(time) {
291
293
  video.value.currentTime = time;
292
- video.play()
294
+ video.value.play()
293
295
  }
294
296
 
295
297
  function prepareVideoPlayer() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grfzhl/vue-hls-player",
3
3
  "private": false,
4
- "version": "1.0.16",
4
+ "version": "1.0.18",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"