A YouTube video directly in the lesson
Add a lecture recording, demonstration, or video explanation of the topic. Students can pause the video, return to a section, and continue the assignment.
Explanations, ready-made material and an assignment — in one WeStudy lesson.
FOR YOUR LESSON
When to use it
When you need a video explanation or a demonstration of actions using an example.
What the learner will see
A video player with playback controls.
What to prepare
A video with embedding enabled and code from the Share menu.
Before publishing
Check the player within the lesson and whether students can access the video.
FEATURES
What you can embed from YouTube
YouTube adds a video player to the WeStudy lesson. Students can start the recording, pause it, and return to the relevant section while keeping the lesson instructions in view. The material remains on the external service, while WeStudy displays it within the lesson.
The owner can disable embedding. Age restrictions may redirect viewers to YouTube. Advertising and recommendations depend on the platform. Opening the embed address in a separate tab may produce error 153: test the player within the page.
When to choose this method
Choose YouTube for a prepared video lesson. Slides is sufficient for a step-by-step presentation without video. An iframe alone does not confirm how many minutes an individual student watched.
AN ORIGINAL LESSON IDEA
How to use YouTube for learning
Record a short demonstration of creating a first lesson: title, learning objective, material, and assignment. Before the player, ask “What outcome should the student achieve?”; after the video, set a practical task to write the title and objective for their own lesson. Include the timestamp of the important section in the text.
How to assess learning outcomes
Assess the student’s lesson objective: does it describe a specific action and outcome? Add a short WeStudy quiz if you need to check understanding of the video.
This is a suggested lesson scenario. It is not a published ready-made demo or the result of testing in your account.
MATERIAL PREVIEW
YouTube interface and iframe code
An actual screenshot of the YouTube check in a WeStudy test course, October 6, 2026. Open the screenshot at full size to see both editor panels.
TESTED EXAMPLE
Link and iframe code
Google for Developers — Embedded Web Player Customization
<iframe
src="https://www.youtube.com/embed/M7lc1UVf-VE"
width="100%"
height="650"
title="YouTube — test"
allowfullscreen
></iframe>The video’s launch and first 21 seconds were confirmed in WeStudy. The entire 22:24 video was not watched. A video from the official YouTube Player API example was used.
Where to find the iframe address. In the code provided by the service, find the attribute src: its value is the address of the embedded material. Paste the entire code into WeStudy, keeping the provider’s parameters and permissions.
STEP-BY-STEP INSTRUCTIONS
How to add YouTube to WeStudy
1. Get the code from YouTube
Open the desired video on a computer and select Share → Embed.
Copy the player’s HTML code. Use a video whose owner allows embedding.
Paste the code into WeStudy and play the video within the lesson itself.
2. Paste the iframe into the course material
The screenshot above shows YouTube: the course menu on the left, the material in the middle, and the iframe field on the right.
In “Courses”, open the course and its content editor. Select a module and click “+ Add material”.
Go to “iFrame and Integrations” and choose the “iFrame” material type.
Under “General settings”, add a title, a short description, and an image. For example, name the material “YouTube — practice” and explain the task to students.
In the “iFrame” section, paste the full YouTube embed code into the “Paste the iframe element HTML code” field. You need the iframe HTML code rather than a regular website link. Obtain it only from a trusted HTTPS resource that allows embedding.
3. Check the learner’s view
- Open the published lesson with learner permissions: the material must be accessible without the author’s session.
- Perform the main action: advance a slide, start the player or complete an exercise.
- Check on a phone: readability, scrolling and access to buttons.
- Make sure the learner can see the assignment instructions and knows where to submit their answer.
YouTube limitations and access
The owner can disable embedding. Age restrictions may redirect viewers to YouTube. Advertising and recommendations depend on the platform. Opening the embed address in a separate tab may produce error 153: test the player within the page.
A third-party service license is not automatically included in your WeStudy plan. Before launching the course, check publication, available modes and your account’s terms.
If the iframe does not open
Sign-in is requested
Check access to the material itself, not just the author’s page. A private source remains private inside an iframe.
Blank window or embedding blocked
Copy the official code again. If the service has an allowed-domain list, add the school’s actual domain. Do not replace the address with the editor URL.
Material stopped working
Check that publishing is still enabled, the link has not expired and access is still included in the required plan.
Bottom buttons are not visible
Increase the iframe height using the settings allowed by the provider, and check the result on a narrow screen.
Questions about YouTube in WeStudy
YouTube may require an HTTP Referer from the page containing the player. Test the complete iframe code in WeStudy, rather than just the URL in the address bar.
No. Playback of the opening section was confirmed. Configure lesson completion status and knowledge checks separately in WeStudy.
YouTube adds a video player to the WeStudy lesson. Students can start the recording, pause it, and return to the relevant section while keeping the lesson instructions in view.
Open the desired video on a computer and select Share → Embed. Copy the player’s HTML code. Use a video whose owner allows embedding. Paste the code into WeStudy and play the video within the lesson itself.
The WeStudy field requires the complete iframe HTML code. An editor link, a homepage link or a regular Share button does not replace the embed code.
The owner can disable embedding. Age restrictions may redirect viewers to YouTube. Advertising and recommendations depend on the platform. Opening the embed address in a separate tab may produce error 153: test the player within the page.
An iframe displays third-party material. It does not itself synchronize scores, attempts or completion. For assessment, add a separate WeStudy assignment or test.
Sources and verification
WeStudy editorial team · Example checked: October 6, 2026.
The video’s launch and first 21 seconds were confirmed in WeStudy. The entire 22:24 video was not watched. A video from the official YouTube Player API example was used. Display was checked in the WeStudy test editor. Before launch, check access with student permissions and the view on a phone.
What else to add to your course
● YOUR NEXT STEP
Try WeStudy
for free
From your first idea to your own online school. Create, teach and grow your project with WeStudy.
30
days free
