|qmake:||QT += multimedia|
|QMediaTimeInterval(qint64 start, qint64 end)|
|QMediaTimeInterval(const QMediaTimeInterval &other)|
|bool||contains(qint64 time) const|
|QMediaTimeInterval||translated(qint64 offset) const|
The QMediaTimeInterval class represents a time interval with integer precision.
An interval is specified by an inclusive start() and end() time. These must be set in the constructor, as this is an immutable class. The specific units of time represented by the class have not been defined - it is suitable for any times which can be represented by a signed 64 bit integer.
The isNormal() method determines if a time interval is normal (a normal time interval has start() <= end()). A normal interval can be received from an abnormal interval by calling the normalized() method.
The contains() method determines if a specified time lies within the time interval.
The translated() method returns a time interval which has been translated forwards or backwards through time by a specified offset.
See also QMediaTimeRange.
Constructs an empty interval.
Constructs an interval with the specified start and end times.
Constructs an interval by taking a copy of other.
Returns the end time of the interval.
See also start().
See also normalized().
Returns a normalized version of this interval.
Returns the start time of the interval.
See also end().
Returns a copy of this time interval, translated by a value of offset. An interval can be moved forward through time with a positive offset, or backward through time with a negative offset.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: