VideoStatus

public class VideoStatus : ObservableObject

Observable Video status class that provides updates to the processing of the video.

Provides published observable processing status, number of highlights found and the list of the highlights.

Note

We have highlightsFound and highlights as separate properties. Due to the nature of how TraceDetector works these properties can be updated separately and be out of sync during the processing. As soon as the highlight detected the highlightsFound property is updated but the highlight is not available via highlights yet. TraceDetector will continue to track the highlight and then finalize it a little later. Once the highlight is finalized it will be available in the highlights list.
  • Undocumented

    Declaration

    Swift

    public init()
  • Is video processing or not

    Values are:

    • nil: not started yet
    • true: processing
    • false: finished processing

    Note

    this property updated only on the main thread

    Declaration

    Swift

    @Published
    public var processing: Bool? { get set }
  • number of highlights found in the video

    Note

    this property updated only on the main thread

    Declaration

    Swift

    @Published
    public var highlightsFound: Int { get set }
  • The result of the processing - the list of the highlights found in the video

    The list is updated as soon as the new highlight is finalized and ready to use.

    Note

    this property updated only on the main thread

    Declaration

    Swift

    @Published
    public var highlights: [HighlightObject] { get set }