Hi All,
I have a strip background (element id #columnStrip1 ) which is a video. I want this video to be played only if I click on a different element in my website (element id #audioPlayer6).
Unfortunately, I didn’t find any method that could fit what I need. I thought about method like “play” since it’s a video background but there isn’t. Column strip API: https://www.wix.com/velo/reference/$w/columnstrip
export function audioPlayer6_play(event) {
$w(“#columnStrip1”).{WhichMethodCouldFitHere?};
}
Any suggestions to solve this?
Thanks!
Dana
A video which is a → #audioPlayer6 ??? ok.
$w.onReady(()=>{
$w('#YourCoosenElementIdHere').onClick(()=>{
$w("#columnStrip1").expand(), $w("#columnStrip1").show()
$w('#audioPlayer6').play()
})
})
Hi Dima,
Thanks for your answer.
I’m afraid I wasn’t clear enought.
When clicking on audioPlayer6 , I want the strip background to be played (this is a video).
Thus, I need something like this:
$w.onReady(()=>{
$w('#audioPlayer6').onPlay(()=>{
$w('#columnStrip1').play()
})
})
But there is no play method on column strip.
What do you think?
Need a screenshot of your project, where all the element-ids are shown.
I do not have your screen in front of my eyes