Source File
option.go
Belonging Package
github.com/pion/interceptor/pkg/flexfec
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MITpackage flexfec// FecOption can be used to set initial options on Fec encoder interceptors.type FecOption func(d *FecInterceptor) error// NumMediaPackets sets the number of media packets to accumulate before generating another FEC packets batch.func ( uint32) FecOption {return func( *FecInterceptor) error {.numMediaPackets =return nil}}// NumFECPackets sets the number of FEC packets to generate for each batch of media packets.func ( uint32) FecOption {return func( *FecInterceptor) error {.numFecPackets =return nil}}// FECEncoderFactory sets the custom factory for constructing the FEC Encoders.func ( EncoderFactory) FecOption {return func( *FecInterceptor) error {.encoderFactory =return nil}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |