Automatic selection: main player and previews
Adok UI
Popunder type: Tabunder
Click zone: #main-video
Backend configuration
under: "true"newTab: "true"bindTo: "#main-video"
New Adscript
openMode: "tabunder"targetFilter.include: "#main-video"
The main video must occupy at least 10% of the viewport and be at least twice the area of the next-largest visible video. A linked video or a muted, autoplaying, looping video cannot be selected. These thresholds are heuristics; viewport size affects the result.
AdScript.start(); // automatic discoveryClick the main video to request a tabunder. The orange cover shows the click target; the other video is not an ad trigger.
A tabunder opens this page in a new tab and navigates the original tab to the demo ad. The pageview and any explicit selector are restored; a spot gets one attempt per pageview. Browser popup blocking, focus, and media playback may vary.
This is a backend-free demonstration using a supplied spot. The Adok and backend values above show the equivalent settings; the backend parser is not exercised. Selecting a player that is already playing does not replay its playing event.