What do you think of this change? I have a situation where I have id-less containers and would like to pass an already selected element in as container. Something like:
module.exports = function (videos) {
videos.each(function () {
var video = $(this);
var container = video.parent();
new window.videojs(this, {
techOrder: ['youtube'],
src: video.data('video-url'),
controls: false,
autoplay: true,
preload: 'auto',
loop: true
}).Background({
mediaType: 'youtube',
container: container[0] // <===
});
});
};
What do you think of this change? I have a situation where I have id-less containers and would like to pass an already selected element in as container. Something like: