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.RTSPTimeRangeunit (
GstRtsp.RTSPRangeUnit) – the unit to convert the range into
- Returns:
 Trueif the range could be converted- Return type:
 
Converts the range in-place between different types of units. Ranges containing the special value
GstRtsp.RTSPTimeType.NOWcan 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:
 Trueon 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_NONEwill be used to signalGstRtsp.RTSPTimeType.NOWandGstRtsp.RTSPTimeType.ENDfor 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.OKon success.- range:
 location to hold the
GstRtsp.RTSPTimeRangeresult
- 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.