Public 成员函数 | |
| EMVideoMessageBody (String videoFilePath, String thumbPath, int duration, long filelength) | |
| EMVideoMessageBody (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 | getThumbnailSecret () |
| void | setThumbnailSecret (String secret) |
| EMDownloadStatus | thumbnailDownloadStatus () |
| void | setThumbnailDownloadStatus (EMDownloadStatus status) |
视频消息体。
| com.hyphenate.chat.EMVideoMessageBody.EMVideoMessageBody | ( | String | videoFilePath, |
| String | thumbPath, | ||
| int | duration, | ||
| long | filelength ) |
创建视频消息体。
| videoFilePath | 视频文件路径。 |
| thumbPath | 缩略图路径。 |
| duration | 视频时长,单位是秒。 |
| filelength | 视频文件大小。 |
| com.hyphenate.chat.EMVideoMessageBody.EMVideoMessageBody | ( | Uri | videoFilePath, |
| Uri | thumbPath, | ||
| int | duration, | ||
| long | filelength ) |
创建视频消息体。
| videoFilePath | 视频缩略图的资源标识符。 |
| thumbPath | 缩略图的资源标识符。 |
| duration | 视频时长,单位为秒。 |
| filelength | 视频文件大小。 |
| int com.hyphenate.chat.EMVideoMessageBody.getDuration | ( | ) |
获取视频时长, 单位为秒。
| String com.hyphenate.chat.EMVideoMessageBody.getLocalThumb | ( | ) |
获取视频缩略图的本地绝对路径或者资源标识符的字符串形式。
| Uri com.hyphenate.chat.EMVideoMessageBody.getLocalThumbUri | ( | ) |
获取缩略图的本地资源标识符。
| int com.hyphenate.chat.EMVideoMessageBody.getThumbnailHeight | ( | ) |
获取视频缩略图的高度。
| String com.hyphenate.chat.EMVideoMessageBody.getThumbnailSecret | ( | ) |
获取视频缩略图的密钥。 下载视频缩略图时需要密匙做校验。
| String com.hyphenate.chat.EMVideoMessageBody.getThumbnailUrl | ( | ) |
获取缩略图在服务器的路径。
| int com.hyphenate.chat.EMVideoMessageBody.getThumbnailWidth | ( | ) |
获取视频缩略图的宽度。
| long com.hyphenate.chat.EMVideoMessageBody.getVideoFileLength | ( | ) |
获取视频文件的大小。
| void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb | ( | String | localThumbPath | ) |
设置视频缩略图路径。
| localThumbPath | 视频缩略图路径,可以是缩略图的绝对路径或资源标识符。 |
| void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb | ( | Uri | localThumbPath | ) |
设置视频缩略图的路径。
| localThumbPath | 视频缩略图的资源标识符。 |
| void com.hyphenate.chat.EMVideoMessageBody.setThumbnailDownloadStatus | ( | EMDownloadStatus | status | ) |
设置视频缩略图的下载状态。
| status | 视频缩略图的下载状态。 |
| void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSecret | ( | String | secret | ) |
设置视频缩略图的密钥。
| secret | 视频缩略图的密钥。 |
| void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSize | ( | int | width, |
| int | height ) |
设置视频缩略图的尺寸。
| width | 视频缩略图的宽度。 |
| height | 视频缩略图的高度。 |
| void com.hyphenate.chat.EMVideoMessageBody.setThumbnailUrl | ( | String | thumbnailUrl | ) |
设置缩略图在服务器的路径。
| thumbnailUrl | 缩略图在服务器的路径。 |
| void com.hyphenate.chat.EMVideoMessageBody.setVideoFileLength | ( | long | filelength | ) |
设置视频文件的文件大小。 用户在做数据库迁移的时候可能使用。
| filelength | 视频文件的大小。 |
| EMDownloadStatus com.hyphenate.chat.EMVideoMessageBody.thumbnailDownloadStatus | ( | ) |
获取视频缩略图的下载状态。