hyphenate_SDK4.0 4.8.0
hyphenate java IM SDK
Public Member Functions | 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 (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 getThumbnailSecret ()
 
void setThumbnailSecret (String secret)
 
EMDownloadStatus thumbnailDownloadStatus ()
 
void setThumbnailDownloadStatus (EMDownloadStatus status)
 
- Public Member Functions inherited from com.hyphenate.chat.EMFileMessageBody
 EMFileMessageBody (String localPath)
 
 EMFileMessageBody (Uri localPath)
 
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)
 
- Public Member Functions inherited from com.hyphenate.chat.EMMessageBody
long operationTime ()
 
String operatorId ()
 
int operationCount ()
 

Detailed Description

The video message body.

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

Constructor & Destructor Documentation

◆ EMVideoMessageBody() [1/2]

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

Creates a video message body.

Parameters
videoFilePathThe path of the video file.
thumbPathThe thumbnail URI.
durationThe video duration in seconds.
filelengthThe size of the video file.

◆ EMVideoMessageBody() [2/2]

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

Creates a video message body.

Parameters
videoFilePathThe URI of the video thumbnail.
thumbPathThe thumbnail URI.
durationThe video duration in seconds.
filelengthThe size of the video file.

Member Function Documentation

◆ getDuration()

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

Gets the video duration in seconds.

Returns
The video duration in seconds.

◆ getLocalThumb()

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

Gets the local absolute path of the video thumbnail or its URI in string format.

Returns
The local path of the video thumbnail.

◆ getLocalThumbUri()

Uri com.hyphenate.chat.EMVideoMessageBody.getLocalThumbUri ( )

Gets the local URI of the video thumbnail.

Returns
The local URI of the video thumbnail.

◆ getThumbnailHeight()

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

Gets the height of the video thumbnail.

Returns
The height of the video thumbnail.

◆ getThumbnailSecret()

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

Gets the secret key of the video thumbnail. The secret key is used for validation during download of the video thumbnail.

Returns
The secret key of the video thumbnail.

◆ getThumbnailUrl()

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

Gets the URL of the thumbnail on the server.

Returns
The URL of the thumbnail on the server.

◆ getThumbnailWidth()

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

Gets the width of the video thumbnail.

Returns
The width of video thumbnail.

◆ getVideoFileLength()

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

Gets the size of the video file in bytes.

Returns
The size of the video file.

◆ setLocalThumb() [1/2]

void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb ( String  localThumbPath)

Sets the path of the video thumbnail.

Parameters
localThumbPathThe path of the video thumbnail, which can be the absolute path or URI of the video thumbnail.

◆ setLocalThumb() [2/2]

void com.hyphenate.chat.EMVideoMessageBody.setLocalThumb ( Uri  localThumbPath)

Sets the path of the video thumbnail.

Parameters
localThumbPathThe URI of video thumbnail.

◆ setThumbnailDownloadStatus()

void com.hyphenate.chat.EMVideoMessageBody.setThumbnailDownloadStatus ( EMDownloadStatus  status)

Sets the download status of the video thumbnail.

Parameters
statusThe download status of the video thumbnail.

◆ setThumbnailSecret()

void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSecret ( String  secret)

Sets the secret key of the video thumbnail.

Parameters
secretThe secret key of the video thumbnail.

◆ setThumbnailSize()

void com.hyphenate.chat.EMVideoMessageBody.setThumbnailSize ( int  width,
int  height 
)

Sets the size of the video thumbnail.

Parameters
widthThe thumbnail's width.
heightThe thumbnail's height.

◆ setThumbnailUrl()

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

Sets the URL of the thumbnail on the server.

Parameters
thumbnailUrlThe URL of the thumbnail on the server.

◆ setVideoFileLength()

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

Sets the size of the video file in bytes. This method may be used during database migration.

Parameters
filelengthThe size of the video file.

◆ thumbnailDownloadStatus()

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

Gets the download status of the video thumbnail.

Returns
The download status of the video thumbnail.

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