public class

VideoSharing

extends Object
java.lang.Object
   ↳ com.gsma.services.rcs.sharing.video.VideoSharing

Class Overview

Video sharing

Summary

Nested Classes
class VideoSharing.Encoding Video encoding  
enum VideoSharing.ReasonCode Reason code associated with the video share state. 
enum VideoSharing.State Video sharing state  
Public Methods
void abortSharing()
Aborts the sharing
void acceptInvitation(VideoPlayer player)
Accepts video sharing invitation
RcsService.Direction getDirection()
Returns the direction of the sharing
long getDuration()
Returns the duration of the video sharing
VideoSharing.ReasonCode getReasonCode()
Returns the reason code of the sharing
ContactId getRemoteContact()
Returns the remote contact identifier
String getSharingId()
Returns the sharing ID of the video sharing
VideoSharing.State getState()
Returns the state of the sharing
long getTimestamp()
Returns the local timestamp of when the video sharing was initiated for outgoing video sharing or the local timestamp of when the video sharing invitation was received for incoming video sharings.
VideoDescriptor getVideoDescriptor()
Returns the video descriptor
String getVideoEncoding()
Return the video encoding (eg.
void rejectInvitation()
Rejects video sharing invitation
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void abortSharing ()

Since: API Level 1.5

Aborts the sharing

public void acceptInvitation (VideoPlayer player)

Since: API Level 1.5

Accepts video sharing invitation

Parameters
player Video player

public RcsService.Direction getDirection ()

Since: API Level 1.5

Returns the direction of the sharing

Returns
  • Direction
Throws
RcsPersistentStorageException
RcsGenericException
RcsGenericException
RcsPersistentStorageException

public long getDuration ()

Since: API Level 1.5

Returns the duration of the video sharing

Returns
  • long Duration in milliseconds
Throws
RcsPersistentStorageException
RcsGenericException
RcsPersistentStorageException

public VideoSharing.ReasonCode getReasonCode ()

Since: API Level 1.5

Returns the reason code of the sharing

Returns
  • ReasonCode
Throws
RcsPersistentStorageException
RcsGenericException
RcsGenericException
RcsPersistentStorageException

public ContactId getRemoteContact ()

Since: API Level 1.5

Returns the remote contact identifier

Returns
  • ContactId
Throws
RcsPersistentStorageException
RcsGenericException
RcsPersistentStorageException

public String getSharingId ()

Since: API Level 1.5

Returns the sharing ID of the video sharing

Returns
  • String Sharing ID

public VideoSharing.State getState ()

Since: API Level 1.5

Returns the state of the sharing

Returns
  • State
Throws
RcsPersistentStorageException
RcsGenericException
RcsGenericException
RcsPersistentStorageException

public long getTimestamp ()

Since: API Level 1.5

Returns the local timestamp of when the video sharing was initiated for outgoing video sharing or the local timestamp of when the video sharing invitation was received for incoming video sharings.

Returns
  • long Timestamp in milliseconds
Throws
RcsPersistentStorageException
RcsGenericException
RcsPersistentStorageException

public VideoDescriptor getVideoDescriptor ()

Since: API Level 1.5

Returns the video descriptor

Returns
  • VideoDescriptor
Throws
RcsPersistentStorageException
RcsGenericException
RcsGenericException
RcsPersistentStorageException
See Also

public String getVideoEncoding ()

Since: API Level 1.5

Return the video encoding (eg. H.264)

Returns
  • String Encoding
Throws
RcsPersistentStorageException
RcsGenericException
RcsPersistentStorageException

public void rejectInvitation ()

Since: API Level 1.5

Rejects video sharing invitation