# How to add video to the lesson

Want your lessons to be more exciting? Just add video content to the lesson. It is very easy to do by means of the Video lesson type. While creating or editing lessons it is required to select the Video lesson type and choose one of the available video sources:

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

{% hint style="info" %}
**Important:** The video upload is only active for Video Type lessons. Don’t forget to specify the lesson type.
{% endhint %}

In **MS LMS > Settings > Course** it is required to select the preferred video sources, so instructors could choose one of them for the Video lesson type.

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

### HTML (MP4) Source type

HTML (MP4) Source type allows instructors directly upload video files to the lesson.

<figure><img src="/files/3Iw3Tlv0HqZJ3tE3xaXK" alt=""><figcaption></figcaption></figure>

Lesson settings include the following options for HTML (MP4) Source type:

* **Lesson video:** By clicking the upload button video file can be selected from Media Gallery. If the video does not exist on the Media Gallery, it is possible to select it from the computer and upload it to the lesson.
* **Lesson video poster:** The preview image that displays before playing the video.
* **Lesson video width:** Maximum Video Width.

{% hint style="warning" %}
**Please note:** The loading speed can be **decreased** after video upload depending on server limits, and if the video doesn't upload it is required to check server parameters.&#x20;
{% endhint %}

{% hint style="success" %}
Students can continue watching the video from the point they stopped before, so even returning to the lesson day after they still can continue from the minute they left.
{% endhint %}

{% hint style="info" %}
**We recommend using CDN to improve the site speed and performance if uploading large video files is planned.** It will be better if large files are uploaded on external video hostings like **YouTube** or **Vimeo** to save limits on the hosting side.
{% endhint %}

### YouTube Source type

YouTube Source type allows instructors to add videos to the lesson from popular video hosting.

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

Lesson settings include the following options for YouTube Source type:

* **YouTube video URL:** The direct URL of the video that can be copied from the Browser address bar:

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

### Vimeo Source type

Vimeo Source type allows instructors to add videos to the lesson from popular video hosting.

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

Lesson settings include the following options for Vimeo Source type:

* **Vimeo video URL:** The direct URL of the video that can be copied from the Browser address bar:

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

### External Link Source type

External Link Source type allows instructors to insert direct links to the videos from external sources:

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

Lesson settings include the following options for External Link Source type:

* **External link:** The direct URL of the video that ends with an extension of the file: *<https://site-name.domain/videos/sample.mp4>*

### Embed Source type

Embed Source type allows instructors to embed videos from external sources:

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

Lesson settings include the following options for Embed Source type:

* **Embed iFrame content:** The embed code of the video that can be copied from the player or while sharing:

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

The following code is a sample for embed code:

{% code overflow="wrap" lineNumbers="true" %}

```html
<iframe allowtransparency="true" title="Wistia video player" allowFullscreen frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" src="https://fast.wistia.net/embed/iframe/1w9z4zg847" width="400" height="225"></iframe>
```

{% endcode %}

### Shortcode Source type

Using the shortcode, it is possible to display videos in the lesson content processed by other additional plugins.

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

Lesson settings include the following options for Shortcode Source type:

* **Shortcode:** The code can be copied out from the third-party plugin which can process videos.

The following code is a sample for shortcode:

{% code overflow="wrap" lineNumbers="true" %}

```html
[video_player id=401]
```

{% endcode %}

### Presto Player Source type

{% hint style="info" %}
This source type is available when the [Presto Player plugin](https://wordpress.org/plugins/presto-player/) is installed and activated.
{% endhint %}

{% content-ref url="/pages/L550YgGClkicopQXhDFA" %}
[Presto Player Integration](/masterstudy-lms/~/changes/D1BUqzsdqYuUfTmFZIuo/additional-features/presto-player-integration.md)
{% endcontent-ref %}

Using the Presto Player source type allows selecting a video that was edited using the Presto Player plugin that takes video to another level and delights viewers will a modern video experience.

<figure><img src="/files/3cVMqPagFSemGDxp5A2m" alt=""><figcaption></figcaption></figure>

Lesson settings include the following options for Presto Player Source type:

* **Presto Player videos:** Select one of the available videos that were edited using the Presto Player plugin.

{% hint style="info" %}
More detailed information on Presto Player integration can be found in this [manual](/masterstudy-lms/~/changes/D1BUqzsdqYuUfTmFZIuo/additional-features/presto-player-integration.md).
{% endhint %}


---

# 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.stylemixthemes.com/masterstudy-lms/~/changes/D1BUqzsdqYuUfTmFZIuo/lms-course-features/how-to-add-video-to-the-lesson.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.
