HTML5 Audio and Video Flashcards
6 cards from real HTML5 practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 6 HTML5 Audio and Video flashcards as text
What is the Web Audio API primarily used for?
Answer: Processing and synthesizing audio in the browser with JavaScript
The Web Audio API provides a powerful system for controlling, processing, and synthesizing audio using an audio graph of nodes.
Which API is used to capture audio and video from a user's webcam and microphone?
Answer: MediaDevices.getUserMedia()
The getUserMedia() method of the MediaDevices API prompts the user for permission and returns a MediaStream from the camera or microphone.
What does the MediaRecorder API enable in HTML5?
Answer: Recording audio/video streams directly in the browser
The MediaRecorder API provides functionality to record MediaStream data, saving audio and video blobs that can be downloaded or processed.
Which video codec is widely supported by HTML5 browsers and uses the .mp4 container?
Answer: H.264 (AVC)
H.264 (AVC) in an MP4 container has the broadest HTML5 browser support across desktop and mobile platforms.
What event fires on an HTML5 media element when playback has reached the end?
Answer: ended
The 'ended' event is fired when playback or streaming has stopped because the end of the media was reached.
What does the 'poster' attribute on an HTML5 element specify?
Answer: An image to display before the video plays
The poster attribute specifies the URL of an image to display as the video's placeholder before the user plays it.