update docs

This commit is contained in:
aler9
2020-10-01 09:02:15 +02:00
parent 3e1947a8fa
commit 7a933fe8f1
4 changed files with 7 additions and 7 deletions

View File

@@ -451,7 +451,7 @@ func (c *ConnClient) setup(u *url.URL, track *Track, ht *HeaderTransport) (*Resp
}
// SetupUDP writes a SETUP request and reads a Response.
// If rtpPort and rtcpPort are zero, they will be chosen automatically.
// If rtpPort and rtcpPort are zero, they are be chosen automatically.
func (c *ConnClient) SetupUDP(u *url.URL, mode SetupMode, track *Track, rtpPort int,
rtcpPort int) (*Response, error) {
if c.state != connClientStateInitial {
@@ -745,7 +745,7 @@ func (c *ConnClient) Play(u *url.URL) (*Response, error) {
}
// LoopUDP must be called after SetupUDP() and Play(); it keeps
// the TCP connection open through keepalives, and returns when the TCP
// the TCP connection open with keepalives, and returns when the TCP
// connection closes.
func (c *ConnClient) LoopUDP(u *url.URL) error {
readDone := make(chan error)

View File

@@ -13,7 +13,7 @@ const (
// ConnServerConf allows to configure a ConnServer.
type ConnServerConf struct {
// pre-existing TCP connection that will be wrapped
// pre-existing TCP connection to wrap
Conn net.Conn
// (optional) timeout of read operations.

View File

@@ -11,8 +11,8 @@ const (
interleavedFrameMagicByte = 0x24
)
// InterleavedFrame is a structure that allows to transfer binary frames
// through RTSP/TCP connections. It is used to send RTP and RTCP packets with TCP.
// InterleavedFrame is a structure that allows to transfer binary data
// within RTSP/TCP connections. It is used to send and receive RTP and RTCP packets with TCP.
type InterleavedFrame struct {
// track id
TrackId int

View File

@@ -38,10 +38,10 @@ func (sp StreamProtocol) String() string {
type StreamCast int
const (
// StreamUnicast means that the stream will be unicasted
// StreamUnicast means that the stream is unicasted
StreamUnicast StreamCast = iota
// StreamMulticast means that the stream will be multicasted
// StreamMulticast means that the stream is multicasted
StreamMulticast
)