@maas/vue-equipment 0.20.0 → 0.20.1

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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment/nuxt",
3
3
  "configKey": "vueEquipment",
4
- "version": "0.19.1"
4
+ "version": "0.20.0"
5
5
  }
@@ -21,7 +21,7 @@
21
21
  </template>
22
22
 
23
23
  <script setup lang="ts">
24
- import { ref, computed } from 'vue'
24
+ import { ref, computed, onMounted } from 'vue'
25
25
  import { useIntersectionObserver } from '@vueuse/core'
26
26
  import { usePlayerApi } from '../composables/usePlayerApi'
27
27
 
@@ -56,7 +56,7 @@ const { instance } = usePlayerApi({
56
56
  src: props.src,
57
57
  })
58
58
 
59
- const { playing } = instance.value?.mediaApi
59
+ const { playing, muted } = instance.value?.mediaApi
60
60
  const { touched } = instance.value?.playerApi
61
61
  const { onMouseenter, onMouseleave } = instance.value?.playerApi
62
62
  const { loaded } = instance.value?.runtimeProvider
@@ -72,7 +72,7 @@ useIntersectionObserver(
72
72
  },
73
73
  {
74
74
  immediate: true,
75
- },
75
+ }
76
76
  )
77
77
 
78
78
  const computedRatio = computed(() => {
@@ -92,6 +92,12 @@ const computedStyle = computed(() => {
92
92
  : undefined,
93
93
  }
94
94
  })
95
+
96
+ onMounted(() => {
97
+ if (props.autoplay) {
98
+ muted.value = true
99
+ }
100
+ })
95
101
  </script>
96
102
 
97
103
  <style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maas/vue-equipment",
3
3
  "description": "A magic collection of Vue composables, plugins, components and directives",
4
- "version": "0.20.0",
4
+ "version": "0.20.1",
5
5
  "author": "Robin Scholz <https://github.com/robinscholz>, Christoph Jeworutzki <https://github.com/ChristophJeworutzki>",
6
6
  "devDependencies": {
7
7
  "@antfu/ni": "^0.21.12",