enableInstantMediaRendering abstract method

Future<void> enableInstantMediaRendering()

Enables accelerated rendering of audio and video frames.

After successfully calling this method, the SDK enables accelerated rendering mode for both video and audio, which speeds up the time to first frame and first sound after joining a channel. Both the host and audience need to call this method to enable accelerated rendering of audio and video frames to experience this feature. Once this method is successfully called, you can only disable accelerated rendering by calling the release method to destroy the RtcEngine object.

Returns 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. See Error Codes for details and resolution suggestions.

Implementation

Future<void> enableInstantMediaRendering();