Source File
responder_option.go
Belonging Package
github.com/pion/interceptor/pkg/nack
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MITpackage nackimport ()// ResponderOption can be used to configure ResponderInterceptor.type ResponderOption func(s *ResponderInterceptor) error// ResponderSize sets the size of the interceptor.// Size must be one of: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768.func ( uint16) ResponderOption {return func( *ResponderInterceptor) error {.size =return nil}}// ResponderLog sets a logger for the interceptor.func ( logging.LeveledLogger) ResponderOption {return func( *ResponderInterceptor) error {.log =return nil}}// DisableCopy bypasses copy of underlying packets. It should be used when// you are not re-using underlying buffers of packets that have been written.func () ResponderOption {return func( *ResponderInterceptor) error {.packetFactory = &rtpbuffer.PacketFactoryNoOp{}return nil}}// ResponderStreamsFilter sets filter for local streams.func ( func( *interceptor.StreamInfo) bool) ResponderOption {return func( *ResponderInterceptor) error {.streamsFilter =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. |