class Hamilton::Types::InputStoryContentVideo

Overview

Describes a video to post as a story.

Included Modules

Defined in:

types/input_story_content.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def cover_frame_timestamp : Float32 | Nil #

Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.


def cover_frame_timestamp=(cover_frame_timestamp : Float32 | Nil) #

Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.


def duration : Float32 | Nil #

Precise duration of the video in seconds; 0-60.


def duration=(duration : Float32 | Nil) #

Precise duration of the video in seconds; 0-60.


def is_animation : Bool | Nil #

Pass True if the video has no sound.


def is_animation=(is_animation : Bool | Nil) #

Pass True if the video has no sound.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def type : String #

Type of the content, must be "video".


def type=(type : String) #

Type of the content, must be "video".


def video : Hamilton::Types::InputFile | String #

The video to post as a story. The video must be of the size 720x1280, streamable, encoded with H.265 codec, with key frames added each second in the MPEG4 format, and must not exceed 30 MB. The video can't be reused and can only be uploaded as a new file, so you can pass attach://<file_attach_name> if the video was uploaded using multipart/form-data under <file_attach_name>.


def video=(video : Hamilton::Types::InputFile | String) #

The video to post as a story. The video must be of the size 720x1280, streamable, encoded with H.265 codec, with key frames added each second in the MPEG4 format, and must not exceed 30 MB. The video can't be reused and can only be uploaded as a new file, so you can pass attach://<file_attach_name> if the video was uploaded using multipart/form-data under <file_attach_name>.