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
The downloadVideo API downloads videos from the server each time. If cache or storage is required, you can use UUIDs as keys for external storage. The IM SDK does not store resource files.
path | Video save path, which must be specified externally |
void DownloadSnapshot | ( | const V2TIMString & | path, |
V2TIMDownloadCallback * | callback | ||
) |
Download a video screenshot
The downloadSnapshot API downloads screenshots from the server each time. If cache or storage is required, you can use UUIDs as keys for external storage. The IM SDK does not store resource files.
path | Screenshot save path, which must be specified externally |
V2TIMVideoElem& operator= | ( | const V2TIMVideoElem & | ) |
V2TIMString videoPath |
Video file path (valid only for the message sender)
V2TIMString snapshotPath |
Screenshot file path (valid only for the message sender)
V2TIMString videoUUID |
Video ID which is an internal ID and can be used as an external cache key.
uint64_t videoSize |
Video file size.
V2TIMString videoType |
Video type.
uint32_t duration |
Duration, in seconds.
V2TIMString snapshotUUID |
Screenshot ID which is an internal ID and can be used as an external cache key.
uint64_t snapshotSize |
Screenshot file size.
uint32_t snapshotWidth |
Screenshot width.
uint32_t snapshotHeight |
Screenshot height.
|
inherited |
element type
|
inherited |