From 980fe00a74a9ad013b945755415ace2e5429c3c2 Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Wed, 27 Oct 2021 02:31:24 +0300 Subject: [RU] Remove notranslate (#2874) --- .../web/api/rtcpeerconnection/cantrickleicecandidates/index.html | 4 ++-- files/ru/web/api/rtcpeerconnection/connectionstate/index.html | 4 ++-- .../web/api/rtcpeerconnection/currentlocaldescription/index.html | 4 ++-- .../web/api/rtcpeerconnection/currentremotedescription/index.html | 4 ++-- files/ru/web/api/rtcpeerconnection/icecandidate_event/index.html | 8 ++++---- files/ru/web/api/rtcpeerconnection/rtcpeerconnection/index.html | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) (limited to 'files/ru/web/api/rtcpeerconnection') diff --git a/files/ru/web/api/rtcpeerconnection/cantrickleicecandidates/index.html b/files/ru/web/api/rtcpeerconnection/cantrickleicecandidates/index.html index ac8aca39be..ec6d3f43cd 100644 --- a/files/ru/web/api/rtcpeerconnection/cantrickleicecandidates/index.html +++ b/files/ru/web/api/rtcpeerconnection/cantrickleicecandidates/index.html @@ -17,7 +17,7 @@ translation_of: Web/API/RTCPeerConnection/canTrickleIceCandidates

Синтаксис

-
 var canTrickle = RTCPeerConnection.canTrickleIceCandidates;
+
 var canTrickle = RTCPeerConnection.canTrickleIceCandidates;

Значение

@@ -29,7 +29,7 @@ translation_of: Web/API/RTCPeerConnection/canTrickleIceCandidates

Пример

-
var pc = new RTCPeerConnection();
+
var pc = new RTCPeerConnection();
 // Следующий код может быть использован для обработки предложения от пира, когда
 // он не знает поддерживает ли он просачивание
 pc.setRemoteDescription(remoteOffer)
diff --git a/files/ru/web/api/rtcpeerconnection/connectionstate/index.html b/files/ru/web/api/rtcpeerconnection/connectionstate/index.html
index 146332e983..84a6b0ca74 100644
--- a/files/ru/web/api/rtcpeerconnection/connectionstate/index.html
+++ b/files/ru/web/api/rtcpeerconnection/connectionstate/index.html
@@ -11,7 +11,7 @@ translation_of: Web/API/RTCPeerConnection/connectionState
 
 

Синтаксис

-
var connectionState = RTCPeerConnection.connectionState;
+
var connectionState = RTCPeerConnection.connectionState;

Значение

@@ -21,7 +21,7 @@ translation_of: Web/API/RTCPeerConnection/connectionState

Пример

-
var pc = new RTCPeerConnection(configuration);
+
var pc = new RTCPeerConnection(configuration);
 
 /* ... */
 
diff --git a/files/ru/web/api/rtcpeerconnection/currentlocaldescription/index.html b/files/ru/web/api/rtcpeerconnection/currentlocaldescription/index.html
index 3b094fd432..054c4b49c5 100644
--- a/files/ru/web/api/rtcpeerconnection/currentlocaldescription/index.html
+++ b/files/ru/web/api/rtcpeerconnection/currentlocaldescription/index.html
@@ -15,7 +15,7 @@ translation_of: Web/API/RTCPeerConnection/currentLocalDescription
 
 

Синтаксис

-
sessionDescription = RTCPeerConnection.currentLocalDescription;
+
sessionDescription = RTCPeerConnection.currentLocalDescription;

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

@@ -25,7 +25,7 @@ translation_of: Web/API/RTCPeerConnection/currentLocalDescription

В этом примере рассматривается свойство currentLocalDescription  и отображается предупреждение, содержащее свойства объекта {{domxref("RTCSessionDescription")}}  type и sdp .

-
var pc = new RTCPeerConnection();
+
var pc = new RTCPeerConnection();
 …
 var sd = pc.currentLocalDescription;
 if (sd) {
diff --git a/files/ru/web/api/rtcpeerconnection/currentremotedescription/index.html b/files/ru/web/api/rtcpeerconnection/currentremotedescription/index.html
index 2b6aef35ae..b03d5ecfbf 100644
--- a/files/ru/web/api/rtcpeerconnection/currentremotedescription/index.html
+++ b/files/ru/web/api/rtcpeerconnection/currentremotedescription/index.html
@@ -15,7 +15,7 @@ translation_of: Web/API/RTCPeerConnection/currentRemoteDescription
 
 

Синтаксис

-
sessionDescription = RTCPeerConnection.currentRemoteDescription;
+
sessionDescription = RTCPeerConnection.currentRemoteDescription;

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

@@ -25,7 +25,7 @@ translation_of: Web/API/RTCPeerConnection/currentRemoteDescription

Пример рассматривает свойство  currentRemoteDescription и отображает предупреждение, содержащее значения свойств  type и sdp ,объекта {{domxref("RTCSessionDescription")}}.

-
var pc = new RTCPeerConnection();
+
var pc = new RTCPeerConnection();
 …
 var sd = pc.currentRemoteDescription;
 if (sd) {
diff --git a/files/ru/web/api/rtcpeerconnection/icecandidate_event/index.html b/files/ru/web/api/rtcpeerconnection/icecandidate_event/index.html
index 4cf9d46d46..781f299272 100644
--- a/files/ru/web/api/rtcpeerconnection/icecandidate_event/index.html
+++ b/files/ru/web/api/rtcpeerconnection/icecandidate_event/index.html
@@ -36,7 +36,7 @@ translation_of: Web/API/RTCPeerConnection/icecandidate_event
 
 

В основном события icecandidate происходят, чтобы указать, что новый кандидат был построен (gathered). Этого кандидата нужно доставить удалённому клиенту (remote peer) через канал сигнализации (signaling channel), которым управляет ваш код.

-
rtcPeerConnection.onicecandidate = (event) => {
+
rtcPeerConnection.onicecandidate = (event) => {
   if (event.candidate) {
     sendCandidateToRemotePeer(event.candidate)
   } else {
@@ -63,7 +63,7 @@ translation_of: Web/API/RTCPeerConnection/icecandidate_event
 
 

If you need to perform any special actions when there are no further candidates expected, you're much better off watching the ICE gathering state by watching for {{domxref("RTCPeerConnection.icegatheringstatechange_event", "icegatheringstatechange")}} events:

-
pc.addEventListener("icegatheringstatechange", ev => {
+
pc.addEventListener("icegatheringstatechange", ev => {
   switch(pc.iceGatheringState) {
     case "new":
       /* gathering is either just starting or has been reset */
@@ -88,7 +88,7 @@ translation_of: Web/API/RTCPeerConnection/icecandidate_event
 
 

First, an example using {{domxref("EventTarget.addEventListener", "addEventListener()")}}:

-
pc.addEventListener("icecandidate", ev => {
+
pc.addEventListener("icecandidate", ev => {
   if (ev.candidate) {
     sendMessage({
       type: "new-ice-candidate",
@@ -100,7 +100,7 @@ translation_of: Web/API/RTCPeerConnection/icecandidate_event
 
 

You can also set the {{domxref("RTCPeerConnection.onicecandidate", "onicecandidate")}} event handler property directly:

-
pc.onicecandidate = ev => {
+
pc.onicecandidate = ev => {
   if (ev.candidate) {
     sendMessage({
       type: "new-ice-candidate",
diff --git a/files/ru/web/api/rtcpeerconnection/rtcpeerconnection/index.html b/files/ru/web/api/rtcpeerconnection/rtcpeerconnection/index.html
index 2073990cd1..36609588b4 100644
--- a/files/ru/web/api/rtcpeerconnection/rtcpeerconnection/index.html
+++ b/files/ru/web/api/rtcpeerconnection/rtcpeerconnection/index.html
@@ -9,7 +9,7 @@ translation_of: Web/API/RTCPeerConnection/RTCPeerConnection
 
 

Синтаксис

-
pc = new RTCPeerConnection([configuration]);
+
pc = new RTCPeerConnection([configuration]);

Параметры

-- cgit v1.2.3-54-g00ecf