GstRtsp.RTSPRange¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
max |
r/w |
maximum value of the range |
|
min |
r/w |
minimum value of the range |
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
Details¶
- class GstRtsp.RTSPRange¶
Provides helper functions to deal with time ranges.
- classmethod convert_units(range, unit)[source]¶
- Parameters:
range (
GstRtsp.RTSPTimeRange
) – aGstRtsp.RTSPTimeRange
unit (
GstRtsp.RTSPRangeUnit
) – the unit to convert the range into
- Returns:
True
if the range could be converted- Return type:
Converts the range in-place between different types of units. Ranges containing the special value
GstRtsp.RTSPTimeType.NOW
can not be converted as these are only valid forGstRtsp.RTSPRangeUnit.NPT
.
- classmethod free(range)[source]¶
- Parameters:
range (
GstRtsp.RTSPTimeRange
) – aGstRtsp.RTSPTimeRange
Free the memory allocated by range.
- classmethod get_times(range)[source]¶
- Parameters:
range (
GstRtsp.RTSPTimeRange
) – aGstRtsp.RTSPTimeRange
- Returns:
True
on success.- min:
result minimum #GstClockTime
- max:
result maximum #GstClockTime
- Return type:
Retrieve the minimum and maximum values from range converted to #GstClockTime in min and max.
A value of
Gst.CLOCK_TIME_NONE
will be used to signalGstRtsp.RTSPTimeType.NOW
andGstRtsp.RTSPTimeType.END
for min and max respectively.UTC times will be converted to nanoseconds since 1900.
New in version 1.2.
- classmethod parse(rangestr)[source]¶
- Parameters:
rangestr (
str
) – a range string to parse- Returns:
GstRtsp.RTSPResult.OK
on success.- range:
location to hold the
GstRtsp.RTSPTimeRange
result
- Return type:
(
GstRtsp.RTSPResult
, range:GstRtsp.RTSPTimeRange
)
Parse rangestr to a
GstRtsp.RTSPTimeRange
.
- classmethod to_string(range)[source]¶
- Parameters:
range (
GstRtsp.RTSPTimeRange
) – aGstRtsp.RTSPTimeRange
- Returns:
The string representation of range.
GLib.free
() after usage.- Return type:
Convert range into a string representation.