You may have a requirement to automatically launch a lightbox player when a page is loaded.
In most circumstances, the behavior of a player can be modified by adding a simple query string to end of a Vidyard embed code. In this case, however, you will need to add an extra set of scripts to your webpage in order to have a lightbox player launch automatically upon page load.
Important: the solution provided is not applicable if using the Vidyard Responsive Embed (aka. Embed Code 4.0)
After copying the final script listed below, make the following modifications:
- Place the lightbox embed code for your Vidyard player in between the section that looks like this:
<!-- Start lightbox embed code --> <!-- End lightbox embed code -->
- Replace the UUID that appears here to match your player. In this example the UUID is 'abc123DEF456efg789':
- If required, adjust the 'playvideo' text to be something of your choosing:
var urlParam = get_parameter_by_name("playvideo");
Using this code means that:
- Adding the query string
?playvideo=1to the URL will load the page and automatically launch the Vidyard player in lightbox mode
- Landing on the webpage page without a query string will display the page as normal