Platform
Android
Platform details
No response
Product
Video Calling
Product details
No response
Business Case
The code example for displaying a local video track has a minor mistake, which makes it harder to create an initial working code.
Subject Matter Expert
No response
Documentation Link
https://docs.agora.io/en/video-calling/get-started/get-started-sdk?platform=android#display-the-local-video
Scope
No response
Acceptance Criteria
There should be a new before VideoCanvas(...).
Here's how it looks like now:
mRtcEngine?.setupLocalVideo(VideoCanvas(surfaceView, VideoCanvas.RENDER_MODE_FIT, 0))
How it should be instead:
mRtcEngine?.setupLocalVideo(new VideoCanvas(surfaceView, VideoCanvas.RENDER_MODE_FIT, 0))
Additional Information
No response