public class VideoAttachment extends FileAttachment
displayName, extension, forceUpload, md5, nosTokenSceneKey, path, size, url| Constructor and Description |
|---|
VideoAttachment() |
VideoAttachment(java.lang.String attach) |
| Modifier and Type | Method and Description |
|---|---|
long |
getDuration()
Get the duration of a video file
|
int |
getHeight()
Get the video height
|
java.lang.String |
getThumbUrl()
Get the thumbnail URL
|
int |
getWidth()
Get the video width
|
protected void |
load(JSONObject json) |
protected void |
save(JSONObject json) |
void |
setDuration(long duration)
Set the playback duration for a video file
|
void |
setHeight(int height)
Set the video height
|
void |
setWidth(int width)
Set the video width
|
protected NimStorageType |
storageType() |
getDisplayName, getExpire, getExtension, getFileName, getMd5, getNosTokenSceneKey, getPath, getPathForSave, getSize, getThumbPath, getThumbPathForSave, getUrl, isForceUpload, setDisplayName, setExtension, setForceUpload, setMd5, setNosTokenSceneKey, setPath, setSize, 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 in class FileAttachmentprotected void save(JSONObject json)
save in class FileAttachmentprotected void load(JSONObject json)
load in class FileAttachment