Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateOffer仅在srs-bench下错误,pion下正常(相同环境) #29

Open
makefriend8 opened this issue Jul 14, 2021 · 1 comment

Comments

@makefriend8
Copy link

操作系统:windows
编译器 go 1.13.4 amd64
源码均为最新版
srs-bench调试结果(offer2.sdp返回值)
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 121 127 120 125 107 108 109 127 120 123 118 116
pion/webrtc调试结果
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 121 127 120 125 107 108 109 123 118 116
可以看到srs获得的SDP 有2个127和2个120.而在pion/webrtc下就是正常无重复
代码如下。

func main() {
pc, err2 := webrtc.NewPeerConnection(webrtc.Configuration{})
	_, err2 = pc.AddTransceiverFromKind(webrtc.RTPCodecTypeVideo)
	offer2, err2 := pc.CreateOffer(nil)
	if err2 != nil {
		log.Println(" offer2.SDP  ",offer2.SDP)
	}

刚学习用GO。请指正下问题所在。

@makefriend8
Copy link
Author

解决。更新到 github.com/pion/webrtc/v3 v3.0.30 解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant