From d5f6dd6b7f6653facfb468516ef657a2d4d5180c Mon Sep 17 00:00:00 2001 From: MDN Date: Thu, 3 Jun 2021 01:40:04 +0000 Subject: [CRON] sync translated content --- files/ko/_redirects.txt | 1 + files/ko/_wikihistory.json | 12 ++-- .../web/api/offscreencanvas/toblob/index.html | 78 ++++++++++++++++++++++ files/ko/web/api/offscreencanvas/toblob/index.html | 77 --------------------- files/ru/_redirects.txt | 1 + files/ru/_wikihistory.json | 12 ++-- .../getdefaulticeservers/index.html | 57 ++++++++++++++++ .../getdefaulticeservers/index.html | 56 ---------------- files/zh-cn/_redirects.txt | 1 + files/zh-cn/_wikihistory.json | 12 ++-- .../getdefaulticeservers/index.html | 58 ++++++++++++++++ .../getdefaulticeservers/index.html | 57 ---------------- 12 files changed, 214 insertions(+), 208 deletions(-) create mode 100644 files/ko/orphaned/web/api/offscreencanvas/toblob/index.html delete mode 100644 files/ko/web/api/offscreencanvas/toblob/index.html create mode 100644 files/ru/orphaned/web/api/rtcpeerconnection/getdefaulticeservers/index.html delete mode 100644 files/ru/web/api/rtcpeerconnection/getdefaulticeservers/index.html create mode 100644 files/zh-cn/orphaned/web/api/rtcpeerconnection/getdefaulticeservers/index.html delete mode 100644 files/zh-cn/web/api/rtcpeerconnection/getdefaulticeservers/index.html (limited to 'files') diff --git a/files/ko/_redirects.txt b/files/ko/_redirects.txt index 5b0ebefecb..6c9de7b3ba 100644 --- a/files/ko/_redirects.txt +++ b/files/ko/_redirects.txt @@ -631,6 +631,7 @@ /ko/docs/Web/API/NetworkInformation/connection /ko/docs/Web/API/Navigator/connection /ko/docs/Web/API/Node/innerText /ko/docs/Web/API/HTMLElement/innerText /ko/docs/Web/API/Notification.permission /ko/docs/Web/API/Notification/permission +/ko/docs/Web/API/OffscreenCanvas/toBlob /ko/docs/orphaned/Web/API/OffscreenCanvas/toBlob /ko/docs/Web/API/ParentNode /ko/docs/orphaned/Web/API/ParentNode /ko/docs/Web/API/ParentNode/append /ko/docs/orphaned/Web/API/ParentNode/append /ko/docs/Web/API/ParentNode/childElementCount /ko/docs/Web/API/Element/childElementCount diff --git a/files/ko/_wikihistory.json b/files/ko/_wikihistory.json index da7b9258ed..52f3bde621 100644 --- a/files/ko/_wikihistory.json +++ b/files/ko/_wikihistory.json @@ -6162,12 +6162,6 @@ "moonformeli" ] }, - "Web/API/OffscreenCanvas/toBlob": { - "modified": "2020-10-15T22:14:42.795Z", - "contributors": [ - "moonformeli" - ] - }, "Web/API/OffscreenCanvas/width": { "modified": "2020-10-15T22:14:42.247Z", "contributors": [ @@ -18393,6 +18387,12 @@ "connorshea" ] }, + "orphaned/Web/API/OffscreenCanvas/toBlob": { + "modified": "2020-10-15T22:14:42.795Z", + "contributors": [ + "moonformeli" + ] + }, "orphaned/Web/API/ParentNode": { "modified": "2020-10-15T22:08:08.618Z", "contributors": [ diff --git a/files/ko/orphaned/web/api/offscreencanvas/toblob/index.html b/files/ko/orphaned/web/api/offscreencanvas/toblob/index.html new file mode 100644 index 0000000000..f3cf0b08a9 --- /dev/null +++ b/files/ko/orphaned/web/api/offscreencanvas/toblob/index.html @@ -0,0 +1,78 @@ +--- +title: OffscreenCanvas.convertToBlob() +slug: orphaned/Web/API/OffscreenCanvas/toBlob +tags: + - API + - Canvas + - Experimental + - Method + - OffscreenCanvas + - Reference +translation_of: Web/API/OffscreenCanvas/toBlob +original_slug: Web/API/OffscreenCanvas/toBlob +--- +
{{APIRef("Canvas API")}} {{SeeCompatTable}}
+ +

OffscreenCanvas.convertToBlob() 메소드는 캔버스에 포함된 이미지를 표현하는 {{domxref("Blob")}} 객체를 생성합니다.

+ +

구문

+ +
Promise<Blob> OffscreenCanvas.convertToBlob(options);
+ +

매개 변수

+ +
+
options {{optional_inline}}
+
+

객체를 {{domxref("Blob")}} 객체로 전환할 때 다양한 옵션을 줄 수 있습니다.

+ +
const blob = offscreenCanvas.convertToBlob({
+  type: "image/jpeg",
+  quality: 0.95
+});
+ +

options:

+ +
    +
  • type: 이미지 포맷을 가리키는 {{domxref("DOMString")}}. 상세 타입은 image/png
  • +
  • quality: type 옵션이 image/jpeg 혹은 image/webp 일 때 이미지의 품질을 가리키는 01사이의 {{jsxref("Number")}}. 이 매개 변수가 다른 값이라면, 이미지 품질의 기본 설정값이 적용됩니다. 다른 매개 변수들은 무시됩니다.
  • +
+
+
+ +

반환 값

+ +

캔버스에 포함된 이미지를 표현하는 {{domxref("Blob")}} 객체를 반환하는 {{jsxref("Promise")}}

+ +

예시

+ +
var offscreen = new OffscreenCanvas(256, 256);
+var gl = offscreen.getContext("webgl");
+
+// ... gl 컨텍스트를 이용해 무언가를 그립니다 ...
+
+offscreen.convertToBlob().then(function(blob) {
+  console.log(blob);
+});
+
+// Blob { size: 334, type: "image/png" }
+ +

상세

+ +

현재 작성되고 있는 중입니다: OffscreenCanvas.

+ +

브라우저 호환성

+ +
+ + +

{{Compat("api.OffscreenCanvas.convertToBlob")}}

+
+ +

 

+ +

더 보기

+ + diff --git a/files/ko/web/api/offscreencanvas/toblob/index.html b/files/ko/web/api/offscreencanvas/toblob/index.html deleted file mode 100644 index e57eeecfbb..0000000000 --- a/files/ko/web/api/offscreencanvas/toblob/index.html +++ /dev/null @@ -1,77 +0,0 @@ ---- -title: OffscreenCanvas.convertToBlob() -slug: Web/API/OffscreenCanvas/toBlob -tags: - - API - - Canvas - - Experimental - - Method - - OffscreenCanvas - - Reference -translation_of: Web/API/OffscreenCanvas/toBlob ---- -
{{APIRef("Canvas API")}} {{SeeCompatTable}}
- -

OffscreenCanvas.convertToBlob() 메소드는 캔버스에 포함된 이미지를 표현하는 {{domxref("Blob")}} 객체를 생성합니다.

- -

구문

- -
Promise<Blob> OffscreenCanvas.convertToBlob(options);
- -

매개 변수

- -
-
options {{optional_inline}}
-
-

객체를 {{domxref("Blob")}} 객체로 전환할 때 다양한 옵션을 줄 수 있습니다.

- -
const blob = offscreenCanvas.convertToBlob({
-  type: "image/jpeg",
-  quality: 0.95
-});
- -

options:

- -
    -
  • type: 이미지 포맷을 가리키는 {{domxref("DOMString")}}. 상세 타입은 image/png
  • -
  • quality: type 옵션이 image/jpeg 혹은 image/webp 일 때 이미지의 품질을 가리키는 01사이의 {{jsxref("Number")}}. 이 매개 변수가 다른 값이라면, 이미지 품질의 기본 설정값이 적용됩니다. 다른 매개 변수들은 무시됩니다.
  • -
-
-
- -

반환 값

- -

캔버스에 포함된 이미지를 표현하는 {{domxref("Blob")}} 객체를 반환하는 {{jsxref("Promise")}}

- -

예시

- -
var offscreen = new OffscreenCanvas(256, 256);
-var gl = offscreen.getContext("webgl");
-
-// ... gl 컨텍스트를 이용해 무언가를 그립니다 ...
-
-offscreen.convertToBlob().then(function(blob) {
-  console.log(blob);
-});
-
-// Blob { size: 334, type: "image/png" }
- -

상세

- -

현재 작성되고 있는 중입니다: OffscreenCanvas.

- -

브라우저 호환성

- -
- - -

{{Compat("api.OffscreenCanvas.convertToBlob")}}

-
- -

 

- -

더 보기

- - diff --git a/files/ru/_redirects.txt b/files/ru/_redirects.txt index ac286b6904..eca6589283 100644 --- a/files/ru/_redirects.txt +++ b/files/ru/_redirects.txt @@ -453,6 +453,7 @@ /ru/docs/Web/API/ParentNode/prepend /ru/docs/orphaned/Web/API/ParentNode/prepend /ru/docs/Web/API/PositionError /ru/docs/Web/API/GeolocationPositionError /ru/docs/Web/API/Push_API/Using_the_Push_API /ru/docs/conflicting/Web/API/Push_API +/ru/docs/Web/API/RTCPeerConnection/getDefaultIceServers /ru/docs/orphaned/Web/API/RTCPeerConnection/getDefaultIceServers /ru/docs/Web/API/RandomSource /ru/docs/conflicting/Web/API/Crypto/getRandomValues /ru/docs/Web/API/RandomSource/getRandomValues /ru/docs/Web/API/Crypto/getRandomValues /ru/docs/Web/API/SVGAElement/SVGAlement.target /ru/docs/conflicting/Web/API/SVGAElement/target diff --git a/files/ru/_wikihistory.json b/files/ru/_wikihistory.json index 8dc219163b..063ec7acff 100644 --- a/files/ru/_wikihistory.json +++ b/files/ru/_wikihistory.json @@ -10334,12 +10334,6 @@ "mechtool" ] }, - "Web/API/RTCPeerConnection/getDefaultIceServers": { - "modified": "2020-10-15T22:33:11.540Z", - "contributors": [ - "mechtool" - ] - }, "Web/API/RTCPeerConnection/icecandidate_event": { "modified": "2020-11-25T18:23:55.148Z", "contributors": [ @@ -25590,6 +25584,12 @@ "pronskiy" ] }, + "orphaned/Web/API/RTCPeerConnection/getDefaultIceServers": { + "modified": "2020-10-15T22:33:11.540Z", + "contributors": [ + "mechtool" + ] + }, "orphaned/Web/API/Web_Crypto_API/Checking_authenticity_with_password": { "modified": "2019-04-10T04:25:54.752Z", "contributors": [ diff --git a/files/ru/orphaned/web/api/rtcpeerconnection/getdefaulticeservers/index.html b/files/ru/orphaned/web/api/rtcpeerconnection/getdefaulticeservers/index.html new file mode 100644 index 0000000000..d02bdfae84 --- /dev/null +++ b/files/ru/orphaned/web/api/rtcpeerconnection/getdefaulticeservers/index.html @@ -0,0 +1,57 @@ +--- +title: RTCPeerConnection.getDefaultIceServers() +slug: orphaned/Web/API/RTCPeerConnection/getDefaultIceServers +translation_of: Web/API/RTCPeerConnection/getDefaultIceServers +original_slug: Web/API/RTCPeerConnection/getDefaultIceServers +--- +

{{APIRef("WebRTC")}}{{SeeCompatTable}}

+ +

Метод getDefaultIceServers() интерфейса {{domxref("RTCPeerConnection")}} , возвращает массив объектов  {{domxref("RTCIceServer")}}, который указывает, какие серверы ICE браузер будет использовать по умолчанию, если они не указаны в параметре {{domxref("RTCConfiguration")}} конструктора {{domxref("RTCPeerConnection")}} 

+ +

Синтаксис

+ +
 var defaultIceServers = RTCPeerConnection.getDefaultIceServers();
+ +

Возвращаемое значение

+ +

Массив  ICE серверов, определяемые как объекты класса  {{domxref("RTCIceServer")}} , которые браузер будет использовать для соединения, если иное не определено в параметре -  объекте конфигурации конструктора  {{domxref("RTCPeerConnection")}}. Если в браузере нет значений по умолчанию, массив будет пуст. Значение свойства не может быть  null.

+ +

Пример

+ +
var pc = new RTCPeerConnection();
+var iceServers = pc.getDefaultIceServers();
+
+if (iceServers.length === 0) {
+  // Решить проблему отсутствия серверов ICE по умолчанию, возможно, используя наши собственные настройки по умолчанию.
+ +

Спецификации

+ + + + + + + + + + + + + + + + +
СпецификацияСтатусКомментарий
WebRTC Extensions
+ +

Совместимость с браузерами

+ + + +

{{Compat("api.RTCPeerConnection.getDefaultIceServers")}}

+ +

Смотрите также

+ + diff --git a/files/ru/web/api/rtcpeerconnection/getdefaulticeservers/index.html b/files/ru/web/api/rtcpeerconnection/getdefaulticeservers/index.html deleted file mode 100644 index 7772ddcabb..0000000000 --- a/files/ru/web/api/rtcpeerconnection/getdefaulticeservers/index.html +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: RTCPeerConnection.getDefaultIceServers() -slug: Web/API/RTCPeerConnection/getDefaultIceServers -translation_of: Web/API/RTCPeerConnection/getDefaultIceServers ---- -

{{APIRef("WebRTC")}}{{SeeCompatTable}}

- -

Метод getDefaultIceServers() интерфейса {{domxref("RTCPeerConnection")}} , возвращает массив объектов  {{domxref("RTCIceServer")}}, который указывает, какие серверы ICE браузер будет использовать по умолчанию, если они не указаны в параметре {{domxref("RTCConfiguration")}} конструктора {{domxref("RTCPeerConnection")}} 

- -

Синтаксис

- -
 var defaultIceServers = RTCPeerConnection.getDefaultIceServers();
- -

Возвращаемое значение

- -

Массив  ICE серверов, определяемые как объекты класса  {{domxref("RTCIceServer")}} , которые браузер будет использовать для соединения, если иное не определено в параметре -  объекте конфигурации конструктора  {{domxref("RTCPeerConnection")}}. Если в браузере нет значений по умолчанию, массив будет пуст. Значение свойства не может быть  null.

- -

Пример

- -
var pc = new RTCPeerConnection();
-var iceServers = pc.getDefaultIceServers();
-
-if (iceServers.length === 0) {
-  // Решить проблему отсутствия серверов ICE по умолчанию, возможно, используя наши собственные настройки по умолчанию.
- -

Спецификации

- - - - - - - - - - - - - - - - -
СпецификацияСтатусКомментарий
WebRTC Extensions
- -

Совместимость с браузерами

- - - -

{{Compat("api.RTCPeerConnection.getDefaultIceServers")}}

- -

Смотрите также

- - diff --git a/files/zh-cn/_redirects.txt b/files/zh-cn/_redirects.txt index c8f0a43894..520feafe08 100644 --- a/files/zh-cn/_redirects.txt +++ b/files/zh-cn/_redirects.txt @@ -1745,6 +1745,7 @@ /zh-CN/docs/Web/API/Position/coords /zh-CN/docs/Web/API/GeolocationPosition/coords /zh-CN/docs/Web/API/PositionError /zh-CN/docs/Web/API/GeolocationPositionError /zh-CN/docs/Web/API/Push_API/Using_the_Push_API /zh-CN/docs/conflicting/Web/API/Push_API +/zh-CN/docs/Web/API/RTCPeerConnection/getDefaultIceServers /zh-CN/docs/orphaned/Web/API/RTCPeerConnection/getDefaultIceServers /zh-CN/docs/Web/API/RandomSource /zh-CN/docs/conflicting/Web/API/Crypto/getRandomValues /zh-CN/docs/Web/API/RandomSource/getRandomValues /zh-CN/docs/Web/API/Crypto/getRandomValues /zh-CN/docs/Web/API/Response/克隆 /zh-CN/docs/Web/API/Response/clone diff --git a/files/zh-cn/_wikihistory.json b/files/zh-cn/_wikihistory.json index 4240db30b9..d806e90c32 100644 --- a/files/zh-cn/_wikihistory.json +++ b/files/zh-cn/_wikihistory.json @@ -19487,12 +19487,6 @@ "SDUTWSL" ] }, - "Web/API/RTCPeerConnection/getDefaultIceServers": { - "modified": "2020-10-15T22:29:03.476Z", - "contributors": [ - "lauhua" - ] - }, "Web/API/RTCPeerConnection/getReceivers": { "modified": "2020-10-15T22:34:32.923Z", "contributors": [ @@ -50377,6 +50371,12 @@ "JoshOY" ] }, + "orphaned/Web/API/RTCPeerConnection/getDefaultIceServers": { + "modified": "2020-10-15T22:29:03.476Z", + "contributors": [ + "lauhua" + ] + }, "orphaned/Web/API/TextRange/text": { "modified": "2020-02-26T01:25:35.461Z", "contributors": [ diff --git a/files/zh-cn/orphaned/web/api/rtcpeerconnection/getdefaulticeservers/index.html b/files/zh-cn/orphaned/web/api/rtcpeerconnection/getdefaulticeservers/index.html new file mode 100644 index 0000000000..ff36e1741e --- /dev/null +++ b/files/zh-cn/orphaned/web/api/rtcpeerconnection/getdefaulticeservers/index.html @@ -0,0 +1,58 @@ +--- +title: RTCPeerConnection.getDefaultIceServers() +slug: orphaned/Web/API/RTCPeerConnection/getDefaultIceServers +translation_of: Web/API/RTCPeerConnection/getDefaultIceServers +original_slug: Web/API/RTCPeerConnection/getDefaultIceServers +--- +

{{APIRef("WebRTC")}}{{SeeCompatTable}}

+ +

{{domxref("RTCPeerConnection")}} 接口的方法 getDefaultIceServers() 返回一个基于  {{domxref("RTCIceServer")}} 字典的对象数组。如果在 {{domxref("RTCPeerConnection")}} 的 {{domxref("RTCConfiguration")}} 中没有设置,该数组指向浏览器缺省使用的ICE servers,前提是浏览器确实存在缺省的ICE servers。然而,浏览器完全不必提供任何的缺省ICE Servers。

+ +

语法

+ +
 var defaultIceServers = RTCPeerConnection.getDefaultIceServers();
+ +

返回值

+ +

一个 ICE servers 的数组,以基于 {{domxref("RTCIceServer")}} 的对象组成,当没有在 {{domxref("RTCPeerConnection")}} 的设置中进行设置时,浏览器将使用它们。如果浏览器没有提供缺省值,将返回一个空数组,该属性的值永远不是 null

+ +

例子

+ +
var pc = new RTCPeerConnection();
+var iceServers = pc.getDefaultIceServers();
+
+if (iceServers.length === 0) {
+  // Deal with the lack of default ICE servers, possibly by using our own defaults
+}
+ +

Specifications

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
WebRTC Extensions
+ +

Browser compatibility

+ + + +

{{Compat("api.RTCPeerConnection.getDefaultIceServers")}}

+ +

See also

+ + diff --git a/files/zh-cn/web/api/rtcpeerconnection/getdefaulticeservers/index.html b/files/zh-cn/web/api/rtcpeerconnection/getdefaulticeservers/index.html deleted file mode 100644 index 96c8496248..0000000000 --- a/files/zh-cn/web/api/rtcpeerconnection/getdefaulticeservers/index.html +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: RTCPeerConnection.getDefaultIceServers() -slug: Web/API/RTCPeerConnection/getDefaultIceServers -translation_of: Web/API/RTCPeerConnection/getDefaultIceServers ---- -

{{APIRef("WebRTC")}}{{SeeCompatTable}}

- -

{{domxref("RTCPeerConnection")}} 接口的方法 getDefaultIceServers() 返回一个基于  {{domxref("RTCIceServer")}} 字典的对象数组。如果在 {{domxref("RTCPeerConnection")}} 的 {{domxref("RTCConfiguration")}} 中没有设置,该数组指向浏览器缺省使用的ICE servers,前提是浏览器确实存在缺省的ICE servers。然而,浏览器完全不必提供任何的缺省ICE Servers。

- -

语法

- -
 var defaultIceServers = RTCPeerConnection.getDefaultIceServers();
- -

返回值

- -

一个 ICE servers 的数组,以基于 {{domxref("RTCIceServer")}} 的对象组成,当没有在 {{domxref("RTCPeerConnection")}} 的设置中进行设置时,浏览器将使用它们。如果浏览器没有提供缺省值,将返回一个空数组,该属性的值永远不是 null

- -

例子

- -
var pc = new RTCPeerConnection();
-var iceServers = pc.getDefaultIceServers();
-
-if (iceServers.length === 0) {
-  // Deal with the lack of default ICE servers, possibly by using our own defaults
-}
- -

Specifications

- - - - - - - - - - - - - - - - -
SpecificationStatusComment
WebRTC Extensions
- -

Browser compatibility

- - - -

{{Compat("api.RTCPeerConnection.getDefaultIceServers")}}

- -

See also

- - -- cgit v1.2.3-54-g00ecf