Open
Conversation
Added sdputils.js from AppRTC project and used in offerfunction
sdputils.js from AppRTC project https://github.com/webrtc/apprtc/tree/master/src/web_app/js
Contributor
|
I'm not sure what is it is for? |
Author
|
sdputils.js is a collection of utility functions to munge/manipulate SDP offer. One valid use case is setting a video codec preference of VP9 over VP8. VP9 requires less bandwidth/processing than VP8. Using SimpleWebRTC, one can then set their video codec preference in the config object like so: and then used in the RTCPeerConnection.offer function like so: |
Member
|
SDP munging between createOffer and setLocalDescription is no longer valid in the spec. If you want to do this I would suggest doing munging before signaling which makes it a non-issue for this library. |
Author
|
Thanks, will leave it for now. If you have a link to spec change, it would great.
Cheers.
On Jun 27, 2019, at 8:19 AM, Philipp Hancke <notifications@github.com<mailto:notifications@github.com>> wrote:
SDP munging between createOffer and setLocalDescription is no longer valid in the spec.
If you want to do this I would suggest doing munging before signaling which makes it a non-issue for this library.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#103?email_source=notifications&email_token=AB4H7Q3GVVVNBEPK3XF55YTP4TLAHA5CNFSM4H3YCZ6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYXOTKQ#issuecomment-506390954>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AB4H7QZ4NODLLT7GNAJ6IF3P4TLAHANCNFSM4H3YCZ6A>.
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
sdputilsjs includes more custom control configuration of video/audio codec and bitrate in offer function.
Please refer to https://github.com/webrtc/apprtc/blob/master/src/web_app/js/sdputils.js