Skip to content

YouTube players break on client-side navigation #597

@cernymatej

Description

@cernymatej

🐛 The bug

When navigating to a page with a <ScriptYouTubePlayer /> from a page with a <ScriptYouTubePlayer />, all the components break and the video can never be played.

The navigation must happen before loading a player (clicking on it).

🛠️ To reproduce

https://stackblitz.com/edit/github-5lurdrz8?file=app%2Fpages%2Findex.vue

🌈 Expected behavior

The video player will load the script and start playing after clicking on it.

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions