mirror of
https://github.com/aler9/gortsplib
synced 2025-09-27 11:32:08 +08:00
update docs
This commit is contained in:
@@ -3,7 +3,7 @@ package aac
|
||||
// MPEG4AudioType is the type of a MPEG-4 Audio stream.
|
||||
type MPEG4AudioType int
|
||||
|
||||
// standard MPEG-4 Audio types.
|
||||
// MPEG-4 Audio types.
|
||||
const (
|
||||
MPEG4AudioTypeAACLC MPEG4AudioType = 2
|
||||
)
|
||||
|
@@ -19,7 +19,7 @@ const (
|
||||
// Method is the method of a RTSP request.
|
||||
type Method string
|
||||
|
||||
// standard methods
|
||||
// methods.
|
||||
const (
|
||||
Announce Method = "ANNOUNCE"
|
||||
Describe Method = "DESCRIBE"
|
||||
|
@@ -11,7 +11,7 @@ import (
|
||||
// StatusCode is the status code of a RTSP response.
|
||||
type StatusCode int
|
||||
|
||||
// standard status codes
|
||||
// status codes.
|
||||
const (
|
||||
StatusContinue StatusCode = 100
|
||||
StatusOK StatusCode = 200
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
// NALUType is the type of a NALU.
|
||||
type NALUType uint8
|
||||
|
||||
// standard NALU types.
|
||||
// NALU types.
|
||||
const (
|
||||
NALUTypeNonIDR NALUType = 1
|
||||
NALUTypeDataPartitionA NALUType = 2
|
||||
|
@@ -14,7 +14,7 @@ import (
|
||||
// TransportProtocol is a transport protocol.
|
||||
type TransportProtocol int
|
||||
|
||||
// standard transport protocols.
|
||||
// transport protocols.
|
||||
const (
|
||||
TransportProtocolUDP TransportProtocol = iota
|
||||
TransportProtocolTCP
|
||||
@@ -23,7 +23,7 @@ const (
|
||||
// TransportDelivery is a delivery method.
|
||||
type TransportDelivery int
|
||||
|
||||
// standard transport delivery methods.
|
||||
// transport delivery methods.
|
||||
const (
|
||||
TransportDeliveryUnicast TransportDelivery = iota
|
||||
TransportDeliveryMulticast
|
||||
|
@@ -15,7 +15,7 @@ var cases = []struct {
|
||||
enc []byte
|
||||
desc SessionDescription
|
||||
}{
|
||||
// standard-compliant SDPs
|
||||
// compliant SDPs
|
||||
{
|
||||
"base",
|
||||
[]byte("v=0\r\n" +
|
||||
@@ -269,7 +269,7 @@ var cases = []struct {
|
||||
},
|
||||
},
|
||||
},
|
||||
// non standard-compliant SDPs
|
||||
// non compliant SDPs
|
||||
{
|
||||
"unordered global attributes",
|
||||
[]byte("v=0\r\n" +
|
||||
|
@@ -115,7 +115,7 @@ func setupGetTransport(th headers.Transport) (Transport, bool) {
|
||||
// ServerSessionState is a state of a ServerSession.
|
||||
type ServerSessionState int
|
||||
|
||||
// standard states.
|
||||
// states.
|
||||
const (
|
||||
ServerSessionStateInitial ServerSessionState = iota
|
||||
ServerSessionStatePrePlay
|
||||
|
@@ -3,7 +3,7 @@ package gortsplib
|
||||
// Transport is a RTSP transport protocol.
|
||||
type Transport int
|
||||
|
||||
// standard transport protocols.
|
||||
// transport protocols.
|
||||
const (
|
||||
TransportUDP Transport = iota
|
||||
TransportUDPMulticast
|
||||
|
Reference in New Issue
Block a user