#VIDEOLIGHTBOX DEPRECATED API CODE#
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. Time in seconds to wait after closing before unloading Unload video iframe X seconds after it is closed XBorder (String - default="none")Ĭlose icon box border ex: '3px solid #555'
![videolightbox deprecated api videolightbox deprecated api](https://media.geeksforgeeks.org/wp-content/uploads/20200128160321/Capture344.png)
Video iframe border ex: '3px solid #555', note: will change aspect ratio of video Preview video on hover, user can click ^ to pin (true,false)īdOpacity (Decimal - default=0.6)įrameColor (String - default="#000")įrameBorder (String - default="none") Open in popover instead of lightbox (true,false) Start playback immediately once the element is clicked (true,false)Ī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.
![videolightbox deprecated api videolightbox deprecated api](https://get-help.robotigniteacademy.com/uploads/default/optimized/2X/4/43ef8af4c9ac22d6a3984f6d9efa89b9ce7f15c9_2_1380x282.png)
![videolightbox deprecated api videolightbox deprecated api](https://user-images.githubusercontent.com/7065724/88102303-2f54cf00-cb54-11ea-8121-3af43bf60a64.png)
Turn any element into a lightbox or popover link for Youtube and Vimeo videos.