public class VideoAttachment extends FileAttachment
displayName, extension, forceUpload, md5, nosTokenSceneKey, path, size, url| 构造器和说明 |
|---|
VideoAttachment() |
VideoAttachment(java.lang.String attach) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getDuration()
获取视频的播放时长
|
int |
getHeight()
获取视频的高度
|
java.lang.String |
getThumbUrl()
获取缩略图 thumbUrl
|
int |
getWidth()
获取视频的宽度
|
protected void |
load(JSONObject json) |
protected void |
save(JSONObject json) |
void |
setDuration(long duration)
设置视频的播放时长
|
void |
setHeight(int height)
设置视频的高度
|
void |
setWidth(int width)
设置视频的宽度
|
protected NimStorageType |
storageType() |
getDisplayName, getExpire, getExtension, getFileName, getMd5, getNosTokenSceneKey, getPath, getPathForSave, getSize, getThumbPath, getThumbPathForSave, getUri, getUrl, isForceUpload, setDisplayName, setExtension, setForceUpload, setMd5, setNosTokenSceneKey, setPath, setSize, setUri, setUrl, toJsonpublic VideoAttachment()
public VideoAttachment(java.lang.String attach)
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public long getDuration()
public void setDuration(long duration)
public java.lang.String getThumbUrl()
protected NimStorageType storageType()
storageType 在类中 FileAttachmentprotected void save(JSONObject json)
save 在类中 FileAttachmentprotected void load(JSONObject json)
load 在类中 FileAttachment