直播:后台 JWT 推流、前台画中画;WebRTC 服务与 Nginx WebSocket 代理
Made-with: Cursor
This commit is contained in:
20
server/vendor/github.com/pion/rtp/depacketizer.go
generated
vendored
Normal file
20
server/vendor/github.com/pion/rtp/depacketizer.go
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package rtp
|
||||
|
||||
// Depacketizer depacketizes a RTP payload, removing any RTP specific data from the payload
|
||||
type Depacketizer interface {
|
||||
// Unmarshal parses the RTP payload and returns media.
|
||||
// Metadata may be stored on the Depacketizer itself
|
||||
Unmarshal(packet []byte) ([]byte, error)
|
||||
|
||||
// Checks if the packet is at the beginning of a partition. This
|
||||
// should return false if the result could not be determined, in
|
||||
// which case the caller will detect timestamp discontinuities.
|
||||
IsPartitionHead(payload []byte) bool
|
||||
|
||||
// Checks if the packet is at the end of a partition. This should
|
||||
// return false if the result could not be determined.
|
||||
IsPartitionTail(marker bool, payload []byte) bool
|
||||
}
|
||||
Reference in New Issue
Block a user