-
Notifications
You must be signed in to change notification settings - Fork 314
Open
Milestone
Description
When working with media times, it can often be useful to refer to ranges that are things like "all times after two seconds" or "all times until 90 minutes". With time ranges expressing this, you can do things like: two_seconds_to_infinity_range.contains(RationalTime(36, 24)).
This can be thought of in two ways:
- A
TimeRangethat goes from a concrete time to infinity or from negative infinity to a concrete time - A
TimeRangewith open end bounds or open front bounds
Modeling this as the first described solution would mean:
- Define
RationalTimeconstants for -infinity and infinity - Updating
TimeRangeto be expressed in terms ofstart_timeandend_time(exclusive?) - instead ofstart_timeandduration
For the second described solution one implementation might be to add TimeRange subclasses that are TimeRangeOpenEnd and TimeRangeOpenFront.
The second described solution would imply some API footprint changes for TimeRange.
Metadata
Metadata
Assignees
Type
Projects
Status
To do