Video Post

Upload Video

Before you can create a video post, you must first upload the video that you will add to your post. Refer to File Upload for the sample code on how to upload the image.

Create Video Post

After uploading the video, you can now create the video post.

Refer to Post target type for a more detailed explanation of the targetType parameter.

Available Video Qualities

After a video post is created, the videos will be transcoded from the original quality.

Currently, the SDK provides one original quality, and three transcoded quality. The possible qualities are :

AmityVideoQuality.ORIGINAL
AmityVideoQuality.HIGH
AmityVideoQuality.MEDIUM
AmityVideoQuality.LOW

When you create a video post, the original quality will be available immediately after the post is created. However, the transcoded quality will take time, and will be available eventually.

SDK provides an ability to define video qualities in AmityPostData object

Last updated