mirror of
https://github.com/pion/webrtc.git
synced 2025-10-22 14:49:34 +08:00
Rename media.Writer AddPacket -> WriteRTP
Makes the name consistent with webrtc's WriteRTP and makes webrtc.Track a Writer. Fixes #566
This commit is contained in:
@@ -26,7 +26,7 @@ func saveToDisk(i media.Writer, track *webrtc.Track) {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if err := i.AddPacket(rtpPacket); err != nil {
|
||||
if err := i.WriteRTP(rtpPacket); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user