Thanks for this great plugin. May I know how to modify this so that it could change the canvas size according to Parent's div size or specified size? I've tried many different ways, unfortunately, I can't get them to work. Only resizing in full screen will work. Because I've theater mode, the canvas was drawn to fit the video player's size, it would be great if we could set a custom size and pass it via handleResize.
var player = window.player = videojs('videojs-panorama-player', {}, function () {
window.addEventListener("resize", function () {
var canvas = player.getChild('Canvas');
canvas.handleResize();
});
});
Besides, may I know how should I modify this codes if I've already declared videojs earlier:
var player = videojs('my-player');
player.panorama({
clickAndDrag: true,
callback: function () {
player.play();
}
});
I'm a beginner and hope that you could help me with this, thanks once again.
Hi Yanwsh,
Thanks for this great plugin. May I know how to modify this so that it could change the canvas size according to Parent's div size or specified size? I've tried many different ways, unfortunately, I can't get them to work. Only resizing in full screen will work. Because I've theater mode, the canvas was drawn to fit the video player's size, it would be great if we could set a custom size and pass it via handleResize.
Besides, may I know how should I modify this codes if I've already declared videojs earlier:
I'm a beginner and hope that you could help me with this, thanks once again.
Best regards, Jessica