golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
916 B
43 lines
916 B
package source |
|
|
|
import ( |
|
"github.com/aler9/gortsplib" |
|
) |
|
|
|
// TrackStartingPoint is the starting point of a track. |
|
type TrackStartingPoint struct { |
|
Filled bool // used to avoid mutexes |
|
SequenceNumber uint16 |
|
Timestamp uint32 |
|
} |
|
|
|
// Source is implemented by all sources (clients and external sources). |
|
type Source interface { |
|
IsSource() |
|
} |
|
|
|
// ExtSource is implemented by all external sources. |
|
type ExtSource interface { |
|
IsSource() |
|
IsExtSource() |
|
Close() |
|
} |
|
|
|
// SetStartingPointReq is a set starting point request. |
|
type SetStartingPointReq struct { |
|
Source Source |
|
TrackID int |
|
StartingPoint TrackStartingPoint |
|
} |
|
|
|
// ExtSetReadyReq is a set ready request. |
|
type ExtSetReadyReq struct { |
|
Tracks gortsplib.Tracks |
|
StartingPoints []TrackStartingPoint |
|
Res chan struct{} |
|
} |
|
|
|
// ExtSetNotReadyReq is a set not ready request. |
|
type ExtSetNotReadyReq struct { |
|
Res chan struct{} |
|
}
|
|
|