OTVEventTimelineAnalyzer

public class OTVEventTimelineAnalyzer : NSObject

Analyzer for OTVEventTimeline to report startup/zapping time.

Note

If you are playing back two streams at the same time the results from this class are undefined.
  • Returns the start durations (in milliseconds) and corresponding URL string for playback attempts logged in OTVEventTimeline.

    Note

    If you are playing back two streams at the same time the results are undefined.

    Declaration

    Swift

    public static func getStartDuration() -> [(url: String, startDuration: Int)]
  • Returns all the start durations (in milliseconds) for playback attempts logged in OTVEventTimeline for the specified URL string.

    Note

    If you are playing back two streams at the same time the results are undefined.

    Declaration

    Swift

    public static func getStartDuration(for url: String) -> [Int]

    Parameters

    url

    the URL to get the durations for

  • Returns all OTVEvents for playback attempts logged in OTVEventTimeline for the specified URL string.

    Note

    If you are playing back two streams at the same time the results are undefined.

    Declaration

    Swift

    public static func getStartDurationDetails(for url: String) -> [OTVEvent]

    Parameters

    url

    the URL to get the events for

  • Returns the duration it took to zap between the two specified URL strings. If the zap duration cannot be determined -1 is returned. If there have been two attempts to zap between these URL strings then the latest duration will be returned.

    Note

    If you are playing back two streams at the same time the results are undefined

    Declaration

    Swift

    public static func getZapDuration(from fromURL: String, to toURL: String) -> Int

    Parameters

    fromURL

    the URL string that was playing before the zap took place

    toURL

    the URL string that was zapped to