Spotlight a user

View as Markdown

Spotlighting a user calls attention to that user's video for everyone in the session, regardless of who is talking. Spotlight is typically used by a host to emphasize a speaker or presenter. The Video SDK for Android supports spotlighting multiple users at once.

Spotlight a user

To highlight a user's video for all participants, call spotLightVideo on the VideoHelper with that user.

val videoHelper = ZoomVideoSDK.getInstance().videoHelper
videoHelper.spotLightVideo(user)

Remove spotlight from a user

To drop a user from the spotlight, call unSpotLightVideo with that user.

ZoomVideoSDK.getInstance().videoHelper.unSpotLightVideo(user)

Remove spotlight from everyone

To clear the spotlight for every user at once, call unSpotlightAllVideos.

ZoomVideoSDK.getInstance().videoHelper.unSpotlightAllVideos()

Get the list of spotlighted users

Use getSpotlightedVideoUserList() to retrieve every user who is currently spotlighted. This is useful when you need to render a different layout for spotlighted users (for example, in a larger view) or to update the UI when a user joins mid-session.

val spotlighted = ZoomVideoSDK.getInstance().videoHelper.spotlightedVideoUserList
spotlighted.forEach { user ->
    // adjust your UI for each spotlighted user
}