Auto Run Video from analysis

Auto Run Video from analysis

@Steven Flaxman

Hi Everyone

I have set up a dashboard with several Tabs. One being Videos. I have set up a video widget to auto play when a variable in the bucket is set true. This works fine when you are on the Videos tab. However i would like the video to play no matter where you are…even if you are on the main tab and the application is minimized. I thought that i could use the same variable that triggers the auto video play to also open the Videos tab using a link in an analysis.
I cannot get this to work, see below the section of analysis script where i am trying to open the Videos tab:

context.log (videoplayVariable[0].value); //confirms variable set to true
if (videoplayVariable[0].value == true){
    window.open("https://admin.tago.io/dashboards/info/****************?tab=6");//Link to Videos Tab on the Dashboard

Appreciate any help.
Thanks
Steven