hyphenate_SDK3.0  3.0.1
hyphenatejavaIMSDK
Public Member Functions | Static Public Attributes | List of all members
com.hyphenate.chat.EMVideoMessageBody Class Reference
Inheritance diagram for com.hyphenate.chat.EMVideoMessageBody:
com.hyphenate.chat.EMFileMessageBody com.hyphenate.chat.EMMessageBody

Public Member Functions

 EMVideoMessageBody (EMAVideoMessageBody body)
 
 EMVideoMessageBody (String videoFilePath, String thumbPath, int duration, long filelength)
 
String getThumbnailUrl ()
 
void setThumbnailUrl (String thumbnailUrl)
 
long getVideoFileLength ()
 
void setVideoFileLength (long filelength)
 
void setLocalThumb (String localThumbPath)
 
String getLocalThumb ()
 
int getDuration ()
 
String toString ()
 
int describeContents ()
 
void writeToParcel (Parcel dest, int flags)
 
void setThumbnailSecret (String secret)
 
String getThumbnailSecret ()
 
EMDownloadStatus thumbnailDownloadStatus ()
 
- Public Member Functions inherited from com.hyphenate.chat.EMFileMessageBody
 EMFileMessageBody (String localPath)
 
 EMFileMessageBody (EMAFileMessageBody body)
 
String getFileName ()
 
void setFileName (String fileName)
 
String getLocalUrl ()
 
void setLocalUrl (String localUrl)
 
String getRemoteUrl ()
 
void setRemoteUrl (String remoteUrl)
 
void setSecret (String secret)
 
String getSecret ()
 
String displayName ()
 
EMDownloadStatus downloadStatus ()
 

Static Public Attributes

static final Parcelable.Creator< EMVideoMessageBodyCREATOR
 

Additional Inherited Members

- Protected Attributes inherited from com.hyphenate.chat.EMMessageBody
EMAMessageBody emaObject
 

Detailed Description

the video message body class

EMVideoMessageBody body = new EMVideoMessageBody(videoFilePath,thumbPath, duration,filelength);

Constructor & Destructor Documentation

com.hyphenate.chat.EMVideoMessageBody.EMVideoMessageBody ( String  videoFilePath,
String  thumbPath,
int  duration,
long  filelength 
)

create a video message body

Parameters
videoFilePaththe path of the video file
thumbPaththe path of the video first frame
durationvideo duration,unit s
filelengththe length of the video file

Member Function Documentation

int com.hyphenate.chat.EMVideoMessageBody.getDuration ( )

get the video duration

Returns
String com.hyphenate.chat.EMVideoMessageBody.getLocalThumb ( )

get the local thumbnail

Returns
String com.hyphenate.chat.EMVideoMessageBody.getThumbnailUrl ( )

get the thumbnail url

Returns
long com.hyphenate.chat.EMVideoMessageBody.getVideoFileLength ( )

get the video file length

Returns
EMDownloadStatus com.hyphenate.chat.EMVideoMessageBody.thumbnailDownloadStatus ( )

get the download status of the thumbnail

Returns

Member Data Documentation

final Parcelable.Creator<EMVideoMessageBody> com.hyphenate.chat.EMVideoMessageBody.CREATOR
static
Initial value:
= new Creator<EMVideoMessageBody>() {
@Override
public EMVideoMessageBody[] newArray(int size) {
return new EMVideoMessageBody[size];
}
@Override
public EMVideoMessageBody createFromParcel(Parcel in) {
return new EMVideoMessageBody(in);
}
}

The documentation for this class was generated from the following file: