147 Commits

Author SHA1 Message Date
Max Hawkins a89a729a93 Use PC opts for CreateDataChannel
To simplify configuration of the PeerConenction, use the
DataChannelOptions passed to NewPeerConnection rather than
explicitly requesting them each time you call CreateDataChannel.

All DataChannels created by a PeerConnection should share the same
set of options for the sake of simplicity.

Related to #434
2019-02-27 14:51:32 -08:00
Max Hawkins 99a2ec553f Pass explicit config to NewQUICTransport
Completely removes API struct!

Related to #434
2019-02-27 14:33:25 -08:00
Max Hawkins 15b7a88224 Pass explicit config to NewPeerConnection
Remove dependency on API

Related to #434
2019-02-27 14:33:25 -08:00
Max Hawkins 0a95750ab7 Make explicit, remove SettingEngine from API
Removes most dependencies on API. Almost there!

Related to #434
2019-02-27 14:33:25 -08:00
Max Hawkins 9fd4397643 Pass explicit config to NewSCTPTransport
Moves away from API object.

Related to #434
2019-02-27 14:33:25 -08:00
Max Hawkins 4abbaa0fbe Pass explicit config to NewDTLSTransport
Move away from API object.

Related to #434
2019-02-27 14:33:25 -08:00
Max Hawkins 17a814b9d9 Pass explicit config to NewICETransport
Move away from API object

Related to #434
2019-02-27 14:33:25 -08:00
Max Hawkins 07abca704f Explicitly pass detach config to NewDataChannel
Continues move away from API and SettingsEngine. Makes the Detach
API simpler to use by moving cause ({Detach: true}) closer to effect
(a datachannel capable of detaching).

Related to #434
2019-02-27 14:33:25 -08:00
Max Hawkins f4e1bbe2e3 Pass explicit config to ICEGatherer
Start moving away from API and SettingsEngine. Makes configuration
options more explicit and makes it easier to understand from the
godoc.

Related to #434
2019-02-27 14:33:25 -08:00
Antoine Baché 07e5c4e07e Implementation of opuswriter
- Implemented a common "Writer" interface
- Made IVFWriter compliant to the new interface
- Implemented an OGG Opus writer
- Updated the save-file example
- Updated janus-gateway/streaming example
- Wrote a few unit tests for opus-writer
- Wrote a few unit tests for ivf-writer
- Fixed filenames
- Improved API to allow tests using an io.Writer
2019-02-27 12:02:34 -08:00
frank 6fd4ee67f4 Docs: Build Janus example on OSX
Documented how to build the janus-gateway example on OSX.
2019-02-27 14:22:31 +01:00
Sean DuBois 6aeb3425b0 Move to new Track API
See v2.0.0 Release Notes[0] for all changes

Resolves #405

[0] https://github.com/pions/webrtc/wiki/v2.0.0-Release-Notes#media-api
2019-02-25 23:44:09 -08:00
backkem f5d11df18d API: Review DataChannel
Resolves #427
2019-02-22 15:35:32 +01:00
backkem 36cf0df239 Avoid defaultAPI
Relates to #434
2019-02-22 07:31:20 +01:00
backkem 4fe2728721 Remove global API for settings engine
Limit global API to the basics needed to construct a PeerConnection.
2019-02-21 22:04:30 +01:00
backkem 64644e594b QUIC: Move out of tree
This moves the QUIC API out of tree to pions/quic.
2019-02-21 14:27:50 +01:00
backkem ddcef2d84f Examples: Make examples/util internal
Resolves #424
2019-02-20 21:32:48 +01:00
backkem bf422e0c0a API: Avoid exposing pkg/ice
OnICEConnectionStateChange now return a ICEConnectionState instead of
ice.ConnectionState.
Resolves #422
2019-02-20 20:47:34 +01:00
Max Hawkins 9d88f7c71a Rename Sdp -> SDP
Relates to #417
2019-02-18 11:47:05 -08:00
Max Hawkins c6592e6c4b Rename Ssrc -> SSRC
This capitalization is consistent with other uses in the project,
and matches the Go convention of capitalizing initialisms.

https://github.com/golang/go/wiki/CodeReviewComments#initialisms

Relates to #417
2019-02-18 11:47:05 -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
rob-deutsch a071b8af09 Gstreamer-receive reserves main thread for Glib
The Glib loop is run in the main thread (in the OS point of view)
2019-02-16 02:01:20 -08:00
Sean DuBois b67f73c34f Stop Create(Offer/Answer) from setting localDesc
This deviates from the WebRTC spec, so we need to fix it. This is a
massively breaking change, so we need to figure out the best way to help
users with this.

I also renamed our RTCPeerConnection constructor. The hope is that
people will refer to the examples/backlog and see what changed.

Resolves #309
2019-02-15 23:13:25 -08:00
jinleileiking e982d6eda2 Check error when tcp port is used
Relates #400
2019-02-14 19:53:06 +08:00
jinleileiking c40e4a53ef Add http endpoint to SFU example
Resolves #400
2019-02-13 23:32:35 -08:00