Layout

Concept: Layout and resizing

On mobile web, enable scaling after init so the overlay matches the viewport. Reference size, hostElement behavior, and desktop guidance are on the concept page.

await embet.init({ clientId: 'YOUR_CLIENT_ID' });

embet.resizeConfig({
  enabled: true,
  hostElement: 'body',
});

Place <embet-overlay> over your player with CSS (position: absolute, flex, or full-screen wrapper). Use hostElement when the visible area is not document.body (for example a dedicated player container).