mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
server: add ServerSession.ID()
This commit is contained in:
@@ -162,6 +162,11 @@ func (ss *ServerSession) Close() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ID returns the ID of the session.
|
||||||
|
func (ss *ServerSession) ID() string {
|
||||||
|
return ss.id
|
||||||
|
}
|
||||||
|
|
||||||
// State returns the state of the session.
|
// State returns the state of the session.
|
||||||
func (ss *ServerSession) State() ServerSessionState {
|
func (ss *ServerSession) State() ServerSessionState {
|
||||||
return ss.state
|
return ss.state
|
||||||
|
Reference in New Issue
Block a user