RTSPMedia
Class
constructor
parent_
class
name
convert_
range
handle_
message
handle_
sdp
new_
state
new_
stream
prepare
prepared
query_
position
query_
stop
removed_
stream
setup_
rtpbin
setup_
sdp
suspend
target_
state
unprepare
unprepared
unsuspend
GJS API Reference
GstRtspServer-1.0
GstRtspServer
RTSPMediaClass
Class RTSPMediaClass
The RTSP media class
record
Hierarchy
RTSPMediaClass
Index
Constructors
constructor
Properties
parent_
class
name
Methods
convert_
range
handle_
message
handle_
sdp
new_
state
new_
stream
prepare
prepared
query_
position
query_
stop
removed_
stream
setup_
rtpbin
setup_
sdp
suspend
target_
state
unprepare
unprepared
unsuspend
Constructors
constructor
new RTSPMedia
Class
(
)
:
RTSPMediaClass
Returns
RTSPMediaClass
Properties
parent_
class
parent_
class
:
GObject
.
ObjectClass
Static
name
name
:
string
Methods
convert_
range
convert_
range
(
media
:
RTSPMedia
, range
:
RTSPTimeRange
, unit
:
RTSPRangeUnit
)
:
boolean
Parameters
media:
RTSPMedia
range:
RTSPTimeRange
unit:
RTSPRangeUnit
Returns
boolean
handle_
message
handle_
message
(
media
:
RTSPMedia
, message
:
Gst
.
Message
)
:
boolean
Parameters
media:
RTSPMedia
message:
Gst
.
Message
Returns
boolean
handle_
sdp
handle_
sdp
(
media
:
RTSPMedia
, sdp
:
SDPMessage
)
:
boolean
Parameters
media:
RTSPMedia
sdp:
SDPMessage
Returns
boolean
new_
state
new_
state
(
media
:
RTSPMedia
, state
:
Gst
.
State
)
:
void
Parameters
media:
RTSPMedia
state:
Gst
.
State
Returns
void
new_
stream
new_
stream
(
media
:
RTSPMedia
, stream
:
RTSPStream
)
:
void
Parameters
media:
RTSPMedia
stream:
RTSPStream
Returns
void
prepare
prepare
(
media
:
RTSPMedia
, thread
:
RTSPThread
)
:
boolean
Parameters
media:
RTSPMedia
thread:
RTSPThread
Returns
boolean
prepared
prepared
(
media
:
RTSPMedia
)
:
void
Parameters
media:
RTSPMedia
Returns
void
query_
position
query_
position
(
media
:
RTSPMedia
, position
:
number
)
:
boolean
Parameters
media:
RTSPMedia
position:
number
Returns
boolean
query_
stop
query_
stop
(
media
:
RTSPMedia
, stop
:
number
)
:
boolean
Parameters
media:
RTSPMedia
stop:
number
Returns
boolean
removed_
stream
removed_
stream
(
media
:
RTSPMedia
, stream
:
RTSPStream
)
:
void
Parameters
media:
RTSPMedia
stream:
RTSPStream
Returns
void
setup_
rtpbin
setup_
rtpbin
(
media
:
RTSPMedia
, rtpbin
:
Gst
.
Element
)
:
boolean
Parameters
media:
RTSPMedia
rtpbin:
Gst
.
Element
Returns
boolean
setup_
sdp
setup_
sdp
(
media
:
RTSPMedia
, sdp
:
SDPMessage
, info
:
SDPInfo
)
:
boolean
Parameters
media:
RTSPMedia
sdp:
SDPMessage
info:
SDPInfo
Returns
boolean
suspend
suspend
(
media
:
RTSPMedia
)
:
boolean
Parameters
media:
RTSPMedia
Returns
boolean
target_
state
target_
state
(
media
:
RTSPMedia
, state
:
Gst
.
State
)
:
void
Parameters
media:
RTSPMedia
state:
Gst
.
State
Returns
void
unprepare
unprepare
(
media
:
RTSPMedia
)
:
boolean
Parameters
media:
RTSPMedia
Returns
boolean
unprepared
unprepared
(
media
:
RTSPMedia
)
:
void
Parameters
media:
RTSPMedia
Returns
void
unsuspend
unsuspend
(
media
:
RTSPMedia
)
:
boolean
Parameters
media:
RTSPMedia
Returns
boolean
RTSPMedia
Class
constructor
parent_
class
name
convert_
range
handle_
message
handle_
sdp
new_
state
new_
stream
prepare
prepared
query_
position
query_
stop
removed_
stream
setup_
rtpbin
setup_
sdp
suspend
target_
state
unprepare
unprepared
unsuspend
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHc3RSdHNwU2VydmVyXzFfMC5Hc3RSdHNwU2VydmVyLlJUU1BNZWRpYUNsYXNzLmh0bWwjY29uc3RydWN0b3IiLCJuYW1l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