mirror of
https://github.com/aler9/gortsplib
synced 2025-10-07 08:01:14 +08:00
client: support cameras that provide base URL inside control attribute (https://github.com/aler9/rtsp-simple-server/issues/683)
This commit is contained in:
@@ -14,6 +14,11 @@ import (
|
||||
// SessionDescription is a SDP session description.
|
||||
type SessionDescription psdp.SessionDescription
|
||||
|
||||
// Attribute returns the value of an attribute and if it exists
|
||||
func (s *SessionDescription) Attribute(key string) (string, bool) {
|
||||
return (*psdp.SessionDescription)(s).Attribute(key)
|
||||
}
|
||||
|
||||
// Marshal encodes a SessionDescription.
|
||||
func (s *SessionDescription) Marshal() ([]byte, error) {
|
||||
return (*psdp.SessionDescription)(s).Marshal()
|
||||
|
Reference in New Issue
Block a user