Skip to content

Instantly share code, notes, and snippets.

@skydoves
Last active February 23, 2023 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skydoves/3a5f770f18a5983782b785305c99fe5d to your computer and use it in GitHub Desktop.
Save skydoves/3a5f770f18a5983782b785305c99fe5d to your computer and use it in GitHub Desktop.
remote_video_track
// Copyright 2023 Stream.IO, Inc. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
val remoteVideoTrackState by sessionManager.remoteVideoSinkFlow.collectAsState(null)
val remoteVideoTrack = remoteVideoTrackState
if (remoteVideoTrack != null) {
VideoRenderer(
videoTrack = remoteVideoTrack,
modifier = Modifier.fillMaxSize()
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment