Skip to content

Instantly share code, notes, and snippets.

@cardoso
Created May 25, 2020 23:21
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 cardoso/1f41cd17e28aed6c5e009fe1a954a3fb to your computer and use it in GitHub Desktop.
Save cardoso/1f41cd17e28aed6c5e009fe1a954a3fb to your computer and use it in GitHub Desktop.
import VoxeetSDK
extension WatchViewController: VTConferenceDelegate {
func streamAdded(participant: VTParticipant, stream: MediaStream) {
switch stream.type {
case .ScreenShare:
videoView.alpha = 1
videoView.attach(participant: participant, stream: stream)
default:
break
}
}
func streamUpdated(participant: VTParticipant, stream: MediaStream) {
}
func streamRemoved(participant: VTParticipant, stream: MediaStream) {
switch stream.type {
case .ScreenShare:
videoView.alpha = 0
default:
break
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment