Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/rfc8888/interceptor.go → pkg/ccfb/interceptor.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

// Package rfc8888 provides an interceptor that generates congestion control
// Package ccfb provides an interceptor that generates congestion control
// feedback reports as defined by RFC 8888.
package rfc8888
package ccfb

import (
"sync"
Expand All @@ -26,7 +26,7 @@ type SenderInterceptorFactory struct {
func (s *SenderInterceptorFactory) NewInterceptor(_ string) (interceptor.Interceptor, error) {
senderInterceptor := &SenderInterceptor{
NoOp: interceptor.NoOp{},
log: logging.NewDefaultLoggerFactory().NewLogger("rfc8888_interceptor"),
log: logging.NewDefaultLoggerFactory().NewLogger("ccfb_interceptor"),
lock: sync.Mutex{},
wg: sync.WaitGroup{},
recorder: NewRecorder(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

package rfc8888
package ccfb

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/rfc8888/option.go → pkg/ccfb/option.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

package rfc8888
package ccfb

import "time"

Expand Down
2 changes: 1 addition & 1 deletion pkg/rfc8888/recorder.go → pkg/ccfb/recorder.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

package rfc8888
package ccfb

import (
"time"
Expand Down
2 changes: 1 addition & 1 deletion pkg/rfc8888/recorder_test.go → pkg/ccfb/recorder_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

package rfc8888
package ccfb

import (
"math/rand"
Expand Down
2 changes: 1 addition & 1 deletion pkg/rfc8888/stream_log.go → pkg/ccfb/stream_log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

package rfc8888
package ccfb

import (
"time"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

package rfc8888
package ccfb

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/rfc8888/ticker.go → pkg/ccfb/ticker.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

package rfc8888
package ccfb

import "time"

Expand Down
65 changes: 65 additions & 0 deletions pkg/rfc8888/rfc8888.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// SPDX-FileCopyrightText: 2025 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

// Package rfc8888 is deprecated. Use ccfb instead.
package rfc8888

import (
"time"

"github.com/pion/interceptor/pkg/ccfb"
)

// TickerFactory is a factory to create new tickers.
//
// Deprecated: moved to pkg/ccfb.
type TickerFactory = ccfb.TickerFactory

// SenderInterceptorFactory is a interceptor.Factory for a SenderInterceptor.
//
// Deprecated: moved to pkg/ccfb.
type SenderInterceptorFactory = ccfb.SenderInterceptorFactory

// Deprecated: moved to pkg/ccfb.
func NewSenderInterceptor(opts ...Option) (*SenderInterceptorFactory, error) {
oo := []ccfb.Option{}
oo = append(oo, opts...)

return ccfb.NewSenderInterceptor(oo...)
}

// SenderInterceptor sends congestion control feedback as specified in RFC 8888.
//
// Deprecated: moved to pkg/ccfb.
type SenderInterceptor = ccfb.SenderInterceptor

// An Option is a function that can be used to configure a SenderInterceptor.
//
// Deprecated: moved to pkg/ccfb.
type Option = ccfb.Option

// Deprecated: moved to pkg/ccfb.
func SenderTicker(f TickerFactory) Option {
return ccfb.SenderTicker(f)
}

// Deprecated: moved to pkg/ccfb.
func SenderNow(f func() time.Time) Option {
return ccfb.SenderNow(f)
}

// Deprecated: moved to pkg/ccfb.
func SendInterval(interval time.Duration) Option {
return ccfb.SendInterval(interval)
}

// Recorder records incoming RTP packets and their arrival times. Recorder can
// be used to create feedback reports as defined by RFC 8888.
//
// Deprecated: moved to pkg/ccfb.
type Recorder = ccfb.Recorder

// Deprecated: moved to pkg/ccfb.
func NewRecorder() *Recorder {
return ccfb.NewRecorder()
}
Loading