Package com.flashphoner.fpwcsapi.ws
Interface IRequestCallback
public interface IRequestCallback
WCS Websocket callbacks, sent from WCS server to the Android app
-
Method Summary
Modifier and TypeMethodDescriptionvoidavailableStream(AvailableStreamObject available) voidbusy(CallObject callObject) SIP.voidDataStatusEvent(Data data) Websocket signaling.voidfinish(CallObject callObject) SIP.voidgetUserData(Connection connection) WCS sends connwction datavoidgetVersion(String version) WCS sends number of server versionvoidhold(CallObject callObject) SIP.voidinboundVideoRate(VideoRateStat videoRate) Streaming.voidnotifyIncomingCall(CallObject callObject) SIP.voidnotifyStreamEvent(StreamEvent streamEvent) voidnotifyStreamStatusEvent(StreamObject streamObject) Streaming.voidnotifyTryingResponse(CallObject callObject) SIP.voidOnDataEvent(Data data) Websocket signaling.voidoutboundVideoRate(VideoRateStat videoRate) Streaming.voidping()WCS sends ping request and awaiting pong responsevoidSIP.voidring(CallObject callObject) SIP.voidsetRemoteSDP(String id, String sdp, Boolean isInitiator) Streaming and SIP.voidtalk(CallObject callObject) SIP.voidwebRTCMetricsDescriptionUpdate(WebRTCMetricsDescriptionUpdate webRTCMetricsDescriptionUpdate)
-
Method Details
-
ping
void ping()WCS sends ping request and awaiting pong response -
getUserData
WCS sends connwction data- Parameters:
connection- connection object
-
getVersion
WCS sends number of server version- Parameters:
version-
-
registered
void registered()SIP. WCS sends SIP registered notification if SIP registration was required. -
setRemoteSDP
Streaming and SIP. WCS sends SDP for a stream or call.- Parameters:
id- callId or streamIdsdp- SDP of WCS serverisInitiator- true if initiator of a call or stream is an Android app
-
notifyTryingResponse
SIP. WCS sends such notification if 100 TRYING received from SIP end.- Parameters:
callObject-
-
ring
SIP. WCS sends such notification if 180 Ringing received from the SIP end.- Parameters:
callObject-
-
busy
SIP. WCS sends such notification if BUSY HERE or BUSY EVERYWHERE received from SIP end.- Parameters:
callObject-
-
hold
SIP. WCS sends such notification if the SIP call is holded.- Parameters:
callObject-
-
talk
SIP. WCS sends such notification if the SIP call is established.- Parameters:
callObject-
-
finish
SIP. WCS sends such notification if the SIP call is terminated.- Parameters:
callObject-
-
notifyIncomingCall
SIP. WCS sends such notification on a new incoming call caused by a new SIP INVITE incoming transaction.- Parameters:
callObject-
-
OnDataEvent
Websocket signaling. WCS sends such notification when somebody does sendData() for this Websocket-connected user- Parameters:
data-
-
DataStatusEvent
Websocket signaling. WCS sends such notification when Android app did sendData() and awaiting the status of sending.- Parameters:
data-
-
notifyStreamStatusEvent
Streaming. WCS sends such notification when status of playback or published stream is changed.- Parameters:
streamObject-
-
inboundVideoRate
Streaming. WCS sends inbound video rate stat- Parameters:
videoRate-
-
outboundVideoRate
Streaming. WCS sends inbound video rate stat- Parameters:
videoRate-
-
availableStream
-
notifyStreamEvent
-
webRTCMetricsDescriptionUpdate
-