Commit Graph

22 Commits

Author SHA1 Message Date
Sean DuBois
2838b1a836 Move ICE code out of internal
Users are unable to use the callbacks inside `internal/ice`.
Even though we alias things like OnSelectedCandidatePairChange
are unusable since in the package they use `ice.Candidate` instead of
`ICECandidate`
2019-06-15 01:29:08 -07:00
Adam Kiss
7756848a4c Moved ice related files to internal/ice
Moved ice related files to internal/ice. Added ice.go and
ice_go.go files containing aliases to internal/ice. Added
internal/tools/gen/genaliasdocs.go helper script for generating the
documentation for these aliases. Dropped ice
prefix from file names in internal/ice package.
2019-06-03 10:57:27 -07:00
Michael MacDonald
88448e5e74 Support plan-b (fallback or explicit)
By default, we should be using unified-plan as the
SDP format of choice. This patch adds a PeerConnection
configuration option to allow the user to specify that
they want plan-b only, unified-plan only, or a special
compatibility mode where a plan-b answer will be generated
IFF a plan-b offer is received.
2019-04-09 10:26:42 -04:00
Sean DuBois
632b16b852 Update golangci-lint to v14.0.0
Update linter to newest version and fix all new issues
2019-02-17 21:35:04 -08:00
Max Hawkins
0e7086d37a Remove RTC prefix from all names
Let's pull off the bandaid!

* Reduces studdering: webrtc.RTCTrack -> webrtc.Track
* Makes it easier to find types by editor autocomplete
* Makes code read more fluently (less repetition)

Since we're breaking the API in 2.0, our only chance to
do this is now.

Relates to #408
2019-02-17 16:22:56 -08:00
backkem
130fec6774 Data channel: Add Close and OnClose
Relates to #180
2019-01-23 23:17:26 +01:00
Hugo Arregui
0022840674 Handle AddIceCandidate if no remote desc is set
- Return proper error and prevent nil pointer dereference
2019-01-23 17:56:24 +01:00
Woodrow Douglass
3aee69ea60 Add some tests for MediaEngine
Also, centralize the error object returned
from media engine codec searches

Relates to #333
2019-01-23 16:21:13 +01:00
Sean DuBois
114de5e33f Fix golint and misspell errors
Found by goreportcard
2018-12-28 00:53:47 -08:00
Konstantin Itskov
0a2568695a Re-organize CreateDataChannel function and add limited spec compliance 2018-09-04 12:11:17 -04:00
Konstantin Itskov
77e6da4b9b Move DOM wrapper errors into their own package 2018-08-28 20:34:23 -04:00
Konstantin Itskov
902cf087aa Add corrections to comply with govet, golint, etc. 2018-08-28 01:03:09 -07:00
Konstantin Itskov
7b7a349071 Add a bunch of documentation all over the library strucutres 2018-08-28 01:03:09 -07:00
Konstantin Itskov
e8364dc5e9 Add fully working RTCIceServer with 100% unit-test code coverage 2018-08-28 01:03:09 -07:00
Konstantin Itskov
c32dd50b97 Add almost completely working stun/turn uri parser 2018-08-28 01:03:09 -07:00
Konstantin Itskov
c6bc9ab4e7 Add proper x509 certificate generation 2018-08-28 01:03:09 -07:00
Konstantin Itskov
20191a4974 Add an almost complete rfc complaint RTCConfiguration 2018-08-28 01:03:09 -07:00
backkem
b9d7aa95b8 API: Fix build. 2018-08-18 00:18:23 -07:00
backkem
c85cded582 API: Initial api structure for creating datachannel and sctp information. 2018-08-18 00:18:23 -07:00
chenkaiC4
2b7ab19a94 fix golangci linter 2018-08-16 01:26:58 -07:00
backkem
ab6910899c api: support a custom media engine 2018-07-16 14:20:18 -07:00
backkem
7f682d2d2e api: match WebRTC api more closely 2018-07-16 14:20:18 -07:00