Skip to content

If containment set to a class, the video doesn't play #506

Description

@amichel86

Hello, if I set the "containment" parameter to a class, for exemple .banner the video won't load, but if I switch to an ID it works. Is this a bug? I want to be able to use multiple instances on the same page, so an ID is not ideal since it is dynamically outputted. I used your Vimeo plugin on another project and having a class in the containment parameter worked, so I guess it's not implemented in this one?

And by using only this code, if I have 4-5 .yt-player on the page, will they all start or I need a each statement to init them?

$(".yt-player").YTPlayer();

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions