It looks like jwplayer must be initialized by giving it an id of an element
in the main document. That's not compatible with ShadowDOM. Typically,
libraries like this also have a way to initialize an element via a
reference rather than just an id. I couldn't find that for jwplayer, but
maybe I missed it.

Here's an example of how you might workaround this. It's not pretty, but
without better support from jwplayer, this is what I'd recommend:

http://jsbin.com/aqOCOkO/1


On Tue, Feb 4, 2014 at 8:10 AM, Rami Grossman <[email protected]> wrote:

> Hi thanks Steve!
>
> I tried and it doesn
> t work
>
> Please have a look:
> http://jsbin.com/uDilOXa/2
>
>
>
> On Tue, Feb 4, 2014 at 5:58 PM, Steve Orvell <[email protected]> wrote:
>
>> The 'attached' method is called when the element is attached into the
>> dom. I recommend using this and reporting any issues you encounter.
>>
>> The lightdom option is being removed so I don't recommend using it.
>>
>>
>> On Tue, Feb 4, 2014 at 7:26 AM, Rami Grossman <[email protected]> wrote:
>>
>>> thanks to locks from the #polymer IRC channel it works now when using
>>> lightdom. Is there a way to make it work with shadowdom? I read that
>>> lightdom is experimental and has some quirks
>>> Thanks!
>>>
>>> בתאריך יום שלישי, 4 בפברואר 2014 14:48:47 UTC+2, מאת Rami Grossman:
>>>
>>>> Here is a simple exemple
>>>> http://jsbin.com/oCoTELer/3
>>>>
>>>> בתאריך יום שלישי, 4 בפברואר 2014 13:27:54 UTC+2, מאת Rami Grossman:
>>>>>
>>>>> hi, I'm trying to create a jwplayer polymer element. I need to have
>>>>> the element I'm attaching the player to in the dom. I tried all the
>>>>> element's lifecycle callbacks with no success. How should I approach this?
>>>>>
>>>>> The same issue also exists when I want to use jquery
>>>>>
>>>>
>>>>  Follow Polymer on Google+: plus.google.com/107187849809354688692
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Polymer" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/polymer-dev/31ec5c57-41bc-4cbe-ae67-220c27d7d017%40googlegroups.com
>>> .
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CA%2BrMWZiXow%2BtqGr31AQVvcTZ91x_%2B3_FUGdWiNF%2B7J1f-AD5Vg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to