From 290cf8a7b6bf52a0f406451e6a04e1e406bd7f2e Mon Sep 17 00:00:00 2001 From: alattalatta Date: Fri, 10 Dec 2021 18:20:30 +0900 Subject: [ko] Resolve conflicts and orphans (#3168) * Resolve conflicts and orphans * Remove inheritance notes from Navigator --- .../imagecapture/getphotocapabilities/index.html | 79 ---------------------- 1 file changed, 79 deletions(-) delete mode 100644 files/ko/web/api/imagecapture/getphotocapabilities/index.html (limited to 'files/ko/web/api/imagecapture/getphotocapabilities/index.html') diff --git a/files/ko/web/api/imagecapture/getphotocapabilities/index.html b/files/ko/web/api/imagecapture/getphotocapabilities/index.html deleted file mode 100644 index 9ee855a96d..0000000000 --- a/files/ko/web/api/imagecapture/getphotocapabilities/index.html +++ /dev/null @@ -1,79 +0,0 @@ ---- -title: ImageCapture.getPhotoCapabilities() -slug: Web/API/ImageCapture/getPhotoCapabilities -tags: - - API - - Experimental - - ImageCapture - - MediaStream Image Capture API - - Method - - Reference -translation_of: Web/API/ImageCapture/getPhotoCapabilities ---- -
{{APIRef("MediaStream Image")}}
- -

{{domxref("ImageCapture")}} 인터페이스의 getPhotoCapabilities() 메서드는 사용 가능한 설정 옵션을 담은 {{domxref("PhotoCapabilities")}} 객체로 이행하는 {{jsxref("Promise")}}를 반환합니다.

- -

구문

- -
const capabilitiesPromise = imageCaptureObj.getPhotoCapabilities()
- -

반환 값

- -

{{domxref("PhotoCapabilities")}} 객체로 이행하는 {{jsxref("Promise")}}.

- -

예제

- -

다음 예제는 Chrome의 Image Capture / Photo Resolution Sample에서 가져온 코드로, getPhotoCapabilities()를 사용해 범위 입력 칸의 크기를 수정합니다. 또한 장치의 {{domxref("MediaStream")}}에서 가져온 {{domxref("MediaStreamTrack")}} 객체를 사용해 {{domxref("ImageCapture")}} 객체를 생성하는 부분도 포함하고 있습니다.

- -
const input = document.querySelector('input[type="range"]');
-
-var imageCapture;
-
-navigator.mediaDevices.getUserMedia({video: true})
-.then(mediaStream => {
-  document.querySelector('video').srcObject = mediaStream;
-
-  const track = mediaStream.getVideoTracks()[0];
-  imageCapture = new ImageCapture(track);
-
-  return imageCapture.getPhotoCapabilities();
-})
-.then(photoCapabilities => {
-  const settings = imageCapture.track.getSettings();
-
-  input.min = photoCapabilities.imageWidth.min;
-  input.max = photoCapabilities.imageWidth.max;
-  input.step = photoCapabilities.imageWidth.step;
-
-  return imageCapture.getPhotoSettings();
-})
-.then(photoSettings => {
-  input.value = photoSettings.imageWidth;
-})
-.catch(error => console.log('Argh!', error.name || error));
- -

명세

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('MediaStream Image','#dom-imagecapture-getphotocapabilities','getPhotoCapabilities()')}}{{Spec2('MediaStream Image')}}Initial definition.
- -

브라우저 호환성

- -
- - -

{{Compat("api.ImageCapture.getPhotoCapabilities")}}

-
-- cgit v1.2.3-54-g00ecf