mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-06 16:17:59 +08:00
27 lines
363 B
Go
27 lines
363 B
Go
package core
|
|
|
|
import (
|
|
"github.com/aler9/gortsplib"
|
|
)
|
|
|
|
type source interface {
|
|
IsSource()
|
|
}
|
|
|
|
type sourceExternal interface {
|
|
IsSource()
|
|
IsSourceExternal()
|
|
Close()
|
|
}
|
|
|
|
type sourceExtSetReadyRes struct{}
|
|
|
|
type sourceExtSetReadyReq struct {
|
|
Tracks gortsplib.Tracks
|
|
Res chan sourceExtSetReadyRes
|
|
}
|
|
|
|
type sourceExtSetNotReadyReq struct {
|
|
Res chan struct{}
|
|
}
|