MCPcopy Create free account
hub / github.com/livekit/livekit / GetTestExtPacketVP8

Function GetTestExtPacketVP8

pkg/sfu/testutils/data.go:83–95  ·  view source on GitHub ↗

--------------------------------------

(params *TestExtPacketParams, vp8 *codec.VP8)

Source from the content-addressed store, hash-verified

81// --------------------------------------
82
83func GetTestExtPacketVP8(params *TestExtPacketParams, vp8 *codec.VP8) (*buffer.ExtPacket, error) {
84 ep, err := GetTestExtPacket(params)
85 if err != nil {
86 return nil, err
87 }
88
89 ep.IsKeyFrame = vp8.IsKeyFrame
90 ep.Payload = *vp8
91 if ep.DependencyDescriptor == nil {
92 ep.Temporal = int32(vp8.TID)
93 }
94 return ep, nil
95}
96
97// --------------------------------------
98

Calls 1

GetTestExtPacketFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…