algesten / str0m

A Sans I/O WebRTC implementation in Rust.
MIT License
317 stars 49 forks source link

Move StreamRx.reset_roc() to expect_stream_rx(..) #529

Closed algesten closed 3 months ago

algesten commented 3 months ago

Resetting the ROC can only happen when starting a new stream. There is no point in having this as a function.

algesten commented 3 months ago

This is the receiving side. There is no problem setting the ROC multiple times more than the SRTP might not decode. Let's leave the API as is.