![videolightbox deprecated api videolightbox deprecated api](https://wpinitiate.com/wp-content/uploads/2020/03/10406/how-to-apply-for-the-pinterest-api-v2-v1-api-will-be-deprecated-soon.jpg)
using full iframe API's for Youtube and Vimeo for event handling and interaction.complete re-write removing the dependency on jQuery while still supporting jQuery initialization.
![videolightbox deprecated api videolightbox deprecated api](https://ultimarketingweb.blob.core.windows.net/static/ultipro-connect/images/api-deprecation-strategy.png)
Y: player controls color ("red","white") V: player controls color (hex code default is "#00adef") Y: playback start position in seconds (ex. Y: display title, uploader (0,1) V: display title (0,1) Y: show related videos when playback is finished (0,1) Y: comma-separated list of video IDs to play (ex. Y: display closed captions by default (null,1) Y: auto hide controls after video load (0,1,2) Some of Youtube's options are not listed below, but everything on their params page (as of 3/15/15) is available. Reduces redraws on resizing, lowers accuracy / smoothness of repositioning Number of steps popover should move in on resize events.
![videolightbox deprecated api videolightbox deprecated api](https://i.pinimg.com/originals/19/d0/32/19d032bdf7c8be1079f22f5fcf07312b.png)
Time in seconds to wait after closing before unloading Unload video iframe X seconds after it is closed Preview video on hover, user can click ^ to pin (true,false)īdOpacity (Decimal - default=0.6) Open in popover instead of lightbox (true,false) Vendor prefixed video id Īutoclose lightbox / popover once video is complete (true,false) The following is the current list of available options. There are also a number of effect, style, and behavior options that are available. Video Lightning exposes all available basic API options for both Youtube and Vimeo. Add script where you desire (bottom of body is recommended) Rick Roll with ease (don't pass video id, add rick_roll option to prevent closing)Ĭheck the GH Project Page for demos.Lazy loading of videos prevents slow page load due to video embeds.Preview videos on hover, pin if you want them to stick around.Intelligent popover auto positioning gravitates to page center.Lots of options to customize and beautify your lightboxes.Simple access to all embed API options for both providers.Add the js your project, initialize with target and options and enjoy your video lightbox enhanced element! Features This little plugin bootstraps getting those helpful little videos in place. The main one, and the reason we built it, is for quick video explainers in the appropriate places. See below for more info on the new non-jQuery API usage. Going nativeĪlso of pretty significant note Video Lightning is no longer jQuery dependent though it still retains it's jQuery friendly API. You can see a comprehensive list of all the changes below in the changes section. Some things have changed, though the only real non-backward compatible change is a couple updated defaults.Įverything else (such as renamed options and updated params) has shims in place to maintain compatibility.
VIDEOLIGHTBOX DEPRECATED API UPDATE
3.0 is a significant update (complete re-write). Turn any element into a lightbox or popover link for Youtube and Vimeo videos.