TRTCAppScene enum

Use cases

TRTC features targeted optimizations for common audio/video application scenarios to meet the differentiated requirements in various verticals. The main scenarios can be divided into the following two categories:

  • Live streaming scenario (LIVE):

    • Includes LIVE (audio + video) and VoiceChatRoom (pure audio).

    In the live streaming scenario, users are divided into two roles: "anchor" and "audience". A single room can sustain up to 100,000 concurrent online users. This is suitable for live streaming to a large audience.

  • Real-Time scenario (RTC):

    • Includes VideoCall (audio + video) and AudioCall (pure audio).

    In the real-time scenario, there is no role difference between users, but a single room can sustain only up to 300 concurrent online users. This is suitable for small-scale real-time communication.

Inheritance
Available extensions
Annotations
  • @JsonEnum(alwaysCreate: true)

Values

videoCall → const TRTCAppScene
  • In the video call scenario, 720p and 1080p HD image quality is supported. A single room can sustain up to 300 concurrent online users, and up to 50 of them can speak simultaneously.
  • Use cases: [one-to-one video call], [video conferencing with up to 300 participants], [online medical diagnosis], [video chat], [video interview], etc.
live → const TRTCAppScene
  • In the interactive video live streaming scenario, mic can be turned on/off smoothly without waiting for switchover, and the anchor latency is as low as less than 300 ms. Live streaming to hundreds of thousands of concurrent audience users is supported with the playback latency down to 1,000 ms.
  • Use cases: [low-latency video live streaming], [interactive classroom for up to 100,000 participants], [live video competition], [video dating room], [remote training], [large-scale conferencing], etc.
  • Note: in this scenario, you must use the role field in TRTCParams to specify the role of the current user.
audioCall → const TRTCAppScene
  • In the audio call scenario, 48 kHz dual-channel audio call is supported. A single room can sustain up to 300 concurrent online users, and up to 50 of them can speak simultaneously.
  • Use cases: [one-to-one audio call], [audio conferencing with up to 300 participants], [voice chat], [online Werewolf], etc.
voiceChatRoom → const TRTCAppScene
  • In the interactive audio live streaming scenario, mic can be turned on/off smoothly without waiting for switchover, and the anchor latency is as low as less than 300 ms. Live streaming to hundreds of thousands of concurrent audience users is supported with the playback latency down to 1,000 ms.
  • Use cases: [low-latency audio live streaming], [live audio co-anchoring], [voice chat room], [karaoke room], [FM radio], etc.
  • Note: in this scenario, you must use the role field in TRTCParams to specify the role of the current user.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<TRTCAppScene>
A constant List of the values in this enum, in order of their declaration.