Source File
noop.go
Belonging Package
github.com/pion/interceptor
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MITpackage interceptor// NoOp is an Interceptor that does not modify any packets. It can embedded in other interceptors, so it's// possible to implement only a subset of the methods.type NoOp struct{}// BindRTCPReader lets you modify any incoming RTCP packets. It is called once per sender/receiver, however this might// change in the future. The returned method will be called once per packet batch.func ( *NoOp) ( RTCPReader) RTCPReader {return}// BindRTCPWriter lets you modify any outgoing RTCP packets. It is called once per PeerConnection. The returned method// will be called once per packet batch.func ( *NoOp) ( RTCPWriter) RTCPWriter {return}// BindLocalStream lets you modify any outgoing RTP packets. It is called once for per LocalStream. The returned method// will be called once per rtp packet.func ( *NoOp) ( *StreamInfo, RTPWriter) RTPWriter {return}// UnbindLocalStream is called when the Stream is removed. It can be used to clean up any data related to that track.func ( *NoOp) ( *StreamInfo) {}// BindRemoteStream lets you modify any incoming RTP packets.// It is called once for per RemoteStream. The returned method// will be called once per rtp packet.func ( *NoOp) ( *StreamInfo, RTPReader) RTPReader {return}// UnbindRemoteStream is called when the Stream is removed. It can be used to clean up any data related to that track.func ( *NoOp) ( *StreamInfo) {}// Close closes the Interceptor, cleaning up any data if necessary.func ( *NoOp) () error {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. |