Try the outstream player
Toggling an option updates the generated code on the right. Use ▶ Preview to launch the outstream player with a sample ad using the current settings.
Use normal in most cases; use ima for the Google IMA SDK.
Plays when at least this fraction (0–1) of the slot is visible, and pauses when it scrolls out.
Behavior after playback. collapse removes the slot, leaving no gap.
Color scheme. auto follows the OS dark / light setting.
Player UI language. auto follows the browser language.
Treated as a failure if no ad starts within this time (ms).
Autoplays muted (required for browser autoplay).
Collapses the slot on no-fill or failure.
Shows a fullscreen button.
<div id="feed-slot"></div>
<script src="https://cdn.michao-ssp.com/player/v1/outstream.js"></script>
<script>
window.michao.createOutstreamPlayer({
bid, // VAST bid
target: "feed-slot",
mode: "normal",
viewableThreshold: 0.5,
onEnd: "collapse",
collapseOnFail: true,
muted: true,
fullscreen: false,
theme: "auto",
loadTimeoutMs: 3000,
});
</script>For the full list of options, see the API reference.