public class Utils : NSObject
mack: I think this should be internal only
public class Utils : NSObject
mack: I think this should be internal only
Choose the longest duration
Swift
public static func areTimeRangesGreaterThan(
_ first: [CMTimeRange],
_ second: [CMTimeRange]) -> Bool
first
|
first array of ranges |
second
|
second array of ranges |
return true if second is larger than first
Sanitizes a seek time to ensure it falls within valid bounds for VOD and live streams.
Swift
public static func sanitizeSeekTime(
_ seekTime: CMTime,
withPlaybackDuration duration: CMTime,
preferredLiveSeekMin: Int64
) -> CMTime
seekTime
|
The desired seek time. |
duration
|
The media duration. For live streams this can be |
preferredLiveSeekMin
|
Minimum allowed seek time (in seconds) for live streams to avoid seeking too close to 0. |
A clamped and valid CMTime for seeking.