mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 12:32:01 -08:00
15 lines
288 B
Go
15 lines
288 B
Go
package core
|
|
|
|
import (
|
|
"github.com/pion/rtcp"
|
|
"github.com/pion/rtp/v2"
|
|
)
|
|
|
|
// reader is an entity that can read a stream.
|
|
type reader interface {
|
|
close()
|
|
onReaderAccepted()
|
|
onReaderPacketRTP(int, *rtp.Packet)
|
|
onReaderPacketRTCP(int, rtcp.Packet)
|
|
onReaderAPIDescribe() interface{}
|
|
}
|