INNER CODE UNIT · TypeScript

DataStreamConfig

AgoraIO-Extensions/react-native-agora · src/AgoraBase.ts:1555

export class DataStreamConfig {
  /**
   * Whether to synchronize with the locally sent audio stream. true : Synchronize the data stream with the audio stream. This setting is suitable for special scenarios such as lyrics synchronization. false : Do not synchronize the data stream with the audio stream. This setting is suitable for scenarios where data packets need to reach the receiver immediately. When synchronized with the audio stream, if the data packet delay is within the audio delay range, the SDK triggers the onStreamMessage callback synchronized with the audio packet during playback.
   */
  syncWithAudio?: boolean;
  /**
   * Whether to ensure the received data is in the same order as sent. true : Ensures the SDK outputs data packets in the order sent by the sender. false : Does not ensure the SDK outputs data packets in the order sent by the sender. If data packets need to reach the receiver immediately, do not set this parameter to true.
   */
  ordered?: boolean;
}

/**
 * Mode for sending video streams.
 */
export enum SimulcastStreamMode {
  /**
   * -1: By default, the low-quality stream is not sent until a subscription request for the low-quality stream is received from the receiver, at which point the low-quality stream is sent automatically.
   */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…