bitmovin-player-react-native
Version:
Official React Native bindings for Bitmovin's mobile Player SDKs.
29 lines (27 loc) • 659 B
text/typescript
/**
* Numeric type representing a duration in milliseconds.
*
* Used in the SDK to distinguish millisecond values from other units.
*/
export type Milliseconds = number;
/**
* Numeric type representing a duration in seconds.
*
* Used in the SDK to distinguish seconds values from other units.
*/
export type Seconds = number;
/**
* Represents a time range with a start and end value in the same units.
*
* @typeParam T - Time representation, for example {@link Seconds} or {@link Milliseconds}.
*/
export interface TimeRange<T> {
/**
* The start time of the range.
*/
start?: T;
/**
* The end time of the range.
*/
end?: T;
}