# displayLocalVideo

fun displayLocalVideo(videoRenderer: SurfaceViewRenderer, aspect: RendererCommon.ScalingType, pip: Boolean)

Displays the local video in the specified videoRenderer if the user is sharing it. It should be called after receiving the event notifying that the local video has been added to the conference or when, once the video is being rendered, the videoRenderer needs to be changed. IMPORTANT: The videoRenderer used should be released (videoRenderer.release()) once the view is destroyed.

#### Parameters

videoRenderer

Surface included in the view layout where the video is to be displayed.

aspect

View aspect ratio.

pip

If true, enables picture-in-picture video effect.