Video Message
To send a video message, you must pass a valid local file URL instance instead. You can also specify an optional caption as part of the message. This caption is accessible via the data property in the message model under the caption key. You can add up to 1,000 characters of text per message. When a video is uploaded, it is automatically resized to the maximum size of 480p.
Requirements for videos:
- The maximum file size of the video is 1 GB.
- The thumbnail for the video message is created automatically.
iOS
Android
JavaScript
TypeScript
Flutter
Version 6
Version 5 (Maintained)
Version 6
Version 5 (Maintained)
Supported ✅ (please wait while we prepare a real example!)
Version 6
Version 5 (Maintained)
The functionality isn't currently supported by this SDK.
To play a video, the SDK provides the function
AmityVideoData.getVideo(resolution:)
, which returns a ready-to-play HTTP URL.iOS
Android
JavaScript
TypeScript
Flutter
Supported ✅ (please wait while we prepare a real example!)
Supported ✅ (please wait while we prepare a real example!)
Supported ✅ (please wait while we prepare a real example!)
The functionality isn't currently supported by this SDK.
After a video message is created, the videos are transcoded from the original resolution.
AmityVideoResolution
is an enum that represents the video resolution. When you create a video message, the original resolution is available immediately after the message is created. However, the transcoded resolution takes time and will only be available later. You can use the property AmityVideoData.videoUrls
to get the available resolution for the current message.iOS
Android
JavaScript
TypeScript
Flutter
Supported ✅ (please wait while we prepare a real example!)
Supported ✅ (please wait while we prepare a real example!)
Supported ✅ (please wait while we prepare a real example!)
The functionality isn't currently supported by this SDK.
The SDK provides
AmityVideoData.attributes
, which returns a dictionary of video file attributes that might be useful for your application.iOS
Android
JavaScript
TypeScript
Flutter
Supported ✅ (please wait while we prepare a real example!)
Supported ✅ (please wait while we prepare a real example!)
Supported ✅ (please wait while we prepare a real example!)
The functionality isn't currently supported by this SDK.
Last modified 22d ago