IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMVideoElem

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 &)
 
V2TIMVideoElemoperator= (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
 

Constructor & Destructor Documentation

◆ V2TIMVideoElem() [1/2]

◆ V2TIMVideoElem() [2/2]

◆ ~V2TIMVideoElem()

~V2TIMVideoElem ( )
override

Member Function Documentation

◆ GetVideoUrl()

void GetVideoUrl ( V2TIMValueCallback< V2TIMString > *  callback)

Get the video download URL.

◆ GetSnapshotUrl()

void GetSnapshotUrl ( V2TIMValueCallback< V2TIMString > *  callback)

Get the screenshot download URL.

◆ DownloadVideo()

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.

Parameters
pathThe path to which the video file is saved. It must be specified externally.

◆ DownloadSnapshot()

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.

Parameters
pathThe path to which the screenshot file is saved. It must be specified externally.

◆ operator=()

V2TIMVideoElem& operator= ( const V2TIMVideoElem )

Field Documentation

◆ videoPath

V2TIMString videoPath

The video file path (can only be called by the message sender)

◆ snapshotPath

V2TIMString snapshotPath

The path of the screenshot file (can only be called by the message sender)

◆ videoUUID

V2TIMString videoUUID

The internal video ID, which can be used as the key for external caching.

◆ videoSize

uint64_t videoSize

Video file size.

◆ videoType

V2TIMString videoType

Video type.

◆ duration

uint32_t duration

Duration, in seconds.

◆ snapshotUUID

V2TIMString snapshotUUID

The internal screenshot ID, which can be used as the key for external caching.

◆ snapshotSize

uint64_t snapshotSize

Screenshot file size.

◆ snapshotWidth

uint32_t snapshotWidth

Screenshot width.

◆ snapshotHeight

uint32_t snapshotHeight

Screenshot height.

◆ elemType

V2TIMElemType elemType
inherited

element type

◆ obj_ptr

void* obj_ptr
inherited