mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-04 06:46:24 +08:00
增加查询拉流列表接口
This commit is contained in:
@@ -45,7 +45,7 @@ const (
|
||||
SessionStateClosed = SessionState(7) // 关闭状态
|
||||
)
|
||||
|
||||
func (s SourceType) ToString() string {
|
||||
func (s SourceType) String() string {
|
||||
if SourceTypeRtmp == s {
|
||||
return "rtmp"
|
||||
} else if SourceType28181 == s {
|
||||
@@ -57,7 +57,7 @@ func (s SourceType) ToString() string {
|
||||
panic(fmt.Sprintf("unknown source type %d", s))
|
||||
}
|
||||
|
||||
func (p TransStreamProtocol) ToString() string {
|
||||
func (p TransStreamProtocol) String() string {
|
||||
if TransStreamRtmp == p {
|
||||
return "rtmp"
|
||||
} else if TransStreamFlv == p {
|
||||
|
Reference in New Issue
Block a user