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 TypeMethodDescriptionvoid
availableStream
(AvailableStreamObject available) void
busy
(CallObject callObject) SIP.void
DataStatusEvent
(Data data) Websocket signaling.void
finish
(CallObject callObject) SIP.void
getUserData
(Connection connection) WCS sends connwction datavoid
getVersion
(String version) WCS sends number of server versionvoid
hold
(CallObject callObject) SIP.void
inboundVideoRate
(VideoRateStat videoRate) Streaming.void
notifyIncomingCall
(CallObject callObject) SIP.void
notifyStreamEvent
(StreamEvent streamEvent) void
notifyStreamStatusEvent
(StreamObject streamObject) Streaming.void
notifyTryingResponse
(CallObject callObject) SIP.void
OnDataEvent
(Data data) Websocket signaling.void
outboundVideoRate
(VideoRateStat videoRate) Streaming.void
ping()
WCS sends ping request and awaiting pong responsevoid
SIP.void
ring
(CallObject callObject) SIP.void
setRemoteSDP
(String id, String sdp, Boolean isInitiator) Streaming and SIP.void
talk
(CallObject callObject) SIP.
-
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
-