Initial commit
This commit is contained in:
24
archive/components/KeyboardPlayHandler.vue
Normal file
24
archive/components/KeyboardPlayHandler.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<!-- eslint-disable vue/valid-template-root -->
|
||||
<template></template>
|
||||
<script>
|
||||
import { usePlayerControls } from '@/composables/usePlayerControls'
|
||||
|
||||
export default {
|
||||
name: 'AudioStateHandler',
|
||||
|
||||
watch: {
|
||||
playing (newValue) {
|
||||
this.$logger.log('Global playing state changed', newValue)
|
||||
}
|
||||
},
|
||||
|
||||
mounted () {
|
||||
// usePlayerControls().addSpaceListener()
|
||||
|
||||
// Set up MediaSession API
|
||||
if ('mediaSession' in navigator) {
|
||||
// usePlayerControls().addMediaControls()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Reference in New Issue
Block a user