ReadonlykindAlways 'ChatModeDowngraded'. Branch on it to tell this failure from the other SDK errors.
Optional ReadonlyoriginalThe error or value that caused this one, when the SDK was wrapping something else.
For a NetworkError this is the browser's own fetch rejection. It is not
serialized as-is: toJson() takes only an Error cause's
message.
Serializes the error into the JSON-safe ErrorJson payload for logging or reporting.
The payload always carries kind and the message. The cause's message
is added only when originalError is an Error and says
something the message does not, truncated to 256 characters; any other cause is dropped.
Subclasses extend the payload with the fields listed on their own pages.
The error as plain, JSON-serializable data.
The server created the chat in a mode that cannot stream video.
Raised while connect() runs on a Talks (V2) or Clips (V3) agent, when the chat the server created is in a mode other than the session's (
Functionalby default) and that mode is not Functional: TextOnly or Maintenance, for instance. The SDK disconnects the stream it had just opened andconnect()resolves anyway, so no video will play and onSrcObjectReady will not fire again: the session continues as a text chat.It is delivered to onError and never thrown, so
connect()does not reject on it. onModeChange fires with the new mode just after it. Treat it as a signal to switch the interface to text, not as a connection failure. kind is'ChatModeDowngraded'.