Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/embed-a-onedrive-video-using-embed-code

# Embed a OneDrive video using Embed code

Embed videos in the description section of any Pop-up template to deliver additional details to your end users. For more information on Whatfix Pop-up templates, see [Choose the Pop-up template](https://support.whatfix.com/studio/docs/choosing-the-pop-up-template).

Adding a video embed code in a Pop-up is a 2-step process.

**Step 1**: [Get the video embed code](/web/embed-a-onedrive-video-using-embed-code#step-1-get-the-video-embed-code) **Step 2**: [Insert the video embed code in the Pop-up](/web/embed-a-onedrive-video-using-embed-code#step-2-insert-the-video-embed-code-in-the-popup)

Use the following steps to add a video hosted on OneDrive to a Pop-up:

## Step 1: Get the video embed code

> [!WARNING]
>
> The Embed option is only supported in OneDrive for Personal and not in OneDrive for Business.

1. Go to the video on OneDrive and open it.
2. Click **Embed** from the options next to **Download**. ![Embed videos from One Drive ](/images/d2/OneDrive_Video_Embedoption-d258058d.png)
3. In the side bar, click the **Generate** button. ![studio\_pop-up\_onedrive\_generate](/images/7b/studio_pop-up_onedrive_generate-7bc84085.png)
4. Copy the embed code. ![studio\_pop-up\_onedriveembed code](/images/5c/studio_pop-up_onedriveembed-code-5c9d4cf7.png)

## Step 2: Insert the video embed code in the Pop-up

Use the following steps to insert the video embed in your Pop-up:

1. On the Whatfix Guidance dashboard, click **Widgets**. ![ia\_left\_nav\_widgets](/images/d4/ia_left_nav_widgets-d468b7f8.png)

2. Click **Pop-ups**. ![ia\_widget\_popups](/images/f2/ia_widget_popups-f2f9e0ad.png)

3. Hover your cursor over the Pop-up segment you want to configure, and then click the **Edit** icon. ![Edit\_popup\_DB](/images/68/Edit_popup_DB-6885e56b.png)

4. In the **Description** section, place the cursor where you want to add the video and double-click to open the **Rich Text Editor**. ![RTE\_add\_video](/images/d6/Screenshot-2024-07-09-at-11.28.27-AM-d6327934.png)

5. Click the **+** icon. The **Add Component** dialog box opens. ![Add\_component](/images/d3/Screenshot-2024-07-09-at-11.28.27-AM-1-d3804c0d.png)

6. On the **Add Component** dialog box, click **Video**. ![Click\_Video\_Addcomponent](/images/58/Click_Video_Addcomponent-5852ff0d.png)

7. Paste the embed code. ![Dashboard\_Pop-up\_video\_addembedcode.png](/images/69/Dashboard_Pop-up_video_addembedcode-6953fb62.png)

8. Click **Insert**. ![Dashboard\_Pop-up\_video\_insertembedcode.png](/images/0a/Dashboard_Pop-up_video_insertembedcode-0aa1e1c8.png)

> [!WARNING]
>
> - If you want the video to autoplay for your end users, click **Autoplay** while inserting the video.\
>   ![Autoplay videos on pop-ups ](/images/37/Pop-up_video_autoplay-374afc66.png)

1. Finish creating the Pop-up.
