Polymer Shadow DOM

33 views
Skip to first unread message

mirjal...@gmail.com

unread,
Aug 18, 2017, 6:20:51 AM8/18/17
to Polymer
Hi friends,
I'm using Polymer 2, and jwplayer (video player)
When I create instance of jwplayer, I should give it id of container. Like this
jwplayer('video_container').setup({
...
})

But because of shadow dom, jwplayer cannot find element with id, even it exists, because it's in shadow dom.
In polymer I think we should use like this: 
Polymer.dom(this.root).querySelector()
But external libraries do not do like this.
Please help me!
Thanks in advance!
Reply all
Reply to author
Forward
0 new messages