How to upload and display videos in a Moodle course

1.  Click the "Turn editing on" button in the upper right corner of the course homepage.

2. As shown in the figure below, there are two options. If you do not need to add a dedicated Section to display Videos, you can skip this step. 
    If yes, click the "+" button to create a new Section.

3. Rename the newly added Section. Click the "Add an activity or resource" button.

4. Select the "File" option.

5. First, rename the "File" for display on the Moodle page. 
Then click the attachment upload button and follow the instructions in the screenshot below to select the video file you want to upload. 
If needed, you can set a new name for this file to indicate how it is stored on the server.
Finally, click the "Upload this file" button.

6. By default, the uploaded file will be displayed directly on the Moodle course page after a successful upload. 
If you need to temporarily hide it, set it to "Hide from students."

7. After all upload operations are completed, remember to return to the course homepage and turn off the page editing function.