Hi guys, I have a #dynamic member page where I have a #videoPlayer1 that's connected to #dataset1, to an #url field. I'm asking the members to add their channel, not a specific video link, so this link could be from any channel #youTube #facebook #twitch etc... I have #videoPlayer1 on #autoPlay so if the members are #live on their channel it'll show on their member page on my website. Everything is working fine, #dataset1 is filtered by logged in user and the members can see all the info they have submitted to my website including their channel. If they are live and they go to their member page on my website their streaming is there, if they're offline it just shows offline and if they tab #play it does nothing. That's all good.
Now, I'd like to check the current status of #videoPlayer1, I'd like to show #element1 if #videoPlayer1 #isPlaying else Hide it.
I'm using the following code and is not working:
$w.onReady(function () {
if ($w("#videoPlayer1").isPlaying) {
$w("#element1").show();
} else {
$w("#element1").hide();
}
})
Thank you very much for the help guys!
I used this https://www.wix.com/corvid/reference/$w/playablemixin/isplaying
russian-dima helped me