![image capture extension image capture extension](https://i.ytimg.com/vi/8X0kLXlyxN0/hqdefault.jpg)
Gather data from the track underlying source with the defined photoSettings and into a Blob containing a single still image. If the readyState of track provided in the constructor is not live, return a promise rejected with a new DOMException whose name is InvalidStateError, and abort these steps.When this method is invoked, the user agent MUST run the following steps: TakePhoto(optional PhotoSettings photoSettings) takePhoto() produces the result of a single photographic exposure using the video capture device sourcing the track and including any PhotoSettings configured, returning an encoded image in the form of a Blob if successful. The MediaStreamTrack passed to the constructor MUST have its kind attribute set to "video" otherwise a DOMException of type NotSupportedError will be thrown. This will be the value of the track attribute. MediaStreamTrack ✘ ✘ The MediaStreamTrack to be used as source of data. Methods ImageCapture(MediaStreamTrack videoTrack) Parameter Attributes track, of type MediaStreamTrack, readonly The MediaStreamTrack passed into the constructor.ģ.2. TakePhoto() returns a captured image encoded in the form of a Blob, whereas grabFrame() returns a snapshot of the track video feed in the form of a non-encoded ImageBitmap. Readonly attribute MediaStreamTrack track Promise takePhoto( optional PhotoSettings photoSettings = ) Ĭonstructor( MediaStreamTrack videoTrack ) Any Promise object is assumed to have a resolver object, with resolve() and reject() methods associated with it. The User Agent must support Promises in order to implement the Image Capture API. EXIF) might transmit more private data than the user is expecting. Moreover, implementors should take care to prevent additional leakage of privacy-sensitive data from captured images.įor instance, embedding the user’s location in the metadata of the digitzed image (e.g. The privacy and security considerations discussed in apply to this extension specification. Manipulating video-related capabilities, current settings and constraints is done via the MediaStreamTrack extension mechanism. Photo-specific capabilities and current settings can be retrieved via getPhotoCapabilities()/ getPhotoSettings() and configured via takePhoto()'s PhotoSettings argument. Reading capabilities and settings and applying constraints is done in one of two ways depending on whether it impacts the video MediaStreamTrack or not. The produced image can be in the form of a Blob (see takePhoto() method) or as a ImageBitmap (see grabFrame()). The API defined in this document captures images from a photographic device referenced through a valid MediaStreamTrack.
#Image capture extension update#
![image capture extension image capture extension](https://umaar.com/assets/images/dev-tips/screenshot-capture.gif)
9.5 Additional Constrainable Properties.9.1 MediaTrackSupportedConstraints dictionary.This document is governed by the 15 September 2020 W3C Process Document. That page also includes instructions for disclosing a patent.Īn individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group
![image capture extension image capture extension](https://twilio-cms-prod.s3.amazonaws.com/images/a6j_tELs5IdYTELnS_v2W7sroB_PuUNIAVhggHaroRhquo.width-500.png)
![image capture extension image capture extension](https://www.screenshotonpc.com/wp-content/uploads/2020/06/full-page-screen-capture-website-download-link-2.png)
This document was produced by a group operating under This document was produced by the Web Real-Time Communications Working Group. Please put the text “image-capture” in the subject, If you wish to make comments regarding this document, please send them to ( subscribe, archives). Its publication here does not imply endorsement of its contents by W3C.ĭon’t cite this document other than as work in progress. It is provided for discussion only and may change at any moment. This is a public copy of the editors’ draft.