Sceenic - WatchTogether
  • Watch Together and Synchronization SDKs
  • Watch together SDK
    • Watch Together SDK overview
    • Authentication overview
    • Tutorials
      • Android
        • Android - Java/Kotlin
      • iOS
        • iOS Swift/Objective-c adapter
      • Web
        • Authentication
        • Create a New Project
        • Adding WT SDK library to the project
        • Installing the NPM package
        • Sample application
          • The conference skeleton
          • Connecting to a Session
          • How to turn on and off video and audio
          • How to change video quality
          • Errors handling
          • Leave the call
        • Support
    • API references
      • Android reference
        • Session
        • SessionListener
        • SessionReconnectListener
        • SessionConnectionListener
        • Participant
          • ParticipantType
        • SessionError
      • iOS Swift reference
        • Session
        • SessionDelegate
        • Participant
        • ParticipantActiveSpeakerDelegate
        • ParticipantDelegate
        • LocalParticipant
        • WTError
        • DataTypes
      • iOS Objective-c adapter reference
        • SessionAdapter
        • SessionAdapterDelegate
        • ParticipantAdapter
        • LocalParticipantAdapter
        • ParticipantAdpaterDelegate
        • ParticipantAdapterActiveSpeakerDelegate
        • NSError
        • DataTypes
      • Web reference
        • WT Session
          • WTSession.connect(sToken, pName, uC, m)
          • WTSession.connectAsAViewer(sToken, pName)
          • WTSession.connectWithSharingScreen(sToken, pName)
          • WTSession.disconnect()
          • WTSession.enableStats()
          • WTSession.sendMessage(msg)
          • WTSession.sendPlayerData(time)
          • async WTSession.getSessionState()
        • SessionListeners
          • WTSessionListeners.onConnected(fn)
          • WTSessionListeners.onDisconnected(fn)
          • WTSessionListeners.onStreamCreated(fn)
          • WTSessionListeners.onLocalStreamCreated(fn)
          • WTSessionListeners.onMosReport(fn)
          • WTSessionListeners.offMosReport(fn)
          • WTSessionListeners.onMessageReceived(fn)
          • WTSessionListeners.onSyncData(fn)
          • WTSessionListeners.onIceDisconnected(fn)
        • Participant
          • setMediaQuality
        • ParticipantListeners
        • ErrorsListeners
        • ReconnectListeners
        • MediaDevices
      • Cluster authentication service reference (CAS)
  • Synchronization SDK
    • Synchronization SDK overview
    • Tutorials
      • Android
        • Android - Java/Kotlin
      • iOS
        • iOS - Swift/Objective-c
      • Web
        • Installing the NPM package
        • Web - TypeScript/React
        • v2.0 Migration Guide
    • API references
      • Android reference
        • SynchSDK
        • SynchListener
      • iOS reference
        • SynchSDK
        • SynchListener
      • Web reference
  • Celebrity SDK
    • Celebrity SDK overview
    • Tutorials
      • Web
        • Installing the NPM package
        • Web - TypeScript/React
    • API References
      • Web reference
  • Chat SDK
    • Chat SDK overview
    • Tutorials
      • Web
        • Installing the NPM package
        • Web - TypeScript/React
    • API Refences
      • Web reference
  • Public Chat SDK
    • Public Chat SDK overview
    • Tutorials
      • Web
        • Installing the NPM package
        • Web - TypeScript/React
    • API Refences
      • Web reference
  • Celebrity Watch Party
    • Web application
    • Android
    • iOS
    • Celebrity View & Fan View
Powered by GitBook
On this page
  • Field Summary
  • Public Constructor Summary
  • Error codes
  • Media Error codes
  • Session Error codes
  • User Error codes

Was this helpful?

  1. Watch together SDK
  2. API references
  3. Android reference

SessionError

This class represents the errors available for the WatchTogether session.

Field Summary

Type

Field

Int

code - Error code

String

name - Error name

String

message - Error message

Public Constructor Summary

Type

Methods

Parameters

void

SessionError(final int code, final String name, final String message)

  • code - Error number code

  • name - Error name

  • message - Error message

Error codes

Code

Error

Description

-1

UNKNOWN_ERROR

Internal server error

999

GENERIC_ERROR_CODE

The request is not supported

901

GENERIC_CONNECTION_ERROR

The client closed the connection in the middle of the process of joining the room

801

TRANSPORT_REQUEST_ERROR_CODE

Failed to make a request to the media node

802

TRANSPORT_RESPONSE_ERROR_CODE

Invalid response from media node

803

TRANSPORT_ERROR_CODE

  • The request method is not supported

  • Invalid or missing request field

Media Error codes

Code

Error

Description

303

MEDIA_ENDPOINT_ERROR_CODE

  • Already subscribed to media stream from target client

  • SDP exchange for this media stream is already in progress

  • Timeout during SDP exchange

308

MEDIA_AUDIO_PERMISSION_ERROR_CODE

  • Microphone permission is not granted

309

MEDIA_VIDEO_PERMISSION_ERROR_CODE

  • Camera permission is not granted

Session Error codes

Code

Error

Description

206

SESSION_IS_FULL_ERROR_CODE

Exceeded limit of streaming participants in the room

203

SESSION_CLOSED_ERROR_CODE

201

SESSION_GENERIC_ERROR_CODE

  • Unable to handle the request as the Session is locked

  • Active requests counter underflow (Internal server logic)

  • The Session is already locked

User Error codes

Code

Error

Description

106

USER_NOT_AUTHORIZED_ERROR_CODE

  • Attempting to send synchronization data while not having a synchronizer role

  • Invalid oldParticipantSecret during reconnection

105

USER_NOT_STREAMING_ERROR_CODE

  • Attempting to start a stream with no video and audio

  • Attempting to send SDP response when there was no offer

  • Attempting to subscribe to a client that did not publish anything yet

104

EXISTING_USER_IN_SESSION_ERROR_CODE

A Participant tries to join a Session with a name that already exists

103

USER_CLOSED_ERROR_CODE

  • Source or target user has left the Session during the media subscription process

  • Target user has left the Session during SDP exchange

102

USER_NOT_FOUND_ERROR_CODE

  • Attempting to execute request before joining the Session

  • Addressing client that is not in the Session

101

USER_GENERIC_ERROR_CODE

  • Invalid participant type

  • Target client is not is not available while in the process of media (un)subscription

  • ICE candidates queue overflow

PreviousParticipantTypeNextiOS Swift reference

Last updated 3 years ago

Was this helpful?