Reduce latency when using an SDK

更新时间:
复制 MD 格式

Incorrect configurations or calls can increase latency when you use a Software Development Kit (SDK). This topic describes how to reduce this latency.

Configure automatic subscription and stream ingest

  • If your scenario requires streams to be ingested by default after a user joins a channel, use the automatic stream ingest pattern.

  • If your scenario requires users to subscribe to streams by default after they join a channel, use the automatic subscription pattern. This pattern saves time because it eliminates the need to manually subscribe to a stream after you receive a callback for a remote user.

By default, the Real-Time Communication (RTC) SDK automatically subscribes to streams but does not automatically ingest streams.