hyphenate_SDK3.0  3.6.2
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 com.hyphenate.chat.EMBase< EMAMessageBody >

Public Member Functions

 EMVideoMessageBody (EMAVideoMessageBody body)
 
 EMVideoMessageBody (String videoFilePath, String 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 ()
 
void setLocalThumb (String localThumbPath)
 
int getDuration ()
 
String toString ()
 
int describeContents ()
 
void writeToParcel (Parcel dest, int flags)
 
String getThumbnailSecret ()
 
void setThumbnailSecret (String secret)
 
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 ()
 
void setFileLength (long length)
 
EMDownloadStatus downloadStatus ()
 
void setDownloadStatus (EMDownloadStatus status)
 
- Public Member Functions inherited from com.hyphenate.chat.EMBase< EMAMessageBody >
boolean equals (Object o)
 
int hashCode ()
 

Static Public Attributes

static final Parcelable.Creator< EMVideoMessageBodyCREATOR
 

Additional Inherited Members

- Protected Attributes inherited from com.hyphenate.chat.EMBase< EMAMessageBody >
emaObject
 

Detailed Description

Video message body

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, in seconds
filelengththe length of the video file

Member Function Documentation

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

Video duration, in seconds

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

Local path of thumbnail

UIImage *image = [UIImage imageWithContentsOfFile:thumbnailLocalPath];

Returns
int com.hyphenate.chat.EMVideoMessageBody.getThumbnailHeight ( )

get video thumbnail height

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

Secret key of thumbnail, required to download a thumbnail

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

Local path of thumbnail

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

get video thumbnail width

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

File length of a thumbnail, in bytes

Returns
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailUrl ( String  thumbnailUrl)

Server url path of thumbnail

void com.hyphenate.chat.EMVideoMessageBody.setVideoFileLength ( long  filelength)

set file length of a thumbnail, in bytes. Might need it during database migration

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

Download status of 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: