You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Media Capture and Streams API enables web applications to capture audio, video, and images from the user's device using the device's built-in camera and microphone. This API provides methods for accessing media devices, capturing media streams, and recording audio and video. It also allows for advanced features such as real-time audio and video processing and manipulation. The Media Capture and Streams API empowers developers to create rich multimedia experiences directly within the browser.
During the recording, I mentioned the **File API** class and referred to the MDN documentation for the `<input type="file">` element. You can read more about it here: [MDN Docs - `<input type="file>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/file).
4
+
5
+
Additionally, I demonstrated the `<pre>` HTML tag, which is useful for displaying preformatted text. You can find more details on this tag at [W3Schools - `<pre>` Tag](https://www.w3schools.com/tags/tag_pre.asp).
6
+
7
+
We also explored the `FileReader` API, specifically the `readAsDataURL` method, which allows you to convert an image to Base64 format. For more information, check out: [MDN Docs - FileReader.readAsDataURL](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL).
8
+
9
+
Finally, we reviewed the Base64-encoded image using the [Base64 Guru](https://base64.guru/) website.
# Media Capture and Streams API - Additional Resources
2
+
3
+
Here are some useful documentation links we visited during the recording. Feel free to explore and experiment with the options:
4
+
5
+
1.[MDN: HTML Attribute Reference - `accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/accept)
6
+
2.[MDN: HTML Attribute Reference - `capture`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/capture)
7
+
8
+
Additionally, we referred to a popular Stack Overflow discussion where it was clarified that the `capture` attribute does not require the value `"camera"`:
9
+
10
+
-[Stack Overflow: HTML5 Input Type File Accept Image Capture Camera Display as Image](https://stackoverflow.com/questions/23916566/html5-input-type-file-accept-image-capture-camera-display-as-image-rat)
[Learn more about the WebRTC API and how to play with different settings using `getUserMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia). This link provides detailed documentation and examples to help you explore the API further.
0 commit comments