How to make jwplayer to work with Polymer 2 -
i'm using polymer 2, , jwplayer (video player) when create instance of jwplayer, should give id of container. this
jwplayer("container_id").setup({...})
but because of shadow dom, jwplayer cannot find element id, exists, because it's in shadow dom. in polymer think should use this:
polymer.dom(this.root).queryselector()
but external libraries not this. thanks in advance!
can try this?
jwplayer(this.$.container_id).setup({...})
ref. https://github.com/jwplayer/jwplayer/blob/master/src/js/jwplayer.js#l34-l37
Comments
Post a Comment