-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FF115 RTCRtpReceiver.jitterBufferTarget supported #33198
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
files/en-us/web/api/rtcrtpreceiver/jitterbuffertarget/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: "RTCRtpReceiver: jitterBufferTarget property" | ||
short-title: jitterBufferTarget | ||
slug: Web/API/RTCRtpReceiver/jitterBufferTarget | ||
page-type: web-api-instance-property | ||
browser-compat: api.RTCRtpReceiver.jitterBufferTarget | ||
--- | ||
|
||
{{APIRef("WebRTC API")}} | ||
|
||
The **`jitterBufferTarget`** property of the {{domxref("RTCRtpReceiver")}} interface is a {{domxref("DOMHighResTimeStamp")}} that indicates the application's preferred duration, in milliseconds, for which the jitter buffer should hold media before playing it out. | ||
|
||
The application can use it to influence the tradeoff between playout delay and the risk of running out of audio or video frames due to network jitter. | ||
|
||
## Value | ||
|
||
A {{domxref("DOMHighResTimeStamp")}} that indicates the current jitter buffer target hold time, in milliseconds. | ||
|
||
The value can be set to a positive value of no greater than 4000 milliseconds. | ||
|
||
## Exceptions | ||
|
||
- {{jsxref("RangeError")}} | ||
- : Thrown if the target is set to a negative value or a value that is greater than 4000 milliseconds. | ||
|
||
## Description | ||
|
||
The value of the attribute influences the amount of buffering done by the user agent, which in turn affects retransmissions and packet loss recovery. | ||
|
||
Note that the attribute "influences" the jitter buffer target of the user agent, but does not directly set it. | ||
The actual user agent jitter buffer target will vary between maximum and minimum allowed values that reflects a target range that the user agent can provide based on network conditions and memory constraints, and can change at any time. | ||
The value returned by `jitterBufferTarget` is not affected by the actual target of the user agent. | ||
|
||
The change in average delay can be gradually observed over time by measuring the delta [`RTCInboundRtpStreamStats.jitterBufferDelay`](/en-US/docs/Web/API/RTCInboundRtpStreamStats) divided by the delta [`RTCInboundRtpStreamStats.jitterBufferEmittedCount`](/en-US/docs/Web/API/RTCInboundRtpStreamStats). | ||
hamishwillee marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
If `RTCRtpReceiver` audio and video tracks are synchronized, then the larger of the two receivers `jitterBufferTarget` should be used for both receivers. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, these two stats are not documented yet, so I have chosen to link to the parent doc.