client: add RTPInfo()

This commit is contained in:
aler9
2021-05-10 20:58:18 +02:00
parent 034c43202e
commit ae3e3b19c0

View File

@@ -245,6 +245,11 @@ func (cc *ClientConn) Tracks() Tracks {
return ret
}
// RTPInfo returns the RTP-Info header sent by the server in the PLAY response.
func (cc *ClientConn) RTPInfo() *headers.RTPInfo {
return cc.rtpInfo
}
func (cc *ClientConn) run() {
defer close(cc.done)