Talk to us
Talk to us
menu

Upgrade Your Live Streaming for Diverse Scenarios with Scene-Specific Settings

Upgrade Your Live Streaming for Diverse Scenarios with Scene-Specific Settings

In the fast-paced world of digital content, live streaming has become a powerful tool for connecting with audiences in real-time. Whether it’s a live event, a gaming session, or a product demonstration, the quality of the stream can make or break the viewer’s experience. This is where scene-specific settings come into play, offering a tailored approach to optimize your live streaming for different scenarios. By adjusting settings such as resolution, frame rate, and bitrate to match the unique demands of each scene, you can ensure that your live stream is not only smooth and clear but also engaging and professional. Let’s dive into how scene-specific settings can transform your live streaming experience.

ZEGOCLOUD: Powering Scene-Specific Settings for Enhanced Live Streaming

The ZEGOCLOUD Express SDK offers a range of preset scenarios to streamline your integration process. By selecting a room scenario that aligns with your specific needs, the SDK automatically configures optimal audio and video codecs, parameters, network traffic control strategies, and other settings tailored to that scenario. This approach enables you to achieve optimal performance with minimal manual configuration. Currently, the SDK supports the following scenarios: live streaming, KTV, standard one-to-one voice and video calls, high-quality one-to-one voice and video calls, standard voice chatroom, and high-quality voice chatroom.

How to specify settings for different scenes?

When you use the createEngine method to initialize the ZEGOCLOUD Express engine, you can specify the scenario you want through the the scenario (ZegoScenario) field in profile (ZegoEngineProfile).

For users in the same room, we recommend using the same room scenario to achieve the best effect.

If your app has multiple audio and video service scenarios, for example, both one-to-one voice and video call scenario and live streaming scenario, and a user who has logged in to a room needs to switch the scenario, you do not need to call the destroyEngine method to destroy the engine. Instead, you can call setRoomScenario to switch the scenario after the user logs out of the room.

What kinds of scenarios are available?

The following table lists the room scenarios supported by the SDK:

Scenario
(available in 3.0.0 and later versions)
DescriptionKey configuration
BroadcastOne-to-many live streaming scenarios like games, e-commerce, and large classes. The SDK improve the sound and picture quality, the fluency, and the compatibility here.

Note: The SDK doesn’t differentiate user roles (e.g., host/participant) in live streaming. All users in the same room can publish/play streams.
Resolution: 540p
Frame rate: 24 fps
Audio/video codec compatibility: Server-side transcoding is necessary during web SDK communication.
StandardVideoCallStandard one-to-one voice and video call scenario.Resolution: 360p
Frame rate: 15 fps
Audio and video codec compatibility: Suitable for RTC stream publishing only. Server-side transcoding is necessary if streams need to be sent to the CDN.
HighQualityVideoCallHigh-quality voice and video call scenario. Similar to StandardVideoCall but with higher default video frame rate, bitrate, and resolution. Ideal when top-notch picture quality is a must.Resolution: 540p
Frame rate: 24 fps
Audio and video codec compatibility: Suitable only for RTC stream publishing. Server-side transcoding is necessary if streams need to be forwarded to the CDN.
StandardChatroomStandard voice chatroom scenario for multi-party calls, with traffic-saving features.
Note: ExpressVideo SDK disables the camera by default.
Audio and video codec compatibility: Suitable only for RTC stream publishing. Server-side transcoding is necessary if streams need to be forwarded to the CDN.
HighQualityChatroomHigh-quality voice chatroom scenario. Similar to StandardChatroom but with higher default audio bitrate. Ideal for multi-party calls needing top sound quality. Note: ExpressVideo SDK disables camera by default here.Audio and video codec compatibility: Suitable only for RTC stream publishing. Server-side transcoding is necessary if streams need to be forwarded to the CDN.
KaraokeKaraoke scenario for real-time chorus or online karaoke. Better latency, sound quality, headphone monitoring, and acoustic echo cancellation (AEC). Also ensures precise alignment and ultra-low latency in multi-party chorus.
Note: ExpressVideo SDK disables the camera by default.
Audio and video codec compatibility: Suitable only for RTC stream publishing. Server-side transcoding is necessary if streams need to be forwarded to the CDN.
DefaultDefault (general) scenario. Use this scenario if the preceding ones don’t meet your needs.Resolution: 360p
Frame rate: 15 fps
Audio and video codec compatibility: Server-side transcoding is necessary during communication with the web SDK.

The SDK also provides three scenarios of earlier versions that are available only for users who upgrade their Express SDK from a version earlier than v3.0.0.

What methods are suitable for configuration adjustments?

After specifying a scenario, you can call the following methods of the SDK to adjust audio and video service configurations. For details, see Common video configuration and Network traffic control.
Methods for configuration adjustment:

What Should You Know About Scenario Switchover?

Scenario switchover is allowed only after a user logs out of all rooms. Otherwise, calling setRoomScenario is invalid and onDebugError will be triggered to return error code 1000067.

After a user logs out of rooms, if you switch the scenario by calling setRoomScenario, all audio and video service configurations that are adjusted using the preceding methods will be reset to the default of the new scenario. Therefore, you are advised to configure a scenario before adjusting audio and video service configurations.

If you need to configure other room scenarios, contact ZEGOCLOUD technical support.

Conclusion

In the dynamic realm of digital content, where live streaming serves as a vital bridge between creators and audiences, the quality of the stream is paramount. ZEGOCLOUD’s Express SDK emerges as a game-changer, offering a suite of preset scenarios that cater to a variety of live streaming needs. By leveraging scene-specific settings, you can effortlessly optimize your streams for different scenarios, ensuring a seamless and engaging viewer experience. Whether you’re broadcasting a live event, hosting a KTV session, or conducting a one-to-one call, ZEGOCLOUD’s SDK provides the tools you need to achieve optimal performance with minimal manual configuration. With support for multiple scenarios and the flexibility to switch between them, ZEGOCLOUD empowers you to focus on your content while it handles the technical intricacies, making high-quality live streaming accessible to all. Sign up today and enjoy 10,000 minutes free of charge to make your live-streaming app exceptional and unlock endless possibilities for connection and engagement!

Let’s Build APP Together

Start building with real-time video, voice & chat SDK for apps today!

Talk to us

Take your apps to the next level with our voice, video and chat APIs

Free Trial
  • 10,000 minutes for free
  • 4,000+ corporate clients
  • 3 Billion daily call minutes

Stay updated with us by signing up for our newsletter!

Don't miss out on important news and updates from ZEGOCLOUD!

* You may unsubscribe at any time using the unsubscribe link in the digest email. See our privacy policy for more information.