Video Post
Create Video Post
Creating a video post is similar to creating a file and image post.
When creating a video post, you need to upload the video first so you can get the fileId
that you will use in creating the video post.
The AmityFileRepository
class contains a methods that helps to upload videos. To upload videos, you need to specify the feedType
to which the video should belong.
For example: If you want to create a video post, you need to set feedType
to post
or ContentFeedType.POST
When the video is successfully uploaded, you will receive an instance of AmityVideoData
which contains information about the uploaded video.
Requirements for Video
Supported video types are
3gp
,avi
,f4v
,flv
,m4v
,mov
,mp4
,ogv
,3g2
,wmv
,vob
,webm
,mkv
The maximum file size of the video is 1 GB
The maximum duration of the video is 2 hours
Thumbnail for video post will be automatically generated
When creating a video post, you need to upload the video first so you can get the fileId
that you will use in creating the video post.
If the video is successfully retrieved, the response will contain the video file details. Refer to the file model for the structure and information of the response after a successful file query. Once you have the fileId
, you can now create the video post with the following method:
Play Video with Multiple Resolutions
You can find the actual videos in a video post if you look at the children’s posts.
Play Video with Multiple Resolutions
You can find the actual videos in a video post if you look at the children’s posts.
Last updated