Multiple Video Sources
HTML
Medium
2 views
Problem Description
Create a video with two sources: demo.webm and demo.mp4.
Output Format
Print the HTML code.
Constraints
Use source tags.
Official Solution
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>\
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>meetcode</title>
</head>
<body>
<video controls width='480'>
<source src='demo.webm' type='video/webm'>
<source src='demo.mp4' type='video/mp4'>
Your browser does not support video.
</video>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!