I want to autoclose (settimeout) an iframe which displays a video with delay 5 sec when the video ends and only if the user click play, if not I want to autoclose the iframe after 5 sec.
How can I do this using videojs?
I've tried setTimeout(function (), 5000);
but it's not working.
Thanks