I’d like to post a welcome video - I want people to watch the video & only have access to several pdf’s AFTER watching the video. Is that possible somehow?
Hi Shanna,
If you’re currently displaying a video with the single video player element you can add code using the onEnded() API which will allow you to run an event handler only after the video playback has ended and then you can add more code to show or enable your document element however you choose it can be a button, link, etc.
Hope this helps!
Oh goodness me, I am trying and failing here! I am so not a Coder!
I have a single video player element (videoplayer1) and a button (button7) with a pdf attached. I tried this based on those links above
});
$w(#button7).onEnded( ( event ) => {
let targetId = event.target.id; // “#VideoPlayer1”
let isEnabled = $w(button7).enabled; // true
});
I’m getting these errors:
Error parsing web-module ‘public/pages/wezbq.js’: Unexpected token (1:0) while parsing file: public/pages/wezbq.js
Loading the code for the WELCOME page. To debug this code, open wezbq.js in Developer Tools.
The Welcome page is Hidden at the moment if that makes a difference.
Would you be so kind as to show me what I am doing wrong (probably plenty lol)
Kindly,
Shanna