mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 07:06:51 +08:00
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
This commit is contained in:
8
api.go
8
api.go
@@ -77,7 +77,7 @@ func SetConnectionTimeout(connectionTimeout, keepAlive time.Duration) {
|
||||
|
||||
// RegisterCodec on the default API.
|
||||
// See MediaEngine for details.
|
||||
func RegisterCodec(codec *RTCRtpCodec) {
|
||||
func RegisterCodec(codec *RTPCodec) {
|
||||
defaultAPI.mediaEngine.RegisterCodec(codec)
|
||||
}
|
||||
|
||||
@@ -89,8 +89,8 @@ func RegisterDefaultCodecs() {
|
||||
|
||||
// PeerConnection API
|
||||
|
||||
// NewRTCPeerConnection using the default API.
|
||||
// NewPeerConnection using the default API.
|
||||
// See API.NewRTCPeerConnection for details.
|
||||
func NewRTCPeerConnection(configuration RTCConfiguration) (*RTCPeerConnection, error) {
|
||||
return defaultAPI.NewRTCPeerConnection(configuration)
|
||||
func NewPeerConnection(configuration Configuration) (*PeerConnection, error) {
|
||||
return defaultAPI.NewPeerConnection(configuration)
|
||||
}
|
||||
|
Reference in New Issue
Block a user