mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +08:00
server: remove Setupped* prefix from most methods (#881)
This commit is contained in:
@@ -522,17 +522,38 @@ func (ss *ServerSession) SetuppedSecure() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SetuppedStream returns the stream associated with the session.
|
// SetuppedStream returns the stream associated with the session.
|
||||||
|
//
|
||||||
|
// Deprecated: replaced by Stream
|
||||||
func (ss *ServerSession) SetuppedStream() *ServerStream {
|
func (ss *ServerSession) SetuppedStream() *ServerStream {
|
||||||
|
return ss.Stream()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Stream returns the stream associated with the session.
|
||||||
|
func (ss *ServerSession) Stream() *ServerStream {
|
||||||
return ss.setuppedStream
|
return ss.setuppedStream
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetuppedPath returns the path sent during SETUP or ANNOUNCE.
|
// SetuppedPath returns the path sent during SETUP or ANNOUNCE.
|
||||||
|
//
|
||||||
|
// Deprecated: replaced by Path
|
||||||
func (ss *ServerSession) SetuppedPath() string {
|
func (ss *ServerSession) SetuppedPath() string {
|
||||||
|
return ss.Path()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Path returns the path sent during SETUP or ANNOUNCE.
|
||||||
|
func (ss *ServerSession) Path() string {
|
||||||
return ss.setuppedPath
|
return ss.setuppedPath
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetuppedQuery returns the query sent during SETUP or ANNOUNCE.
|
// SetuppedQuery returns the query sent during SETUP or ANNOUNCE.
|
||||||
|
//
|
||||||
|
// Deprecated: replaced by Medias.
|
||||||
func (ss *ServerSession) SetuppedQuery() string {
|
func (ss *ServerSession) SetuppedQuery() string {
|
||||||
|
return ss.Query()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Query returns the query sent during SETUP or ANNOUNCE.
|
||||||
|
func (ss *ServerSession) Query() string {
|
||||||
return ss.setuppedQuery
|
return ss.setuppedQuery
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -542,7 +563,14 @@ func (ss *ServerSession) AnnouncedDescription() *description.Session {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SetuppedMedias returns the setupped medias.
|
// SetuppedMedias returns the setupped medias.
|
||||||
|
//
|
||||||
|
// Deprecated: replaced by Medias.
|
||||||
func (ss *ServerSession) SetuppedMedias() []*description.Media {
|
func (ss *ServerSession) SetuppedMedias() []*description.Media {
|
||||||
|
return ss.Medias()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Medias returns setupped medias.
|
||||||
|
func (ss *ServerSession) Medias() []*description.Media {
|
||||||
ret := make([]*description.Media, len(ss.setuppedMedias))
|
ret := make([]*description.Media, len(ss.setuppedMedias))
|
||||||
for i, sm := range ss.setuppedMediasOrdered {
|
for i, sm := range ss.setuppedMediasOrdered {
|
||||||
ret[i] = sm.media
|
ret[i] = sm.media
|
||||||
|
Reference in New Issue
Block a user