Public Member Functions | |
void | GetVideoUrl (V2TIMValueCallback< V2TIMString > *callback) |
void | GetSnapshotUrl (V2TIMValueCallback< V2TIMString > *callback) |
void | DownloadVideo (const V2TIMString &path, V2TIMDownloadCallback *callback) |
void | DownloadSnapshot (const V2TIMString &path, V2TIMDownloadCallback *callback) |
V2TIMVideoElem () | |
V2TIMVideoElem (const V2TIMVideoElem &) | |
V2TIMVideoElem & | operator= (const V2TIMVideoElem &) |
~V2TIMVideoElem () override | |
Data Fields | |
V2TIMString | videoPath |
V2TIMString | snapshotPath |
V2TIMString | videoUUID |
uint64_t | videoSize |
V2TIMString | videoType |
uint32_t | duration |
V2TIMString | snapshotUUID |
uint64_t | snapshotSize |
uint32_t | snapshotWidth |
uint32_t | snapshotHeight |
V2TIMElemType | elemType |
void * | obj_ptr |
V2TIMVideoElem | ( | ) |
V2TIMVideoElem | ( | const V2TIMVideoElem & | ) |
|
override |
void GetVideoUrl | ( | V2TIMValueCallback< V2TIMString > * | callback | ) |
Get the video download URL.
void GetSnapshotUrl | ( | V2TIMValueCallback< V2TIMString > * | callback | ) |
Get the screenshot download URL.
void DownloadVideo | ( | const V2TIMString & | path, |
V2TIMDownloadCallback * | callback | ||
) |
Download a video. This API downloads data from the server. To cache or store the data, you can use the UUID as the key. The Chat SDK does not store the files.
path | The path to which the video file is saved. It must be specified externally. |
void DownloadSnapshot | ( | const V2TIMString & | path, |
V2TIMDownloadCallback * | callback | ||
) |
Download a video screenshot. This API downloads data from the server. To cache or store the data, you can use the UUID as the key. The Chat SDK does not store the files.
path | The path to which the screenshot file is saved. It must be specified externally. |
V2TIMVideoElem& operator= | ( | const V2TIMVideoElem & | ) |
V2TIMString videoPath |
The video file path (can only be called by the message sender)
V2TIMString snapshotPath |
The path of the screenshot file (can only be called by the message sender)
V2TIMString videoUUID |
The internal video ID, which can be used as the key for external caching.
uint64_t videoSize |
Video file size.
V2TIMString videoType |
Video type.
uint32_t duration |
Duration, in seconds.
V2TIMString snapshotUUID |
The internal screenshot ID, which can be used as the key for external caching.
uint64_t snapshotSize |
Screenshot file size.
uint32_t snapshotWidth |
Screenshot width.
uint32_t snapshotHeight |
Screenshot height.
|
inherited |
element type
|
inherited |