From ae3e3b19c03a2df651915c9ddb683ee56937a880 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Mon, 10 May 2021 20:58:18 +0200 Subject: [PATCH] client: add RTPInfo() --- clientconn.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clientconn.go b/clientconn.go index e3c84b00..dbcad03f 100644 --- a/clientconn.go +++ b/clientconn.go @@ -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)