Multiple initialization of Video.js player on ajax loaded part of page

A similar question asked [Jean-François][1] a few months ago, but my Problem is some more tricky.

I have to load different content in a node named 'ajax Content'.
The first time the player was initialized and the video has shown with its own skin of the control bar.

But if another film or the same one a second time is loaded, the Video.js script is not initialized and running. This happens also if i clear the node with 'remove()' or 'empty()'.

This is the part of the external html-file:
This is the jQuery-script $(".ajax-content").load(pfad+"#video",function(responce,status,xhr){ if (status=="success") { _V_("html5_video"); $(".ajax-content").css("display","block"); $(".ajaxLoadClose").click(function() { var vidBig = $(this).parent().find("video").get(0); vidBig.pause(); $(".ajax-content").fadeOut('slow', function() { $('.ajax-content').children().remove(); });/**/ }); } }); Is there any kind of reset? Thanks for your help. [1]: https://stackoverflow.com/questions/11035946/initialize-a-video-js-player-on-a-ajax-loaded-part-of-the-page

以上就是Multiple initialization of Video.js player on ajax loaded part of page的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏