updateProfileVideo
Update the profile video of the current user.
Parameters
The video to set as profile video.
isPublic?: boolean
Whether the video should be set as the fallback public profile photo. User-only.
thumbnailTimestamp?: number
The timestamp in seconds to use as thumbnail.
fileName?: string
The file name to assign if applicable.
fileSize?: number
The file’s size.
mimeType?: string
The mime type to assign if applicable.
chunkSize?: number
Size of each upload chunk in bytes.
signal?: AbortSignal
Upload abort signal.
progressId?: string
A progress ID retrieved from the method getProgressId. If specified, updates on the upload progress will be sent.
Result
void
Syntax
// Required parameters only.
await client.updateProfileVideo(video);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.updateProfileVideo(video, {
isPublic,
thumbnailTimestamp,
fileName,
fileSize,
mimeType,
chunkSize,
signal,
progressId,
});