enableInstantMediaRendering
Enables audio and video frame instant rendering.
abstract enableInstantMediaRendering(): number;
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 IRtcEngine object.
Returns
- 0: Success.
- < 0: Failure.
- -7: The method is called before IRtcEngine is initialized.