Public Member Functions | |
String | getVideoPath () |
String | getVideoUUID () |
int | getVideoSize () |
int | getDuration () |
void | downloadVideo (final String path, final V2TIMDownloadCallback v2TIMDownloadCallback) |
void | getVideoUrl (final V2TIMValueCallback< String > callback) |
String | getSnapshotPath () |
String | getSnapshotUUID () |
int | getSnapshotSize () |
int | getSnapshotWidth () |
int | getSnapshotHeight () |
void | downloadSnapshot (final String path, final V2TIMDownloadCallback v2TIMDownloadCallback) |
void | getSnapshotUrl (final V2TIMValueCallback< String > callback) |
String | toString () |
V2TIMElem | getNextElem () |
void | appendElem (V2TIMElem v2TIMElem) |
|
inline |
Get the video file path (can only be called by the message sender)
|
inline |
Get the internal video ID, which can be used as the key for external caching
|
inline |
Get the video size
|
inline |
Get the video duration, in seconds
|
inline |
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. |
v2TIMDownloadCallback | Callback |
|
inline |
Get the video download URL
|
inline |
Get the path of the screenshot file (can only be called by the message sender)
|
inline |
Get the internal screenshot ID, which can be used as the key for external caching
|
inline |
Get the screenshot size
|
inline |
Get the screenshot width
|
inline |
Get the screenshot height
|
inline |
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. |
v2TIMDownloadCallback | Callback |
|
inline |
Get the screenshot download URL
|
inline |
|
inlineinherited |
|
inlineinherited |
Add the next element
To configure multiple elements, after creating a Message object, you can add the next element via the element object of Message.
The following is the sample code for creating V2TIMTextElem and V2TIMCustomElem:
V2TIMMessage message = V2TIMManager.getMessageManager().createTextMessage("test");
V2TIMCustomElem customElem = new V2TIMCustomElem();
customElem.setData("Custom message".getBytes());
message.getTextElem().appendElem(customElem);