Videos

public class Videos: NSObject

Wrapper class to manage Video instances

  • Add a new video

    Declaration

    Swift

    public func add(_ name:String, duration: Int) -> Video

    Parameters

    name

    video name

    duration

    video duration in seconds

    Return Value

    the new video instance

  • Add a new video

    Declaration

    Swift

    public func add(_ name: String, chapter1: String, duration: Int) -> Video

    Parameters

    name

    video name

    chapter1

    chapter1 label

    duration

    video duration in seconds

    Return Value

    the new video instance

  • Add a new video

    Declaration

    Swift

    public func add(_ name: String, chapter1: String, chapter2: String, duration: Int) -> Video

    Parameters

    name

    video name

    chapter1

    chapter1 label

    chapter2

    chapter2 label

    duration

    video duration in seconds

    Return Value

    the new video instance

  • Add a new video

    Declaration

    Swift

    public func add(_ name: String, chapter1: String, chapter2: String, chapter3: String, duration: Int) -> Video

    Parameters

    name

    video name

    chapter1

    chapter1 label

    chapter2

    chapter2 label

    chapter3

    chapter3 label

    duration

    video duration in seconds

    Return Value

    the new video instance

  • Remove a video

    Declaration

    Swift

    public func remove(_ name: String)

    Parameters

    name

    video name

  • Remove all videos

    Declaration

    Swift

    public func removeAll()