merge WriteFrameTCP and WriteFrameUDP

This commit is contained in:
aler9
2020-11-08 20:01:50 +01:00
parent 7c91f02459
commit 2deddcffab
4 changed files with 21 additions and 17 deletions

View File

@@ -249,7 +249,7 @@ func TestDialPublishUDP(t *testing.T) {
break
}
err = conn.WriteFrameUDP(track.Id, StreamTypeRtp, buf[:n])
err = conn.WriteFrame(track.Id, StreamTypeRtp, buf[:n])
if err != nil {
break
}
@@ -349,7 +349,7 @@ func TestDialPublishTCP(t *testing.T) {
break
}
err = conn.WriteFrameTCP(track.Id, StreamTypeRtp, buf[:n])
err = conn.WriteFrame(track.Id, StreamTypeRtp, buf[:n])
if err != nil {
break
}