java.lang.Object | ||
↳ | com.gsma.services.rcs.RcsService | |
↳ | com.gsma.services.rcs.sharing.video.VideoSharingService |
This class offers the main entry point to share live video during a CS call. Several applications may connect/disconnect to the API. The parameter contact in the API supports the following formats: MSISDN in national or international format, SIP address, SIP-URI or Tel-URI.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.gsma.services.rcs.RcsService
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
VideoSharingService(Context ctx, RcsServiceListener listener)
Constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addEventListener(VideoSharingListener listener)
Adds a listener on video sharing events
| ||||||||||
final void |
connect()
Connects to the API
| ||||||||||
void |
deleteVideoSharing(String sharingId)
Deletes a video sharing by its sharing ID from history and abort/reject any associated
ongoing session if such exists.
| ||||||||||
void |
deleteVideoSharings(ContactId contact)
Delete video sharing associated with a given contact from history and abort/reject any
associated ongoing session if such exists.
| ||||||||||
void |
deleteVideoSharings()
Deletes all video sharing from history and abort/reject any associated ongoing session if
such exists.
| ||||||||||
void |
disconnect()
Disconnects from the API
| ||||||||||
VideoSharingServiceConfiguration |
getConfiguration()
Returns the configuration of video sharing service
| ||||||||||
VideoSharing |
getVideoSharing(String sharingId)
Returns a current video sharing from its unique ID
| ||||||||||
void |
removeEventListener(VideoSharingListener listener)
Removes a listener on video sharing events
| ||||||||||
VideoSharing |
shareVideo(ContactId contact, VideoPlayer player)
Shares a live video with a contact.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.gsma.services.rcs.RcsService
| |||||||||||
From class
java.lang.Object
|
Constructor
ctx | Application context |
---|---|
listener | Service listener |
Adds a listener on video sharing events
listener | Listener |
---|
RcsServiceNotAvailableException | |
RcsGenericException | |
RcsServiceNotAvailableException |
Connects to the API
RcsPermissionDeniedException |
---|
Deletes a video sharing by its sharing ID from history and abort/reject any associated ongoing session if such exists.
sharingId | the sharing ID |
---|
RcsServiceNotAvailableException | |
RcsGenericException | |
RcsServiceNotAvailableException |
Delete video sharing associated with a given contact from history and abort/reject any associated ongoing session if such exists.
contact | the remote contact |
---|
RcsServiceNotAvailableException | |
RcsGenericException | |
RcsServiceNotAvailableException |
Deletes all video sharing from history and abort/reject any associated ongoing session if such exists.
RcsServiceNotAvailableException | |
RcsGenericException | |
RcsServiceNotAvailableException |
Returns the configuration of video sharing service
RcsServiceNotAvailableException | |
RcsGenericException | |
RcsServiceNotAvailableException |
Returns a current video sharing from its unique ID
sharingId | Sharing ID |
---|
RcsServiceNotAvailableException | |
RcsGenericException | |
RcsServiceNotAvailableException |
Removes a listener on video sharing events
listener | Listener |
---|
RcsServiceNotAvailableException | |
RcsGenericException | |
RcsServiceNotAvailableException |
Shares a live video with a contact. The parameter renderer contains the video player provided by the application. An exception if thrown if there is no ongoing CS call. The parameter contact supports the following formats: MSISDN in national or international format, SIP address, SIP-URI or Tel-URI. If the format of the contact is not supported an exception is thrown.
contact | Contact identifier |
---|---|
player | Video player |
RcsPersistentStorageException | |
RcsServiceNotRegisteredException | |
RcsServiceNotAvailableException | |
RcsGenericException | |
RcsPersistentStorageException | |
RcsServiceNotAvailableException | |
RcsServiceNotRegisteredException |