Skip to content

[Bug]: Code example for displaying local video missing a "new" #1653

@Float07

Description

@Float07

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions