Skip to content

Commit

Permalink
docs: const name in the useMedia example (#2024)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomelo committed Feb 24, 2023
1 parent c458bcb commit b390f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/cookbook/composables.md
Expand Up @@ -38,7 +38,7 @@ export const useVideoPlayer = defineStore('video', () => {
const videoElement = ref<HTMLVideoElement>()
const src = ref('/data/video.mp4')
const { playing, volume, currentTime, togglePictureInPicture } =
useMediaControls(video, { src })
useMediaControls(videoElement, { src })

function loadVideo(element: HTMLVideoElement, src: string) {
videoElement.value = element
Expand Down

0 comments on commit b390f18

Please sign in to comment.