In Chrome, “Media capture” refers to the features and user interfaces that enable the browser to capture pixels and audio from itself or the underlying OS. It also covers the Web APIs that allow Web applications to obtain captured media.
This is an index of media capture related documentation elsewhere, organized by component/feature. This list is incomplete; additional documentation can be found in code comments and/or Monorail issue threads in the components listed below.
//media/capture/video//services/video_captureInternals>Media>CameraCapture//media/audio//services/audioInternals>Media>AudioCapture//third_party/webrtc/modules/desktop_capture//content/browser/media/capture/desktop_capture_device_mac.cc//content/browser/media/capture/desktop/desktop_capturer_lacros.ccInternals>Media>ScreenCapture//media/audio/win/audio_low_latency_input_win.cc//media/audio/cras/cras_input.ccInternals>Media>Audio//services/audio/loopback_stream.ccInternals>Media>AudioViz supports capture of Chrome tabs and windows on all platforms, and capture of the desktop on ChromeOS.
Familiarity with Viz, the Chrome compositor, is a prerequisite to understanding how surface capture works.
//content/browser/media/capture/web_contents_video_capture_device.cc//components/viz/service/frame_sinks/video_capture//components/viz/common/frame_sinks/copy_output_request.ccInternals>Media>SurfaceCaptureAllows the user to select a tab/window/desktop in response to a getDisplayMedia request.
//chrome/browser/media/webrtc//chrome/browser/ui/views/desktop_captureNot a UI surface, but an API that allows a web application using getDisplayMedia() to control whether or not the captured tab/window is focused (activated) or not when tab/window capture begins.
Widget that tells the user when the desktop is being captured.
//chrome/browser/ui/screen_capture_notification_ui.cc//chrome/browser/ui/views/screen_capture_notification_ui_views.cc//chrome/browser/chromeos/ui/screen_capture_notification_ui_chromeos.ccShows the user what tab is being captured and allows them to stop or switch tabs.
//chrome/browser/media/webrtc/media_stream_capture_indicator.cc//chrome/browser/ui/tab_sharing//chrome/browser/ui/views/tab_sharing.ccAllows the user to switch the camera/microphone used for capture via an icon in the omnibox.
//chrome/browser/ui/content_settings/content_settings_bubble_model.ccWeb API for Web applications to capture camera and microphone input.
//third_party/blink/renderer/modules/mediastream/Blink>GetUserMediaWeb API for Web applications to capture screen contents and system/tab audio.
//third_party/blink/renderer/modules/mediastream/Blink>GetDisplayMediaNot all media capture features are listed above; here are some additional capture features in Chrome. For more information about these, contact developers at the address below.
<video>, <canvas>)Questions about media capture features, APIs, or user interfaces can be sent to media-capture-dev@chromium.org.