enableInstantMediaRendering
Enables audio and video frame instant rendering.
Future<void> enableInstantMediaRendering();
After successfully calling this method, the SDK enables the instant frame rendering mode, which can speed up the first frame rendering after the user joins the channel.
Applicable scenarios
Agora recommends that you enable this mode for the audience in a live streaming scenario.
Call timing
Agora recommends that you call this method before joining a channel.
Restrictions
Once the method is successfully called, you can only cancel instant rendering by calling release to destroy the RtcEngine object.
Exceptions
When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.