I have an array of youtube videoIDs. The script selects a random videoID. I need to echo this value in the same script. The script without that random variable works now with
videoId: 'NmhLuCSyBJg'
i need
alert(chosen_vid)
videoId: 'document.write(chosen_vid)'
alert works, but, document.write does not suit here, need some kind of "echo"
the original script is How do I automatically play a Youtube video (IFrame API) muted?
SOLVED! videoId: ' HERE I HAVE PUT THE WAY, I WAS GETTING THE VARIABLE VALUE'