开发者

Reinitialize Kalthura mwEmbed-player-static.js after AJAX content loads

We're using the mwEmbed-player-static.js library to handle playing video on a site. This works fine for a static pa开发者_StackOverflow社区ge 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?


The source for Player_DynamicEmbed 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜