feat: Waku v2 bridge

Issue #12610
This commit is contained in:
Michal Iskierko
2023-11-12 13:29:38 +01:00
parent 56e7bd01ca
commit 6d31343205
6716 changed files with 1982502 additions and 5891 deletions

27
vendor/github.com/pion/webrtc/v3/pkg/media/media.go generated vendored Normal file
View File

@@ -0,0 +1,27 @@
// Package media provides media writer and filters
package media
import (
"time"
"github.com/pion/rtp"
)
// A Sample contains encoded media and timing information
type Sample struct {
Data []byte
Timestamp time.Time
Duration time.Duration
PacketTimestamp uint32
PrevDroppedPackets uint16
}
// Writer defines an interface to handle
// the creation of media files
type Writer interface {
// Add the content of an RTP packet to the media
WriteRTP(packet *rtp.Packet) error
// Close the media
// Note: Close implementation must be idempotent
Close() error
}