Following is my piece of code which I am using to remove all the created players. The code works fine but the issue I am facing is that the video after changing via ajax call success keep on buffering as background process. Kindly let me know how can I kill that background process as well so it should not buffer the video in background. I am using mediaelementjs
plugin for my html5 video.
var player;
$('video').each(function() {
player = $(this)[0].player;
player.remove();
});
Your code throws me an error but you could try instead :
$('video').each(function (i) {
$("#mep_" + i).remove();
});
I don't see further buffering after this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.