aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/canvascapturemediastreamtrack/canvas/index.html
blob: de8703deb5a8bc408f6efaa2fc22bd0aa8c593cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
title: CanvasCaptureMediaStreamTrack.canvas
slug: Web/API/CanvasCaptureMediaStreamTrack/canvas
tags:
  - 웹
  - 캔버스
translation_of: Web/API/CanvasCaptureMediaStreamTrack/canvas
---
<div>{{APIRef}}</div>

<p>The {{domxref("CanvasCaptureMediaStreamTrack")}} <strong><code>canvas</code></strong>읽기 전용 속성은 프레임이 캡쳐되는{{domxref("HTMLCanvasElement")}} 를 반환한다.</p>

<h2 id="구문">구문</h2>

<pre class="syntaxbox notranslate">var <var>elt</var> = <var>stream</var>.canvas;
</pre>

<h3 id="값"></h3>

<p><code><font face="Arial, x-locale-body, sans-serif"><span style="background-color: #ffffff;">캡처되는 프레임의 원본인 canvas를 나타내는 </span></font>HTMLCanvasElement</code> .</p>

<h2 id="예시">예시</h2>

<pre class="brush: js notranslate">// 캡처할 canvas 요소 찾기
var canvasElt = document.getElementsByTagName("canvas")[0];

// stream 얻기
var stream = canvasElt.captureStream(25); // 25 FPS

// stream 처리하기
...

// stream과 연결된 canvas 가져오기
var canvas = stream.canvas;
</pre>

<h2 id="명세">명세</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">명세</th>
   <th scope="col">상태</th>
   <th scope="col">내용</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('Media Capture DOM Elements', '#dom-canvascapturemediastreamtrack-canvas', 'CanvasCaptureMediaStreamTrack.canvas')}}</td>
   <td>{{Spec2('Media Capture DOM Elements')}}</td>
   <td>Initial definition</td>
  </tr>
 </tbody>
</table>

<h2 id="브라우저_호환성">브라우저 호환성</h2>

<div>
<div class="hidden">이 페이지의 호환성 표는 구조화된 데이터에서 생성됩니다. 만약 데이터에 기여하고 싶다면,   <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a>을 확인하여 pull request를 보내주세요.</div>

<p>{{Compat("api.CanvasCaptureMediaStreamTrack.canvas")}}</p>
</div>

<h2 id="더_보기">더 보기</h2>

<ul>
 <li>{{domxref("HTMLCanvasElement.captureStream()")}} to create a stream to capture a given canvas element.</li>
 <li>{{HTMLElement("canvas")}}</li>
</ul>