mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-09-26 19:51:14 +08:00
增加读取缓存大小,设置Mark标志位
This commit is contained in:
@@ -145,12 +145,14 @@ func (client *RTSPClient) pullStream() {
|
||||
}
|
||||
client.Client = &gortsplib.Client{
|
||||
OnPacketRTP: func(trackID int, payload []byte) {
|
||||
// Println("OnPacketRTP", trackID, len(payload))
|
||||
if f := client.processFunc[trackID]; f != nil {
|
||||
var clone []byte
|
||||
f(append(clone, payload...))
|
||||
}
|
||||
},
|
||||
Transport: &client.Transport,
|
||||
ReadBufferSize: 10000,
|
||||
Transport: &client.Transport,
|
||||
}
|
||||
// parse URL
|
||||
u, err := base.ParseURL(client.URL)
|
||||
|
Reference in New Issue
Block a user