Open cyberwani opened 7 years ago
Hi, I am using MediaElement.js and Magnific popup for video in popup. After opening popup when click on play button, video starts playing but content get hide. Check below screenshots.
I am using below code.
$('.my-video-popup').magnificPopup({ type: 'inline', midClick: true, callbacks: { open: function() { $($(this.items).find('video')[0]).each(function(){this.player.load()}); }, close: function() { $($(this.items).find('video')[0]).each(function(){this.player.pause()}); }, } });
Can you check what is missing in the code.
It's also displaying error when closing popup. TypeError: template.find is not a function
Can you post a fiddle with the offending code?
Hi, I am using MediaElement.js and Magnific popup for video in popup. After opening popup when click on play button, video starts playing but content get hide. Check below screenshots.
I am using below code.
Can you check what is missing in the code.
It's also displaying error when closing popup. TypeError: template.find is not a function