class
Hamilton::Types::InputStoryContentVideo
- Hamilton::Types::InputStoryContentVideo
- Reference
- Object
Overview
Describes a video to post as a story.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/input_story_content.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#cover_frame_timestamp : Float32 | Nil
Timestamp in seconds of the frame that will be used as the static cover for the story.
-
#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.
-
#duration : Float32 | Nil
Precise duration of the video in seconds; 0-60.
-
#duration=(duration : Float32 | Nil)
Precise duration of the video in seconds; 0-60.
-
#is_animation : Bool | Nil
Pass True if the video has no sound.
-
#is_animation=(is_animation : Bool | Nil)
Pass True if the video has no sound.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#type : String
Type of the content, must be "video".
-
#type=(type : String)
Type of the content, must be "video".
-
#video : Hamilton::Types::InputFile | String
The video to post as a story.
-
#video=(video : Hamilton::Types::InputFile | String)
The video to post as a story.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.
Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.
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>.
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>.