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

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.

Parameters
pathVideo save path, which must be specified externally

◆ DownloadSnapshot()

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.

Parameters
pathScreenshot save path, which must be specified externally

◆ operator=()

V2TIMVideoElem& operator= ( const V2TIMVideoElem )

Field Documentation

◆ videoPath

V2TIMString videoPath

Video file path (valid only for the message sender)

◆ snapshotPath

V2TIMString snapshotPath

Screenshot file path (valid only for the message sender)

◆ videoUUID

V2TIMString videoUUID

Video ID which is an internal ID and can be used as an external cache key.

◆ videoSize

uint64_t videoSize

Video file size.

◆ videoType

V2TIMString videoType

Video type.

◆ duration

uint32_t duration

Duration, in seconds.

◆ snapshotUUID

V2TIMString snapshotUUID

Screenshot ID which is an internal ID and can be used as an external cache key.

◆ 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