WP Video media player not loading correct CSS after AJAX load

I call mediaelementplayer() from ajax success function. It works for me.

$.get(ajaxPostUrl,function(data){

    var posts = $(data).find('.post');

    $('#post-container').append(posts);

    posts.find('video,audio').mediaelementplayer(/* Options */);

});

Leave a Comment

tech