I am using video.js library in one of my project to render a video player on my website which plays videos that are coming as an api response but when I initialize the player after creating video tag, the player is rendered but play/pause buttons on the player are not working. I am using below code to render videos on webpage
videos.forEach(function(vdo) {
$("body").append('');
videojs("vd_" + vdo.id, {
autoplay: true
})
})
0 Answers