통화 앱 예제
Web
Simple Call (웹)
단순한 영상통화
전체 코드 보기 : https://github.com/RemoteMonster/web-sdk/blob/master/examples/full/simpleCall.html
Voice Call (웹)
단순한 음성통화
https://github.com/RemoteMonster/web-sdk/blob/master/examples/full/voiceCall.html
Call List (웹)
활성 통화채널 목록 조회
https://github.com/RemoteMonster/web-sdk/blob/master/examples/full/castList.html
Video Config (웹)
비디오 설정
https://github.com/RemoteMonster/web-sdk/blob/master/examples/full/videoConfig.html
Screen Share (데스크탑 웹)
화면 공유
https://github.com/RemoteMonster/web-sdk/blob/master/examples/full/screenShare.html
Camera Switch (웹)
카메라가 여러개 있을 경우 카메라 선택
https://github.com/RemoteMonster/web-sdk/blob/master/examples/full/cameraSwitch.html
Send message (웹)
https://github.com/RemoteMonster/web-sdk/blob/master/examples/full/sendMessage.html
VolumeBar (웹)
볼륨 표시
https://github.com/RemoteMonster/web-sdk/blob/master/examples/full/voiceCallWithVolumeBar.html
Android
SimpleCall (Android)
Full (Android)
iOS
SimpleCall (iOS)
주요 코드
class SimpleCallViewController: UIViewController {
// 생략
// 1:1 통화를 위한 채널에 접속합니다.
@IBAction func connectChannel(_ sender: Any) {
self.view.endEditing(true)
// 입력된 채널명(채널ID)
let channelID = self.chField.text
if channelID != nil && channelID!.count > 0 {
// config는 별도 설정한 뒤에 전달해도 되며, nil 인 경우 remonCall 내부 프로퍼티 값을 사용하게 됩니다.
// 내부 프로퍼티는 IB에서 설정할 수 있습니다.
remonCall.connect(channelID!, customConfig)
self.chLabel.text = channelID
} else {
// 랜덤번호를 채널명으로 사용하는 예
let randChannelID:String! = String(arc4random_uniform(9999))
remonCall.connect(randChannelID, customConfig)
self.chLabel.text = randChannelID
}
}
// 생략
}
전체 코드
Last updated
Was this helpful?