views:

18

answers:

1

We're using the mwEmbed-player-static.js library to handle playing video on a site. This works fine for a static page where we can load the script and that's it. But if we load the video tag as part of the dynamic content via AJAX, nothing happens. We need a way to reinitialize the player or reload the script. Has anyone dealt with this before?

A: 

The source for http://www.kaltura.org/apis/html5lib/kplayer-examples/Player_DynamicEmbed.html has the javascript to make this happen. You can just call the dynamic player loader after the content of the ajax request has been processed.

Aaron