# Embed video experiences in your site and app

Add a player to your web pages and mobile apps, choose the layout that suits each page, and set its behavior without code.

**For:** Product & Design. **Products:** Onsite with Control.

![Diagram: Onsite with Control, in 4 steps: Learn, Layout, Dock, Tune.](https://cdn.sanity.io/images/lnrtvsvr/development/f94157940649cd1b909575795f73fb0c26ee45a0-320x180.svg)

## Products that work together

- **Onsite leads.** Start with [How Onsite works](https://begenuin.com/developers/browse-by-products/onsite/onsite-what-it-does-and-where-to-start).
- **Control supports.** Start with [How Control works](https://begenuin.com/developers/browse-by-products/control/control-what-it-does-and-where-to-start).

## Steps

1. **See how Onsite works.** A placement is a named spot on a page type that renders a player. Read: [How Onsite works](https://begenuin.com/developers/browse-by-products/onsite/onsite-what-it-does-and-where-to-start).
2. **Choose vertical or landscape.** A 9:16 swipe feed, or a 16:9 player with a playlist rail. Read: [Vertical Video Player Placement](https://begenuin.com/developers/browse-by-products/onsite/choose-your-player-style), [Horizontal Video Player Placement](https://begenuin.com/developers/browse-by-products/onsite/choose-your-player-style).
3. **Keep video playing while people browse.** A small player docks to a corner across pages. Read: [Sticky Mini-Player](https://begenuin.com/developers/browse-by-products/onsite/sticky-mini-player).
4. **Set controls per page type.** Autoplay, sound, captions, share and follow buttons. Read: [Player Controls and Feed Settings](https://begenuin.com/developers/browse-by-products/control/player-controls-and-feed-settings).

## Example

A city magazine puts three players on its article template.

- **Page**: the article page, with a **Carousel** after the third paragraph, a **Grid** at the end, and a 300 × 600 **Feed** in the right rail.
- **Setup**: under **Grow** > **On Site** > **Placement**, create one placement per spot, with **Brand Feed** as the **Feed Type** and the matching **Placement layout**. On the **Configure View** tab, set the **Video Cell Aspect Ratio** and **Placement Size**; a new placement starts at 9:16 and 300 × 600. Under **Media Play**, keep **Autoplay Video** on for the rail feed.
- **On the page**: each spot is a container with the class `gen-sdk-class`, its `data-placement-id`, and its `data-style-id`. One `window.genuin.init` call renders all three.
- **What viewers see**: 9:16 tiles that open the full-screen player, and a rail feed that plays on its own.
- **What you measure**: select a placement under **Grow** > **On Site** > **Placement** to see its analytics.

### See it live

- [One publisher page with a carousel, a grid and a 300×600 feed](https://demos.begenuin.com/TheArchitecct/publisher/print.html)

The Architect is a sample publisher site. Ads in the demos come from live demand, so they change from visit to visit.

## Best practices

- Reserve each player's footprint, its declared size plus 4 px on each axis (304 × 604 for a 300 × 600 feed), so the page doesn't shift when it loads.
- Pass both the placement ID and the style ID. With only one, the SDK falls back to the embed path and fails.
- Pin the SDK version in the script URL. The unversioned URL serves an older line with a different API.
- In a single-page app, call `window.genuin.update` with the container's ID on each route change, so the placement ranks for the new page.

## Limits

- **Player Controls** are set separately for **Mobile App** and **Web**, and a placement overrides only some of them.
- On TVs, the Web SDK runs in HTML5 TV apps and web views. Roku and Apple TV can't load web pages, and there's no TV SDK.

## Developer resources

- [How do you embed and configure the Genuin Web SDK on your website?](https://begenuin.com/developers/developer-resources/sdk/how-do-you-embed-and-configure-the-genuin-web-sdk-on-your-website)
- [Integrate the Genuin Android SDK](https://begenuin.com/developers/developer-resources/sdk/how-to-integrate-and-power-your-brand-community-in-android-apps)
- [Integrate the Genuin SDK with React Native apps](https://begenuin.com/developers/developer-resources/sdk/how-do-you-integrate-the-genuin-react-native-sdk-into-your-application)
- [How do you integrate the Genuin Flutter SDK into your application?](https://begenuin.com/developers/developer-resources/sdk/how-do-you-integrate-the-genuin-flutter-sdk-into-your-application)
