RTSPRange

Provides helper functions to deal with time ranges.

Members

Static functions

convertUnits
bool convertUnits(gstrtsp.rtsptime_range.RTSPTimeRange range, gstrtsp.types.RTSPRangeUnit unit)

Converts the range in-place between different types of units. Ranges containing the special value #GST_RTSP_TIME_NOW can not be converted as these are only valid for #GST_RTSP_RANGE_NPT.

free
void free(gstrtsp.rtsptime_range.RTSPTimeRange range)

Free the memory allocated by range.

getTimes
bool getTimes(gstrtsp.rtsptime_range.RTSPTimeRange range, gst.types.ClockTime min, gst.types.ClockTime max)

Retrieve the minimum and maximum values from range converted to #GstClockTime in min and max.

parse
gstrtsp.types.RTSPResult parse(string rangestr, gstrtsp.rtsptime_range.RTSPTimeRange range)

Parse rangestr to a #GstRTSPTimeRange.

toString_
string toString_(gstrtsp.rtsptime_range.RTSPTimeRange range)

Convert range into a string representation.