I'm setting up a video gallery on a site. What I want to happen is that when the user clicks on a thumbnail it then opens and plays the corresponding video clip in shadowbox.
What shadowbox opens is a page which holds the video player object. What I need to happen is for the video reference to be passed to the page that shadowbox opens.
I don't know how to do this. I can get this working where the thumbnails are all on the same page as the video player object. The link on the thumbnail images is as follows:
any help as always much appreciated.
Thanks in advance.
If you have to open it in a new page, why don't you open a template page (playvideo.html?vidId=rb6RuHSMY-8), that will also contain a reference to your shadowbox JS file, as well as a playvideo.js file. In this file you place some code like:
window.onload = function()
var videoId = window.location.search.replace('?vidId=', '');