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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -