hyphenate_SDK3.0  3.8.5
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)
 
 EMVideoMessageBody (Uri videoFilePath, Uri 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 ()
 
Uri getLocalThumbUri ()
 
void setLocalThumb (String localThumbPath)
 
void setLocalThumb (Uri 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 (Uri localPath)
 
 EMFileMessageBody (EMAFileMessageBody body)
 
String getFileName ()
 
void setFileName (String fileName)
 
String getLocalUrl ()
 
void setLocalUrl (String localUrl)
 
Uri getLocalUri ()
 
void setLocalUrl (Uri 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)
 

Static Public Attributes

static final Parcelable.Creator< EMVideoMessageBodyCREATOR
 

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
com.hyphenate.chat.EMVideoMessageBody.EMVideoMessageBody ( Uri  videoFilePath,
Uri  thumbPath,
int  duration,
long  filelength 
)

Create a video message body

Parameters
videoFilePathThe uri of the video
thumbPathThe uri of the video first frame
durationVideo duration, in seconds
filelengthThe length of the video file

Member Function Documentation

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

Get video duration, in seconds

Returns
Video duration, in seconds
String com.hyphenate.chat.EMVideoMessageBody.getLocalThumb ( )

Get local absolute path of thumbnail or the string from of Uri

Returns
Local path of thumbnail
Uri com.hyphenate.chat.EMVideoMessageBody.getLocalThumbUri ( )

Get local uri of thumbnail

Returns
Local uri of thumbnail
int com.hyphenate.chat.EMVideoMessageBody.getThumbnailHeight ( )

Get video thumbnail height

Returns
Height of video thumbnail
String com.hyphenate.chat.EMVideoMessageBody.getThumbnailSecret ( )

Get secret key of thumbnail Required to download a thumbnail

Returns
Secret key (token) of thumbnail
String com.hyphenate.chat.EMVideoMessageBody.getThumbnailUrl ( )

Get thumbnail's remote url

Returns
Thumbnail's remote url
int com.hyphenate.chat.EMVideoMessageBody.getThumbnailWidth ( )

Get video thumbnail width

Returns
Width of video thumbnail
long com.hyphenate.chat.EMVideoMessageBody.getVideoFileLength ( )

Get video file length, in bytes

Returns
Video file length
void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb ( String  localThumbPath)

Set path of video thumbnail

Parameters
localThumbPathPath of video thumbnail, which can be either the absolute path or the Uri of file
void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb ( Uri  localThumbPath)

Set path of video thumbnail

Parameters
localThumbPathUri of video thumbnail
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSecret ( String  secret)

Set the secret key (token) of thumbnail

Parameters
secretSecret key (token) of thumbnail
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSize ( int  width,
int  height 
)

Set video thumbnail's size

Parameters
widthThumbnail's width
heightThumbnail's height
void com.hyphenate.chat.EMVideoMessageBody.setThumbnailUrl ( String  thumbnailUrl)

Set server url path of thumbnail

Parameters
thumbnailUrlServer url path of thumbnail
void com.hyphenate.chat.EMVideoMessageBody.setVideoFileLength ( long  filelength)

Set video file length, in bytes Might need it during database migration

Parameters
filelengthVideo file length
EMDownloadStatus com.hyphenate.chat.EMVideoMessageBody.thumbnailDownloadStatus ( )

Get download status of thumbnail

Returns
Download status of thumbnail

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: