Skip to content

Pass DOM node to YouTube Player instead of ID - #111

Merged
cookpete merged 1 commit into
cookpete:masterfrom
brandcast:pass-node-to-YT-instead-of-ID
Oct 6, 2016
Merged

Pass DOM node to YouTube Player instead of ID#111
cookpete merged 1 commit into
cookpete:masterfrom
brandcast:pass-node-to-YT-instead-of-ID

Conversation

@jsibelman

Copy link
Copy Markdown
Contributor

Our use case involves loading the player as part of a component in an iframe, so using getElementById fails. Changing it to use the node has the side benefit of making the component a little more flexible, since now the id isn't required, and subsequently there's no need for tracking unique ids, and it avoids id collisions on the outside chance someone might not be cautious about their naming.

@cookpete

cookpete commented Oct 6, 2016

Copy link
Copy Markdown
Owner

I didn't know you could do this. Much better! Thanks for the PR.

@cookpete
cookpete merged commit b04fa4a into cookpete:master Oct 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants