ICVideoAttachment
This class exposes data relating to Video file attachments that are received through In-app or Push, also used to attach video files to outgoing In-app messages.
getPreviewImage
This method is used to get the video preview thumbnail as String.
Syntax: Bitmap getPreviewImage()
Return Value: Returns the video preview thumbnail as a bitmap.
getDuration
This method is used to get the duration of the applicable video files.
Syntax: long getDuration()
Return Value: Returns the duration in seconds of the video files.
setPreviewImage
This method is used to set the preview of the video file.
Syntax: void setPreviewImage(Bitmap preview)
Parameter | Type | Description |
---|---|---|
preview | String | Specifies the preview of the video file. |
setDuration
This method is used to set the preview of the image file.
Syntax: void setDuration(long duration)
Parameter | Type | Description |
---|---|---|
duration | long | Specifies the duration in seconds. |
Updated 10 months ago