mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
client: split WriteFrame into WritePacketRTP and WritePacketRTCP
This commit is contained in:
@@ -68,7 +68,7 @@ func main() {
|
||||
}
|
||||
|
||||
// route RTP packets to the server
|
||||
err = conn.WriteFrame(0, gortsplib.StreamTypeRTP, buf[:n])
|
||||
err = conn.WritePacketRTP(0, buf[:n])
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user