I've been able to embed a wistia video on to a page of mine, but now I'm confused about how I could use multiple instances of the same video.
Like, for example, if I wanted to have a second version of the video that doesn't autoplay like video1 has been assigned to do below.
window._wq = window._wq || [];
_wq.push({ "hashedidhere": function(video) {
video1 = Wistia.api("hashedidhere");
video1.play();
}});
Can anyone give me some insight?
edit: To further illustrate my question, I want to do something like this...
window._wq = window._wq || [];
_wq.push({ "hashedidhere": function(video) {
video1 = Wistia.api("hashedidhere");
video2 = Wistia.api("thesamehashedidhere");
video1.play();
video2.someotherfunction();
}});
Good question! You can pull that off without writing any JS, but instead by including the
autoPlay=true
embed option in the class name of the video container: