mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 07:06:51 +08:00

When constructing a SampleBuilder the caller now passes in a Depacketizer. This allows the SampleBuilder to take a RTP packet to a sample. This wasn't possible before because RTP payloads may carry codec specific metadata in the payloads that need to be stripped Relates to #63
7 lines
180 B
Go
7 lines
180 B
Go
package rtp
|
|
|
|
// Depacketizer depacketizes a RTP payload, removing any RTP specific data from the payload
|
|
type Depacketizer interface {
|
|
Unmarshal(packet *Packet) ([]byte, error)
|
|
}
|