Product:
Question:
I moved my videos to Wistia and I am wondering how can I open Wistia video in lightbox.
Answer:
To open Wistia video with HTML5 Lightbox, first, you need to find the iframe video URL of your video.
You can view the document at http://wistia.com/doc/embedding#fallback_iframe_embed, get the iframe code then copy the URL from the iframe src value.
Then you can use the following code to open the video in lightbox:
<a href="//fast.wistia.net/embed/iframe/avk9twrrbn" class="html5lightbox" data-width=730 data-height=411 >Open Wistia Video in HTML5 Lightbox</a>
To auto play the video on lightbox popup, you can add parameter autoPlay=true to the URL:
<a href="//fast.wistia.net/embed/iframe/avk9twrrbn?autoPlay=true" class="html5lightbox" data-width=730 data-height=411 >Open Wistia Video in HTML5 Lightbox</a>
Please understand video auto play is not supported on mobile and tablet devices.
The demo is as following: