You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lal/pkg/rtsp/rtsp.go

41 lines
872 B
Go

// Copyright 2020, Chef. All rights reserved.
// https://github.com/q191201771/lal
//
// Use of this source code is governed by a MIT-style license
// that can be found in the License file.
//
// Author: Chef (191201771@qq.com)
package rtsp
// 注意正在学习以及实现rtsp请不要使用这个package
// rfc2326
const (
MethodOptions = "OPTIONS"
MethodAnnounce = "ANNOUNCE"
MethodSetup = "SETUP"
MethodRecord = "RECORD"
MethodDescribe = "DESCRIBE"
MethodPlay = "PLAY"
)
const (
HeaderFieldCSeq = "CSeq"
HeaderFieldTransport = "Transport"
)
var (
// TODO chef:
// 收集lal中其他可以hack服务名的地方统一到一处并增加版本号信息
serverName = "lalserver"
sessionID = "191201771"
// TODO chef: to be continued
// read RTP/RTCP data from port
serverPort = "8000-8001"
udpMaxPacketLength = 1500
)