# Video Immediate Viewing without New Window

## Adding video in a page

Adding YouTube clips to play directly on the page without pasting as a URL or link prevents users from opening a new window to view the clip. The steps are as follows:

### 1. Create a new page or edit an existing one where you want to add the video

<figure><img src="/files/vzLB8Tr48v05gFqXWBd0" alt=""><figcaption><p>Click +Page to open a new page</p></figcaption></figure>

<figure><img src="/files/fmRRXdlp3PDtcoGLJ6FQ" alt=""><figcaption><p>Click Edit in case of adding video to an existing page</p></figcaption></figure>

### 2. Select Youtube icon

<figure><img src="/files/l0BnKDdAtK9B8OMvueI3" alt=""><figcaption></figcaption></figure>

### 3. Search by the name of the clip or the URL of the desired clip

<figure><img src="/files/EZzzwDZ6nnchxzUG41rh" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
The video that can be searched in this way must have public access
{% endhint %}

### 4. Click Embed on the desired video

<figure><img src="/files/Gkrgv1awT0tcJLF4opr7" alt=""><figcaption></figcaption></figure>

### 5. The clip will be imported into the page and cab be viewed immediately.

<figure><img src="/files/NEAIuIjnK1RXNJ3ZU95T" alt=""><figcaption></figcaption></figure>

### 6. After finishing the page customization, click 'Save' or 'Save & Publish' at the bottom right corner&#x20;

<figure><img src="/files/86UguQezBDKGQOcXkw75" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tlic.cmu.ac.th/cmu-mango-canvas-manual/tips-and-tricks-for-mango-canvas/embedvideo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
