Closed Bug 1279049 Opened 8 years ago Closed 8 years ago

Add sdp for audio FEC

Categories

(Core :: WebRTC: Signaling, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox47 --- unaffected
firefox48 --- unaffected
firefox49 --- unaffected
firefox50 --- fixed

People

(Reporter: mjf, Assigned: mjf)

References

Details

Attachments

(1 file)

Covers the audio sdp portion of FEC signaling.
Rank: 15
Comment on attachment 8761381 [details]
Bug 1279049 - add sdp handling for audio FEC,

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/58598/diff/1-2/
Attachment #8761381 - Attachment description: Bug 1279049 - add sdp handling for audio FEC → Bug 1279049 - add sdp handling for audio FEC,
Attachment #8761381 - Flags: review?(drno)
Comment on attachment 8761381 [details]
Bug 1279049 - add sdp handling for audio FEC,

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/58598/diff/2-3/
Attachment #8761381 - Flags: review?(drno) → review?(rjesup)
Comment on attachment 8761381 [details]
Bug 1279049 - add sdp handling for audio FEC,

https://reviewboard.mozilla.org/r/58598/#review55662

Have you tested it, both in Opus and in G722?  And verified the SDP offered/answered, and checked interop with Chrome in Opus and G722?

::: media/webrtc/signaling/src/jsep/JsepCodecDescription.h:175
(Diff revision 3)
>        }
>        if (mChannels == 2 && !mForceMono) {
>          // We prefer to receive stereo, if available.
>          opusParams.stereo = 1;
>        }
> +      opusParams.useInBandFec = mFECEnabled?1:0;

nit: spaces around ?/:

::: media/webrtc/signaling/src/sdp/SdpAttribute.h:1245
(Diff revision 3)
>      enum { kDefaultMaxPlaybackRate = 48000,
> -           kDefaultStereo = 0 };
> +           kDefaultStereo = 0,
> +           kDefaultUseInBandFec = 0 };

I find it freaky to use an enum in this manner in place of a static const, but it was already doing it.  (and they're not the same)
Attachment #8761381 - Flags: review?(rjesup) → review+
https://reviewboard.mozilla.org/r/58598/#review55662

I have tested with Opus between Fx/Fx and Fx/Chrome.  draft-ietf-rtcweb-fec-03.txt section 4.2 seems to say that the useinbandfec param only applies to Opus and not G722.  Chrome doesn't offer a "red" payload type for doing redundant encoding on audio.  It only sends the useinbandfec param for Opus.

I think it would be easy enough to add the additional RED audio payload to the offer later if and when we have something that will use it.  Is that acceptable?
https://reviewboard.mozilla.org/r/58598/#review55662

> I find it freaky to use an enum in this manner in place of a static const, but it was already doing it.  (and they're not the same)

I didn't love this either, but as you said "already doing it."
Comment on attachment 8761381 [details]
Bug 1279049 - add sdp handling for audio FEC,

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/58598/diff/3-4/
Keywords: checkin-needed
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/653ddd57a84e
add sdp handling for audio FEC, r=jesup
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/653ddd57a84e
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: