Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › Lightbox Ultimate – HTML5 with multiple formats and flash fallback
- This topic has 4 replies, 2 voices, and was last updated 11 years, 9 months ago by wpCommerce.
-
AuthorPosts
-
January 25, 2013 at 2:15 pm #8424HatchWebMember
Is there a way to serve up multiple file formats (mp4, ogv, webm) with flash fallback? I do see how to do the html5 shortcode but not sure how to offer up the multiple formats.
Also, having flash as a fallback for older browsers.
We did install video.js to try that for the video serving but I was not sure if there was a way to tie that into the lightbox your plugin offers or if that is extra and I can do it all with yours.
Also, just as a side note, on my test page (below), the top video is with LightBox Ultimate and the HTML5 shortcode. I can’t get the lightbox to close correctly when it is done playing.
Test URL: http://devstore.hatchearlylearning.com/devin-test/
Thank you so much!
January 25, 2013 at 3:39 pm #53364HatchWebMemberAlternatively, I think I got the other plugin working.
I know there is a way to modify the shortcode return to allow shortcode within shortcode. I’m assuming that’s what I have to do here. How would I modify your plugin to allow shortcode within shortcode?
My thought is that if I could have something like this:
[wp_lightbox_html5_video [video autoplay="false" mp4="http://video.hatchearlychildhood.com.s3.amazonaws.com/issMobileVideo_2-test.mp4" preload="auto" width="640" height="480" id="movie-id" class="alignleft"] width=”640″ height=”480″ source=”/wp-content/uploads/2012/08/tablet-for-kids-video.png”]
*The advantage to this is that with the [video] shortcode, I can serve multiple formats so I could do something like:
[video autoplay="false" mp4="URL" ogv="URL" webm="URL" preload="auto" width="640" height="480" id="movie-id" class="alignleft"]
I do have your plugin working as far as playing the mp4 and even playing on the older, Android browser. My issue is now the manner to serve up multiple file formats similar to what a <video> html5 tag would be capable of.
January 26, 2013 at 11:00 pm #53365wpCommerceModeratorHi, currently we don’t support multiple video formats in the shortcode for HTML5 video (because it will create more confusion). we only support H264 encoded mp4 format and all major browsers will be able to play that video.
January 29, 2013 at 4:33 pm #53366HatchWebMemberWe are trying to do the format to handle some older Android browsers that won’t work with the mp4.
Is there a way to “turn on” shortcodes within your shortcode?
January 29, 2013 at 11:02 pm #53367wpCommerceModeratorHi, You will either have to customize the lightbox shortcode or use your own customized shortcode to handle everything. There is no way to place one shortcode inside the parameter of another shortcode. That’s not how a shortcode works. You can check the WordPress guideline for creating a shortcode:
[http://codex.wordpress.org/Shortcode_API]
-
AuthorPosts
- You must be logged in to reply to this topic.