client: use a single goroutine during play / record

This commit is contained in:
aler9
2021-11-12 13:03:38 +01:00
committed by Alessandro Ros
parent f6601580db
commit 0440a926b8
3 changed files with 349 additions and 472 deletions

View File

@@ -163,14 +163,6 @@ func (e ErrClientTransportHeaderInterleavedIDsAlreadyUsed) Error() string {
return "interleaved IDs already used"
}
// ErrClientNoUDPPacketsRecently is an error that can be returned by a client.
type ErrClientNoUDPPacketsRecently struct{}
// Error implements the error interface.
func (e ErrClientNoUDPPacketsRecently) Error() string {
return "no UDP packets received (maybe there's a firewall/NAT in between)"
}
// ErrClientUDPTimeout is an error that can be returned by a client.
type ErrClientUDPTimeout struct{}
@@ -196,3 +188,11 @@ type ErrClientRTPInfoInvalid struct {
func (e ErrClientRTPInfoInvalid) Error() string {
return fmt.Sprintf("invalid RTP-Info: %v", e.Err)
}
// ErrClientWriteNotAllowed is an error that can be returned by a client.
type ErrClientWriteNotAllowed struct{}
// Error implements the error interface.
func (e ErrClientWriteNotAllowed) Error() string {
return "writing is not allowed at the moment"
}