React SDK
EzoicVideo and EzoicVideoEmbed
Two separate video paths: Ezoic outstream/instream ad placeholders, and Open Video (open.video, Ezoic's video platform) inline content embeds.
What this demonstrates
<EzoicVideo divId="900001"> renders a publisher-chosen
div and drives displayMoreVideo/destroyVideoPlaceholders —
divId must be a numeric string; the underlying ad bundle silently drops non-numeric
div ids. <EzoicVideoEmbed videoId="..."> pushes onto
window.openVideoPlayers and injects https://open.video/video.js once, for
inline content video unrelated to ad placeholders.SDK docs: README — Video
Component usage
import { EzoicVideo, EzoicVideoEmbed } from '@ezoic/react-sdk';
function ArticleVideo() {
return (
<>
{/* Outstream/instream ad placeholder — divId must be numeric */}
<EzoicVideo divId="900001" />
{/* Open Video inline content embed */}
<EzoicVideoEmbed videoId="abc123" />
</>
);
}
Live demo
The panel below embeds the SDK's own demo app (built from
@ezoic/react-sdk v1.0.0) — look at its "Video" panel for both
components. examples.ezoic.com's root domain is not lite-active, so the outstream
placeholder will not fill here — check the placeholder div, not the fill.
Open the full demo in a new tab →