Task Link
Codes to share at Codepen
Hi,
Thank you for your kind lectures and this place.
I would like you to have a look at my codes and give me assessment.
The task was to embed audio, video, pdf and YouTube clip.
I have put the given media links embedding tests in one file.
In the codepen output, due to the protocol issue, the subtitle of the 2nd video embedding and pdf link don’t work properly.
However, it worked in the localhost accessing downloaded files on the following code.
<video controls muted width="320" height="240">
<source src="media/video.mp4" type="video/mp4">
<source src="media/video.webm" type="video/webm">
<track kind="subtitles" src="media/subtitles_en.vtt" srclang="en" label="English">
<p>Your browser doesn't support HTML video. Here is a <a href="media/video.mp4">link to the video</a> instead.
</p>
</video>
<h1>Embedding</h1>
<embed src="media/mypdf.pdf" type="application/pdf"/>
<hr>
<iframe width="560" height="315" src="https://www.youtube.com/embed/gdZLi9oWNZg" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Kind regards,
Healisa