there is currently only one instance of post messenger. this is fine for sending data into different iframes.
but when registering callbacks for a specific event (say vimeo 'ready'), only the first event of that name gets registered. thus its impossible to register a ready event for several vimeo iframes. only the first one will get the callback.
I think we need to either have multiple instances of postmessenger, one for each video.
Or one instance with the capability to register multiple callbacks of the same name and a possibility to determine the source of the event.
there is currently only one instance of post messenger. this is fine for sending data into different iframes.
but when registering callbacks for a specific event (say vimeo 'ready'), only the first event of that name gets registered. thus its impossible to register a ready event for several vimeo iframes. only the first one will get the callback.
I think we need to either have multiple instances of postmessenger, one for each video. Or one instance with the capability to register multiple callbacks of the same name and a possibility to determine the source of the event.