TTMSFNCCloudCustomWhatsApp.UploadVideo Method
Uploads a video file.
API unit family: TMSFNCCloudWhatsApp
Declaring type: TTMSFNCCloudCustomWhatsApp
Overloads
Overload 1
Uploads a video file.
function UploadVideo(AMedia: TTMSFNCUtilsFile; AAsync: Boolean = true): Integer; overload;
Parameters
| Name | Description |
|---|---|
AMedia |
File object that provides the video content. |
AAsync |
Set to True to perform the upload asynchronously when supported. |
Returns
The index of the media entry in Files, or -1 when the upload is asynchronous or fails before a media entry is created.
Overload 2
Uploads video content from a stream.
function UploadVideo(AMediaStream: TStream; AFileName: string; AAsync: Boolean = true): Integer; overload;
Parameters
| Name | Description |
|---|---|
AMediaStream |
Stream that contains the video content. |
AFileName |
File name to associate with the uploaded video. |
AAsync |
Set to True to perform the upload asynchronously when supported. |
Returns
The index of the media entry in Files, or -1 when the upload is asynchronous or fails before a media entry is created.