| 145 | } |
| 146 | |
| 147 | type BufferBase struct { |
| 148 | sync.RWMutex |
| 149 | |
| 150 | params BufferBaseParams |
| 151 | |
| 152 | readCond *sync.Cond |
| 153 | |
| 154 | bucket *bucket.Bucket[uint64, uint16] |
| 155 | lastBucketCapCheckAt int64 |
| 156 | |
| 157 | nacker nack.NackQueueInterface |
| 158 | rtpStatsLite *rtpstats.RTPStatsReceiverLite |
| 159 | liteStatsSnapshotId uint32 |
| 160 | |
| 161 | extPackets deque.Deque[*ExtPacket] |
| 162 | |
| 163 | codecType webrtc.RTPCodecType |
| 164 | closeOnce sync.Once |
| 165 | clockRate uint32 |
| 166 | mime mime.MimeType |
| 167 | |
| 168 | rtpParameters webrtc.RTPParameters |
| 169 | payloadType uint8 |
| 170 | rtxPayloadType uint8 |
| 171 | |
| 172 | snRangeMap *utils.RangeMap[uint64, uint64] |
| 173 | |
| 174 | audioLevelConfig audio.AudioLevelConfig |
| 175 | audioLevel *audio.AudioLevel |
| 176 | audioLevelExtID uint8 |
| 177 | |
| 178 | enableStreamRestartDetection bool |
| 179 | |
| 180 | pliThrottle int64 |
| 181 | |
| 182 | rtpStats *rtpstats.RTPStatsReceiver |
| 183 | ppsSnapshotId uint32 |
| 184 | rrSnapshotId uint32 |
| 185 | deltaStatsSnapshotId uint32 |
| 186 | |
| 187 | // callbacks |
| 188 | onRtcpSenderReport func() |
| 189 | onFpsChanged func() |
| 190 | onVideoSizeChanged func([]codec.VideoSize) |
| 191 | onCodecChange func(webrtc.RTPCodecParameters) |
| 192 | onStreamRestart func(string) |
| 193 | |
| 194 | // video size tracking for multiple spatial layers |
| 195 | currentVideoSize [DefaultMaxLayerSpatial + 1]codec.VideoSize |
| 196 | |
| 197 | logger logger.Logger |
| 198 | |
| 199 | // dependency descriptor |
| 200 | ddExtID uint8 |
| 201 | ddParser *DependencyDescriptorParser |
| 202 | |
| 203 | isPaused bool |
| 204 | frameRateCalculator [DefaultMaxLayerSpatial + 1]FrameRateCalculator |
nothing calls this directly
no outgoing calls
no test coverage detected