-
-
Save zontan/43e9f59ab684acaf64bfdd4d30cfcbd0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func startPreview() { | |
previewView.backgroundColor = UIColor.orange | |
let videoCanvas = AgoraRtcVideoCanvas() | |
videoCanvas.uid = 0 | |
videoCanvas.view = previewView | |
videoCanvas.renderMode = .hidden | |
agoraKit.setupLocalVideo(videoCanvas) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment