From 491daaf57fea867b4984ebafc8a40725f4630b0e Mon Sep 17 00:00:00 2001 From: langhuihui <178529795@qq.com> Date: Mon, 3 May 2021 14:55:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E6=88=90WaitVideoTrack?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7a0df5f..462ef3d 100644 --- a/main.go +++ b/main.go @@ -267,7 +267,7 @@ func run() { if err = rtc.SetRemoteDescription(offer); err != nil { return } - vt := sub.GetVideoTrack("h264") + vt := sub.WaitVideoTrack("h264") if vt != nil { pli := "42001f" pli = fmt.Sprintf("%x", vt.SPS[1:4])