agora_chat_SDK 1.0.6
agora java chat SDK
|
Public 成员函数 | |
VideoMessageBody (EMAVideoMessageBody body) | |
VideoMessageBody (String videoFilePath, String thumbPath, int duration, long filelength) | |
VideoMessageBody (Uri videoFilePath, Uri thumbPath, int duration, long filelength) | |
long | getVideoFileLength () |
void | setVideoFileLength (long filelength) |
String | getThumbnailUrl () |
void | setThumbnailUrl (String thumbnailUrl) |
void | setThumbnailSize (int width, int height) |
int | getThumbnailWidth () |
int | getThumbnailHeight () |
String | getLocalThumb () |
Uri | getLocalThumbUri () |
void | setLocalThumb (String localThumbPath) |
void | setLocalThumb (Uri localThumbPath) |
int | getDuration () |
String | toString () |
int | describeContents () |
void | writeToParcel (Parcel dest, int flags) |
String | getThumbnailSecret () |
void | setThumbnailSecret (String secret) |
EMDownloadStatus | thumbnailDownloadStatus () |
静态 Public 属性 | |
static final Parcelable.Creator< VideoMessageBody > | CREATOR |
视频消息体。
io.agora.chat.VideoMessageBody.VideoMessageBody | ( | String | videoFilePath, |
String | thumbPath, | ||
int | duration, | ||
long | filelength | ||
) |
创建视频消息体。
videoFilePath | 视频文件路径。 |
thumbPath | 缩略图路径。 |
duration | 视频时长,单位是秒。 |
filelength | 视频文件大小。 |
io.agora.chat.VideoMessageBody.VideoMessageBody | ( | Uri | videoFilePath, |
Uri | thumbPath, | ||
int | duration, | ||
long | filelength | ||
) |
创建视频消息体。
videoFilePath | 视频缩略图的资源标识符。 |
thumbPath | 缩略图的资源标识符。 |
duration | 视频时长,单位为秒。 |
filelength | 视频文件大小。 |
int io.agora.chat.VideoMessageBody.getDuration | ( | ) |
获取视频时长, 单位为秒。
String io.agora.chat.VideoMessageBody.getLocalThumb | ( | ) |
获取视频缩略图的本地绝对路径或者资源标识符的字符串形式。
Uri io.agora.chat.VideoMessageBody.getLocalThumbUri | ( | ) |
获取缩略图的本地资源标识符。
int io.agora.chat.VideoMessageBody.getThumbnailHeight | ( | ) |
获取视频缩略图的高度。
String io.agora.chat.VideoMessageBody.getThumbnailSecret | ( | ) |
获取视频缩略图的密钥。 下载视频缩略图时需要密匙做校验。
String io.agora.chat.VideoMessageBody.getThumbnailUrl | ( | ) |
获取缩略图在服务器的路径。
int io.agora.chat.VideoMessageBody.getThumbnailWidth | ( | ) |
获取视频缩略图的宽度。
long io.agora.chat.VideoMessageBody.getVideoFileLength | ( | ) |
获取视频文件的大小。
void io.agora.chat.VideoMessageBody.setLocalThumb | ( | String | localThumbPath | ) |
设置视频缩略图路径。
localThumbPath | 视频缩略图路径,可以是缩略图的绝对路径或资源标识符。 |
void io.agora.chat.VideoMessageBody.setLocalThumb | ( | Uri | localThumbPath | ) |
设置视频缩略图的路径。
localThumbPath | 视频缩略图的资源标识符。 |
void io.agora.chat.VideoMessageBody.setThumbnailSecret | ( | String | secret | ) |
设置视频缩略图的密钥。
secret | 视频缩略图的密钥。 |
void io.agora.chat.VideoMessageBody.setThumbnailSize | ( | int | width, |
int | height | ||
) |
设置视频缩略图的尺寸。
width | 视频缩略图的宽度。 |
height | 视频缩略图的高度。 |
void io.agora.chat.VideoMessageBody.setThumbnailUrl | ( | String | thumbnailUrl | ) |
设置缩略图在服务器的路径。
thumbnailUrl | 缩略图在服务器的路径。 |
void io.agora.chat.VideoMessageBody.setVideoFileLength | ( | long | filelength | ) |
设置视频文件的文件大小。 用户在做数据库迁移的时候可能使用。
filelength | 视频文件的大小。 |
EMDownloadStatus io.agora.chat.VideoMessageBody.thumbnailDownloadStatus | ( | ) |
获取视频缩略图的下载状态。
|
static |