![]() wmv movies would autostart - your preference.Īlso - what file format are you trying to play? I also changed AUTOSTART from "false" to "true" in the lightbox_video.js file on line 24:Ĭ:\whatever-path-to-your\drupal-6.15\sites\all\modules\lightbox2\js\lightbox_video.js Make sure you have lightbox enabled on whatever page you are playing the video from. Under "FLV Player flashvars" put (I have these anyway) bufferlength=5&autostart=true&playerMode=normal Under "Path to FLV Player" put your new path where you put JW player. It comes with a few files - in my instance I put/unzipped them directly under the Drupal root in a folder called "mediaplayer". If you would like support for additional video providers to be provided, please submit a feature request to the Lightbox2 issue queue with all the relevant details. This provider is supported with a patch provided at : /index.cfm?fuseaction=vids.individual&videoid= videoid., and other google per-country domains should all be supported. The links need to be in one of the following formats: The following video providers are supported (where videoid represents the id of the video in question): Supported Video FormatsĪsx, wmv, mov and swf videos should all be supported. Fullscreen support is automatically enabled where available. It is not supported for all video formats / 3rd party providers. The ability to customize the flashvars allows you to turn on and off autoplay, etc. On admin/settings/lightbox2 under the Video Settings collapsed fieldset, there is the ability to configure both a path to a FLV player and FLV flashvars. However, this can be easily enabled by checking the enable video support option on admin/settings/lightbox2. See below for more detailed examples.īasic example: Google video example - default sizeīasic example with caption: Google video example - default sizeīasic example with caption: Grouped video 1Ĭontrolling lightbox size example: Google video example - custom sizeīy default, support for videos is disabled. If no properties are set, then the default width and height of 400px will be used. The properties should all be of the format "property: value " - note the closing semi-colon. The properties can be configured like lightvideo. It's possible to group videos and to control the size of the lightbox by setting the 'width' and 'height' properties. In this case the "rel" attribute should be set to lightvideo. If (jQuery('#TB_ajaxContent').It's possible to show video content in the lightbox. hack to prevent iframe from playing when thicbox closes If it was I removed the content contained in the modal. My solution was to write a JavaScript timer that checked every half a second if the div was hidden or not. When the user closed the thick box modal the video continued to play which was extremely frustrating ( I develop in chrome so I wasn't aware it was a chrome specific issue ). ![]() When the preview button was clicked a thick box would appear and the YouTube video auto played. I had developed a wordpress plugin that displayed a users youtube videos. Any suggestions on an easier, more direct route to auto playing a YouTube video? That worked in Chrome, but in all other browsers it only auto plays the video the second time it's opened in lightbox. JQuery('.lbp-inline-link-1').click(function() Var firstScriptTag = document.getElementsByTagName('script') į(tag, firstScriptTag) So originally I tried: var tag = document.createElement('script') My boss wants the video to play when the lightbox opens. I'm using WP v3.6 and v2.6 of the plugin and using inline lightboxes to open a YouTube video embeded with an iframe.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |