Interface IRequestCallback


public interface IRequestCallback
WCS Websocket callbacks, sent from WCS server to the Android app
  • Method Details

    • ping

      void ping()
      WCS sends ping request and awaiting pong response
    • getUserData

      void getUserData(Connection connection)
      WCS sends connwction data
      Parameters:
      connection - connection object
    • getVersion

      void getVersion(String version)
      WCS sends number of server version
      Parameters:
      version -
    • registered

      void registered()
      SIP. WCS sends SIP registered notification if SIP registration was required.
    • setRemoteSDP

      void setRemoteSDP(String id, String sdp, Boolean isInitiator)
      Streaming and SIP. WCS sends SDP for a stream or call.
      Parameters:
      id - callId or streamId
      sdp - SDP of WCS server
      isInitiator - true if initiator of a call or stream is an Android app
    • notifyTryingResponse

      void notifyTryingResponse(CallObject callObject)
      SIP. WCS sends such notification if 100 TRYING received from SIP end.
      Parameters:
      callObject -
    • ring

      void ring(CallObject callObject)
      SIP. WCS sends such notification if 180 Ringing received from the SIP end.
      Parameters:
      callObject -
    • busy

      void busy(CallObject callObject)
      SIP. WCS sends such notification if BUSY HERE or BUSY EVERYWHERE received from SIP end.
      Parameters:
      callObject -
    • hold

      void hold(CallObject callObject)
      SIP. WCS sends such notification if the SIP call is holded.
      Parameters:
      callObject -
    • talk

      void talk(CallObject callObject)
      SIP. WCS sends such notification if the SIP call is established.
      Parameters:
      callObject -
    • finish

      void finish(CallObject callObject)
      SIP. WCS sends such notification if the SIP call is terminated.
      Parameters:
      callObject -
    • notifyIncomingCall

      void notifyIncomingCall(CallObject callObject)
      SIP. WCS sends such notification on a new incoming call caused by a new SIP INVITE incoming transaction.
      Parameters:
      callObject -
    • OnDataEvent

      void OnDataEvent(Data data)
      Websocket signaling. WCS sends such notification when somebody does sendData() for this Websocket-connected user
      Parameters:
      data -
    • DataStatusEvent

      void DataStatusEvent(Data data)
      Websocket signaling. WCS sends such notification when Android app did sendData() and awaiting the status of sending.
      Parameters:
      data -
    • notifyStreamStatusEvent

      void notifyStreamStatusEvent(StreamObject streamObject)
      Streaming. WCS sends such notification when status of playback or published stream is changed.
      Parameters:
      streamObject -
    • inboundVideoRate

      void inboundVideoRate(VideoRateStat videoRate)
      Streaming. WCS sends inbound video rate stat
      Parameters:
      videoRate -
    • outboundVideoRate

      void outboundVideoRate(VideoRateStat videoRate)
      Streaming. WCS sends inbound video rate stat
      Parameters:
      videoRate -
    • availableStream

      void availableStream(AvailableStreamObject available)
    • notifyStreamEvent

      void notifyStreamEvent(StreamEvent streamEvent)