直播:后台 JWT 推流、前台画中画;WebRTC 服务与 Nginx WebSocket 代理
Made-with: Cursor
This commit is contained in:
22
server/vendor/github.com/pion/sctp/param_ecn_capable.go
generated
vendored
Normal file
22
server/vendor/github.com/pion/sctp/param_ecn_capable.go
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package sctp
|
||||
|
||||
type paramECNCapable struct {
|
||||
paramHeader
|
||||
}
|
||||
|
||||
func (r *paramECNCapable) marshal() ([]byte, error) {
|
||||
r.typ = ecnCapable
|
||||
r.raw = []byte{}
|
||||
return r.paramHeader.marshal()
|
||||
}
|
||||
|
||||
func (r *paramECNCapable) unmarshal(raw []byte) (param, error) {
|
||||
err := r.paramHeader.unmarshal(raw)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return r, nil
|
||||
}
|
||||
Reference in New Issue
Block a user