Skip to content

useMediaControls changing source has no effect #996

@KaliaJS

Description

@KaliaJS

I was wondering if it is normal that when the source changes there is no effect? Yet there is a watchEffect.

const src = ref('https://upload.wikimedia.org/wikipedia/commons/transcoded/a/a5/Spring_-_Blender_Open_Movie.webm/Spring_-_Blender_Open_Movie.webm.360p.vp9.webm')

const video = ref()
const { playing } = useMediaControls(video, { src: src.value })

onMounted(() => {
  setTimeout(() => {
    src.value = 'https://upload.wikimedia.org/wikipedia/commons/transcoded/f/f1/Sintel_movie_4K.webm/Sintel_movie_4K.webm.1080p.vp9.webm'
  }, 2000)
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions