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 (valid only for the message sender)
|
inline |
Get the video ID, which is an internal ID and can be used as an external cache key
|
inline |
Get the video size
|
inline |
Get the video duration, in seconds
|
inline |
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 |
v2TIMDownloadCallback | Callback |
|
inline |
Get the video download URL
|
inline |
Get the screenshot file path (valid only for the message sender)
|
inline |
Get the screenshot ID, which is an internal ID and can be used as an external cache key
|
inline |
Get the screenshot size
|
inline |
Get the screenshot width
|
inline |
Get the screenshot height
|
inline |
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 |
v2TIMDownloadCallback | Callback |
|
inline |
Get the screenshot download URL
|
inline |
|
inlineinherited |
|
inlineinherited |
Add the next element
To configure multiple elements, you can add the next element via the element of a Message object after creating the Message object.
The following is the sample code for creating V2TIMTextElem and V2TIMCustomElem elements:
V2TIMMessage message = V2TIMManager.getMessageManager().createTextMessage("test");
V2TIMCustomElem customElem = new V2TIMCustomElem();
customElem.setData("Custom message".getBytes());
message.getTextElem().appendElem(customElem);