Skip to content

ScriptYouTubePlayer loads iframes of all videos on page, if one is clicked. #339

Open
@codeflorist

Description

🐛 The bug

When there are multiple ScriptYouTubePlayer instances on a page, clicking on a single video will swap the preview-images of all instances with the iframes.

🛠️ To reproduce

https://stackblitz.com/edit/nuxt-starter-kq6qv7el?file=app.vue

🌈 Expected behavior

I would expect, that only the video, that was clicked on gets loaded and the other instances remain untouched (keep their preview images).

ℹ️ Additional context

No response

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