Skip to content

Provide player custom IDs in the markup #16

@moniuch

Description

@moniuch

Currently the plugin assigns the player IDs randomly.
Please modify the plugin to use this only as a fallback scenario in a situation where ID are not provided in the markup (as I hereby vote they should). I would vote for a data-yt-player-id attribute supplied in the wrapper div. This would enable easier event binding to the player instance.
I would also vote that the wrapper be tagged data-yt-player-object with the player object instance.

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