Open llamerr opened 8 years ago
I have some container with position: absolute for which I need to recalc height when video is loaded, but I don't see any code to fire load event in video plugin. I added those lines to it
position: absolute
load
... $el.attr('poster', $el.attr(options.videoPoster)); $el.on('canplay', function(){ $el.trigger('lazyload', $el); }); $el.children('source,track') ...
and it works like I want now, but it doesn't use triggerEvent defined in main module so I think my code not ready for pull-request
triggerEvent
I have some container with
position: absolute
for which I need to recalc height when video is loaded, but I don't see any code to fireload
event in video plugin. I added those lines to itand it works like I want now, but it doesn't use
triggerEvent
defined in main module so I think my code not ready for pull-request