|
NIMSDK-AOS
9.21.10
|
视频消息附件 更多...
Public 成员函数 | |
| VideoAttachment () | |
| VideoAttachment (String attach) | |
| int | getWidth () |
| 获取视频的宽度 更多... | |
| void | setWidth (int width) |
| 设置视频的宽度 更多... | |
| int | getHeight () |
| 获取视频的高度 更多... | |
| void | setHeight (int height) |
| 设置视频的高度 更多... | |
| long | getDuration () |
| 获取视频的播放时长 更多... | |
| void | setDuration (long duration) |
| 设置视频的播放时长 更多... | |
| String | getThumbUrl () |
| 获取缩略图 thumbUrl 更多... | |
Public 成员函数 继承自 com.netease.nimlib.sdk.msg.attachment.FileAttachment | |
| FileAttachment () | |
| FileAttachment (String attach) | |
| String | getPath () |
| 获取文件本地路径,若文件不存在,返回null 更多... | |
| String | getPathForSave () |
| 获取用于保存该文件的位置 更多... | |
| String | getThumbPath () |
| 获取缩略图文件的本地路径,若文件不存在,返回null 更多... | |
| String | getThumbPathForSave () |
| 获取用于保存缩略图文件的位置 更多... | |
| void | setPath (String path) |
| 设置文件路径 更多... | |
| boolean | setUri (Uri uri) |
| 设置文件uri, 仅支持ContentResolver.SCHEME_FILE类型和ContentResolver.SCHEME_CONTENT类型的uri 仅支持发送消息时使用,接收的消息附件不支持uri 更多... | |
| Uri | getUri () |
| long | getSize () |
| 获取文件大小,单位为byte 更多... | |
| void | setSize (long size) |
| 设置文件大小,单位为byte 更多... | |
| String | getMd5 () |
| 获取文件内容MD5 更多... | |
| void | setMd5 (String md5) |
| 设置文件内容MD5 更多... | |
| String | getUrl () |
| 获取文件在服务器上的下载url。若文件还未上传,返回null 更多... | |
| void | setUrl (String url) |
| 设置文件在服务器上的下载url 更多... | |
| String | getExtension () |
| 获取文件后缀名 更多... | |
| void | setExtension (String extension) |
| 设置文件后缀名 更多... | |
| String | getFileName () |
| 获取文件名。 更多... | |
| String | getDisplayName () |
| 获取文件的显示名。可以和文件名不同,仅用于界面展示 更多... | |
| void | setDisplayName (String displayName) |
| 设置文件显示名 更多... | |
| String | getNosTokenSceneKey () |
| 获取文件上传时的nos scene 更多... | |
| void | setNosTokenSceneKey (String nosTokenSceneKey) |
| 设置文件上传时的nos scene 更多... | |
| long | getExpire () |
| boolean | isForceUpload () |
| 文件是否强制重新上传 更多... | |
| void | setForceUpload (boolean forceUpload) |
| 设置文件是否强制重新上传,默认false 更多... | |
| String | toJson (boolean send) |
| 将消息附件序列化为字符串,存储到消息数据库或发送到服务器。 更多... | |
Protected 成员函数 | |
| NimStorageType | storageType () |
| void | save (JSONObject json) |
| void | load (JSONObject json) |
Protected 成员函数 继承自 com.netease.nimlib.sdk.msg.attachment.FileAttachment | |
| NimStorageType | storageType () |
| void | save (JSONObject json) |
| void | load (JSONObject json) |
额外继承的成员函数 | |
Protected 属性 继承自 com.netease.nimlib.sdk.msg.attachment.FileAttachment | |
| String | path |
| 文件路径 更多... | |
| long | size |
| 文件大小 更多... | |
| String | md5 |
| 文件内容的MD5 更多... | |
| String | url |
| 文件下载地址 更多... | |
| String | displayName |
| 文件显示名 更多... | |
| String | extension |
| 文件后缀名 更多... | |
| String | nosTokenSceneKey = NimNosSceneKeyConstant.NIM_DEFAULT_IM |
| 上传文件时用的对token对应的场景,默认NimNosSceneKeyConstant#NIM_DEFAULT_IM 更多... | |
| boolean | forceUpload = false |
| 如果服务器存在相同的附件文件,是否强制重新上传 , 默认false 更多... | |
视频消息附件
在文件 VideoAttachment.java 第 12 行定义.
| com.netease.nimlib.sdk.msg.attachment.VideoAttachment.VideoAttachment | ( | ) |
在文件 VideoAttachment.java 第 20 行定义.
| com.netease.nimlib.sdk.msg.attachment.VideoAttachment.VideoAttachment | ( | String | attach | ) |
在文件 VideoAttachment.java 第 24 行定义.
| long com.netease.nimlib.sdk.msg.attachment.VideoAttachment.getDuration | ( | ) |
| int com.netease.nimlib.sdk.msg.attachment.VideoAttachment.getHeight | ( | ) |
获取视频的高度
在文件 VideoAttachment.java 第 45 行定义.
| String com.netease.nimlib.sdk.msg.attachment.VideoAttachment.getThumbUrl | ( | ) |
| int com.netease.nimlib.sdk.msg.attachment.VideoAttachment.getWidth | ( | ) |
获取视频的宽度
在文件 VideoAttachment.java 第 31 行定义.
|
protected |
在文件 VideoAttachment.java 第 97 行定义.
|
protected |
在文件 VideoAttachment.java 第 90 行定义.
| void com.netease.nimlib.sdk.msg.attachment.VideoAttachment.setDuration | ( | long | duration | ) |
设置视频的播放时长
在文件 VideoAttachment.java 第 68 行定义.
| void com.netease.nimlib.sdk.msg.attachment.VideoAttachment.setHeight | ( | int | height | ) |
设置视频的高度
在文件 VideoAttachment.java 第 52 行定义.
| void com.netease.nimlib.sdk.msg.attachment.VideoAttachment.setWidth | ( | int | width | ) |
设置视频的宽度
在文件 VideoAttachment.java 第 38 行定义.
|
protected |
在文件 VideoAttachment.java 第 81 行定义.
1.8.11