DBFILESVideoMetadata

@interface DBFILESVideoMetadata
    : DBFILESMediaMetadata <DBSerializable, NSCopying>

The VideoMetadata struct.

Metadata for a video.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

  • The duration of the video in milliseconds.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSNumber *duration;

    Swift

    var duration: NSNumber? { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithDimensions:(nullable DBFILESDimensions *)dimensions
              location:(nullable DBFILESGpsCoordinates *)location
             timeTaken:(nullable NSDate *)timeTaken
              duration:(nullable NSNumber *)duration;

    Swift

    init(dimensions: DBFILESDimensions?, location: DBFILESGpsCoordinates?, timeTaken: Date?, duration: NSNumber?)

    Parameters

    dimensions

    Dimension of the photo/video.

    location

    The GPS coordinate of the photo/video.

    timeTaken

    The timestamp when the photo/video is taken.

    duration

    The duration of the video in milliseconds.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initDefault;

    Swift

    init(default: ())

    Return Value

    An initialized instance.