Videos

public class Videos : NSObject

Wrapper class to manage Video instances

  • Add a new video

    Declaration

    Swift

    @objc
    public func add(_ mediaLabel: String, duration: Int) -> Video

    Parameters

    mediaLabel

    video name

    duration

    video duration in seconds

    Return Value

    the new video instance

  • Add a new video

    Declaration

    Swift

    @available(*, deprecated, renamed: "add(mediaLabel:mediaTheme1:duration:﹚")
    @objc
    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

    @objc
    public func add(_ mediaLabel: String, mediaTheme1: String, duration: Int) -> Video

    Parameters

    mediaLabel

    video name

    mediaTheme1

    chapter1 label

    duration

    video duration in seconds

    Return Value

    the new video instance

  • Add a new video

    Declaration

    Swift

    @available(*, deprecated, renamed: "add(mediaLabel:mediaTheme1:mediaTheme2:duration:﹚")
    @objc
    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

    @objc
    public func add(_ mediaLabel: String, mediaTheme1: String, mediaTheme2: String, duration: Int) -> Video

    Parameters

    mediaLabel

    video name

    mediaTheme1

    chapter1 label

    mediaTheme2

    chapter2 label

    duration

    video duration in seconds

    Return Value

    the new video instance

  • Add a new video

    Declaration

    Swift

    @available(*, deprecated, renamed: "add(mediaLabel:mediaTheme1:mediaTheme2:mediaTheme3:duration:﹚")
    @objc
    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

  • Add a new video

    Declaration

    Swift

    @available(*, deprecated, message: "same method without first parameter named is available")
    @objc
    public func add(mediaLabel: String, mediaTheme1: String, mediaTheme2: String, mediaTheme3: String, duration: Int) -> Video

    Parameters

    mediaLabel

    video name

    mediaTheme1

    chapter1 label

    mediaTheme2

    chapter2 label

    mediaTheme3

    chapter3 label

    duration

    video duration in seconds

    Return Value

    the new video instance

  • Add a new video

    Declaration

    Swift

    @objc
    public func add(_ mediaLabel: String, mediaTheme1: String, mediaTheme2: String, mediaTheme3: String, duration: Int) -> Video

    Parameters

    mediaLabel

    video name

    mediaTheme1

    chapter1 label

    mediaTheme2

    chapter2 label

    mediaTheme3

    chapter3 label

    duration

    video duration in seconds

    Return Value

    the new video instance

  • Remove a video

    Declaration

    Swift

    @available(*, deprecated, renamed: "remove(mediaLabel:﹚")
    @objc
    public func remove(_ mediaLabel: String)

    Parameters

    mediaLabel

    video name

  • Remove all videos

    Declaration

    Swift

    @objc
    public func removeAll()