VOVideoMedia

@interface VOVideoMedia : VOVoucherMedia

VOVideoMedia is a VouchrMedia for videos.

  • The data of the video. Can be used for caching the video data, or saving the video data before it has been uploaded.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSData *videoData;

    Swift

    var videoData: Data? { get }
  • Thumbnail data for saving the thumbnail image pre-upload or for caching. Shown before a video plays / the video is buffering.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSData *thumbnailData;

    Swift

    var thumbnailData: Data? { get }
  • Initializer for VOVideoMedia.

    Declaration

    Objective-C

    + (nonnull instancetype)videoMediaWithData:(nullable NSData *)videoData
                                 thumbnailData:(nonnull NSData *)thumbnailData
                                videoUrlString:(nullable NSString *)videoUrlString;

    Swift

    convenience init(data videoData: Data?, thumbnailData: Data, videoUrlString: String?)

    Parameters

    videoData

    - The data of the video.

    thumbnailData

    - The data of the thumbnail image.

    videoUrlString

    - The url string of a video.

    Return Value

    Instance of VOVideoMedia.

  • Initializer for VOVideoMedia.

    Declaration

    Objective-C

    + (nonnull instancetype)videoMediaWithDictionary:
        (nonnull NSDictionary *)dictionary;

    Parameters

    dictionary

    - Dictionary form of a VOVideoMedia.

    Return Value

    Instance of VOVideoMedia.

  • Determines if the VOVideoMedia is a localFile or remote.

    Declaration

    Objective-C

    - (BOOL)isLocalFile;

    Swift

    func isLocalFile() -> Bool

    Return Value

    YES if the file is local, NO otherwise.

  • Indicates whether the video has been uploaded to the server.

    Declaration

    Objective-C

    - (BOOL)hasVideoBeenUploadedToServer;

    Swift

    func hasVideoBeenUploadedToServer() -> Bool

    Return Value

    YES if the video has been uploaded. NO otherwise.

  • Indicates whether the thumbnail has been uploaded to the server.

    Declaration

    Objective-C

    - (BOOL)hasThumbnailBeenUploadedToServer;

    Swift

    func hasThumbnailBeenUploadedToServer() -> Bool

    Return Value

    YES if the thumbnail has been uploaded. NO otherwise.