---
title: "RTCRtpReceiver | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface RTCRtpReceiver

The **`RTCRtpReceiver`** interface of the WebRTC API manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver)

interface RTCRtpReceiver {  
    [jitterBufferTarget](#jitterbuffertarget): number | null;  
    [track](#track): [MediaStreamTrack](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MediaStreamTrack/);  
    [transform](#transform): [RTCRtpScriptTransform](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCRtpScriptTransform/) | null;  
    [transport](#transport): [RTCDtlsTransport](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCDtlsTransport/) | null;  
    [getContributingSources](#getcontributingsources-1)(): [RTCRtpContributingSource](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCRtpContributingSource/)\[\];  
    [getParameters](#getparameters-1)(): [RTCRtpReceiveParameters](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCRtpReceiveParameters/);  
    [getStats](#getstats-1)(): Promise<[RTCStatsReport](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCStatsReport/)\>;  
    [getSynchronizationSources](#getsynchronizationsources-1)(): [RTCRtpSynchronizationSource](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCRtpSynchronizationSource/)\[\];  
}

##### Index

### Properties[](#properties)

[jitterBufferTarget](#jitterbuffertarget) [track](#track) [transform](#transform) [transport](#transport)

### Methods[](#methods)

[getContributingSources](#getcontributingsources) [getParameters](#getparameters) [getStats](#getstats) [getSynchronizationSources](#getsynchronizationsources)

## Properties[](#properties-1)

### jitterBufferTarget[](#jitterbuffertarget)

jitterBufferTarget: number | null

The **`jitterBufferTarget`** property of the RTCRtpReceiver interface is a DOMHighResTimeStamp that indicates the application's preferred duration, in milliseconds, for which the jitter buffer should hold media before playing it out.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)

### `Readonly`track[](#track)

track: [MediaStreamTrack](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MediaStreamTrack/)

The **`track`** read-only property of the RTCRtpReceiver interface returns the MediaStreamTrack associated with the current RTCRtpReceiver instance.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track)

### transform[](#transform)

transform: [RTCRtpScriptTransform](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCRtpScriptTransform/) | null

The **`transform`** property of the RTCRtpReceiver object is used to insert a transform stream (TransformStream) running in a worker thread into the receiver pipeline. This allows stream transforms to be applied to encoded video and audio frames as they arrive from the packetizer (before they are played/rendered).

[MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform)

### `Readonly`transport[](#transport)

transport: [RTCDtlsTransport](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCDtlsTransport/) | null

The read-only **`transport`** property of an RTCRtpReceiver object provides the RTCDtlsTransport object used to interact with the underlying transport over which the receiver is exchanging Real-time Transport Control Protocol (RTCP) packets.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transport)

## Methods[](#methods-1)

### getContributingSources[](#getcontributingsources)

-   getContributingSources(): [RTCRtpContributingSource](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCRtpContributingSource/)\[\][](#getcontributingsources-1)
    
    The **`getContributingSources()`** method of the RTCRtpReceiver interface returns an array of objects, each corresponding to one CSRC (contributing source) identifier received by the current RTCRtpReceiver in the last ten seconds.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getContributingSources)
    
    #### Returns [RTCRtpContributingSource](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCRtpContributingSource/)\[\]
    

### getParameters[](#getparameters)

-   getParameters(): [RTCRtpReceiveParameters](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCRtpReceiveParameters/)[](#getparameters-1)
    
    The **`getParameters()`** method of the RTCRtpReceiver interface returns an object describing the current configuration for how the receiver's track is decoded.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getParameters)
    
    #### Returns [RTCRtpReceiveParameters](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCRtpReceiveParameters/)
    

### getStats[](#getstats)

-   getStats(): Promise<[RTCStatsReport](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCStatsReport/)\>[](#getstats-1)
    
    The RTCRtpReceiver method **`getStats()`** asynchronously requests an RTCStatsReport object which provides statistics about incoming traffic on the owning RTCPeerConnection, returning a Promise whose fulfillment handler will be called once the results are available.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getStats)
    
    #### Returns Promise<[RTCStatsReport](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCStatsReport/)\>
    

### getSynchronizationSources[](#getsynchronizationsources)

-   getSynchronizationSources(): [RTCRtpSynchronizationSource](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCRtpSynchronizationSource/)\[\][](#getsynchronizationsources-1)
    
    The **`getSynchronizationSources()`** method of the RTCRtpReceiver interface returns an array of objects, each corresponding to one SSRC (synchronization source) identifier received by the current RTCRtpReceiver in the last ten seconds.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getSynchronizationSources)
    
    #### Returns [RTCRtpSynchronizationSource](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.RTCRtpSynchronizationSource/)\[\]
