Skip to content

Commit

Permalink
WebRTC API add
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee committed Aug 15, 2023
1 parent 04ce2d1 commit 17074f9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions files/en-us/web/api/webrtc_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ These interfaces, dictionaries, and types are used to set up, open, and manage W
- : The state of the `RTCIceTransport` has changed.
- {{domxref("RTCSctpTransport.statechange_event", "statechange")}}
- : The state of the `RTCSctpTransport` has changed.
- {{DOMxRef("DedicatedWorkerGlobalScope.rtctransform_event", "rtctransform")}}
- : An encoded video or audio frame is ready to process using a transform stream in a worker.

#### Types

Expand Down Expand Up @@ -149,6 +151,33 @@ These interfaces and events are related to interactivity with Public-Switched Te
- {{domxref("RTCDTMFSender.tonechange_event", "tonechange")}}
- : Either a new {{Glossary("DTMF")}} tone has begun to play over the connection, or the last tone in the `RTCDTMFSender`'s {{domxref("RTCDTMFSender.toneBuffer", "toneBuffer")}} has been sent and the buffer is now empty. The event's type is {{domxref("RTCDTMFToneChangeEvent")}}.

### Encoded Transforms

These interfaces and events are used to process incoming and outgoing encoded video and audio frames using a transform stream running in a worker.

#### Interfaces

- {{DOMxRef("RTCRtpScriptTransform")}}
- : An interface for inserting transform stream(s) running in a worker into the RTC pipeline.
- {{DOMxRef("RTCRtpScriptTransformer")}}
- : The worker-side counterpart of an `RTCRtpScriptTransform` that passes options from the main thread, along with a readable stream and writeable stream that can be used to pipe encoded frames through a {{DOMxRef("TransformStream")}}.
- {{DOMxRef("RTCEncodedVideoFrame")}}
- : Represents an encoded video frame to be transformed in the RTC pipeline.
- {{DOMxRef("RTCEncodedAudioFrame")}}
- : Represents an encoded audio frame to be transformed in the RTC pipeline.

#### Properties

- {{DOMxRef("RTCRtpReceiver.transform")}}
- : A property used to insert a transform stream into the receiver pipeline for incoming encoded video and audio frames.
- {{DOMxRef("RTCRtpSender.transform")}}
- : A property used to insert a transform stream into the sender pipeline for outgoing encoded video and audio frames.

#### Events

- {{DOMxRef("DedicatedWorkerGlobalScope.rtctransform_event", "rtctransform")}}
- : An RTC transform is ready to run in the worker, or an encoded video or audio frame is ready to process.

## Guides

- [Introduction to WebRTC protocols](/en-US/docs/Web/API/WebRTC_API/Protocols)
Expand All @@ -167,6 +196,8 @@ These interfaces and events are related to interactivity with Public-Switched Te
- : This guide covers how you can use a peer connection and an associated {{DOMxRef("RTCDataChannel")}} to exchange arbitrary data between two peers.
- [Using DTMF with WebRTC](/en-US/docs/Web/API/WebRTC_API/Using_DTMF)
- : WebRTC's support for interacting with gateways that link to old-school telephone systems includes support for sending DTMF tones using the {{DOMxRef("RTCDTMFSender")}} interface. This guide shows how to do so.
- [Using WebRTC Encoded Transforms](/en-US/docs/Web/API/WebRTC_API/Using_Encoded_Transforms)
- : Xxxxxx

## Tutorials

Expand Down

0 comments on commit 17074f9

Please sign in to comment.