Participant
Participant 클래스는 참여자의 상태 및 정보를 갖고 있으며, 카카오 i 커넥트 라이브 SDK의 주요 클래스 중 하나입니다. 카카오 커넥트 라이브에서 Participant는 나 자신을 의미하는 LocalPrticipant 객체와 상대방인 RemoteParticipant 객체로 구분됩니다. Participant 클래스는 Property와 Interface로 구성됩니다.
표Participant 클래스 전체 목록대분류 | 구분 | 항목 | 설명 |
---|---|---|---|
Participant | Property | id | 참여자의 아이디 |
audios: Map | 참여자가 송출하는 AudioContent의 맵(map) | ||
videos: Map | 참여자가 송출하는 VideoContent의 맵(map) | ||
hasAudio | 참여자의 오디오 송출 여부 | ||
hasVideo | 해당 참여자의 영상 송출 여부 | ||
Interface: LocalParticipant |
audios | Local Participant가 송출하는 LocalAudio의 맵(map) | |
videos | Local Participant가 송출하는 LocalVideo의 맵(map) | ||
Interface: RemoteParticipant |
audios | Local Participant가 송출하는 LocalVideo의 맵(map) | |
videos | Remote Participant가 송출하는 RemoteVideo의 맵(map) | ||
subscribedVideos | 리시버에 할당된 해당 참여자의 영상 | ||
unsubscribedVideos | 리시버에 할당되지 않은 해당 참여자의 영상 |
Property
Participant 클래스의 프로퍼티는 다음과 같습니다.
표Participant 프로퍼티 목록프로퍼티 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
id | String | 필수 |
참여자의 아이디 |
audios | Map<StreamId, VideoContent> | 필수 |
참여자가 송출하는 AudioContent의 맵(Map) |
videos | Map<StreamId, AudioContent> | 필수 |
참여자가 송출하는 VideoContent의 맵(Map) |
hasAudio | Boolean | 필수 |
참여자의 오디오 송출 여부 |
true (기본값): 오디오를 송출 |
|||
false : 오디오를 송출하지 않음 |
|||
hasVideo | Boolean | 필수 |
해당 참여자의 영상 송출 여부 |
true (기본값): 영상을 송출 |
|||
false : 영상을 송출하지 않음 |
Interface
Participant 클래스의 인터페이스는 다음과 같습니다.
LocalParticipant
LocalParticipant는 Room에 참여한 Local Participant(나 자신)를 의미하는 객체입니다.
표LocalParticipant Property프로퍼티 | 타입 | 설명 |
---|---|---|
audios | Map<Int LocalAudio> | Local Participant가 송출하는 LocalAudio의 맵(Map) - 자세한 정보는 LocalAudio 참고 |
videos | Map<Int LocalVideo> | Local Participant가 송출하는 LocalVideo의 맵(Map) - 자세한 정보는 LocalVideo 참고 |
RemoteParticipant
RemoteParticipant는 Room에 참여한 다른 참여자를 의미하는 객체입니다.
표RemoteParticipant Property프로퍼티 | 타입 | 설명 |
---|---|---|
audios | Map<Int RemoteAudio> | Remote Participant가 송출하는 RemoteAudio의 맵(Map) - 자세한 정보는 RemoteAudio 참고 |
videos | Map<Int RemoteVideo> | Remote Participant가 송출하는 RemoteVideo의 맵(Map) - 자세한 정보는 RemoteVideo 참고 |
subscribedVideos | Map<Int RemoteVideo> | 리시버에 할당된 해당 참여자의 영상 |
unsubscribedVideos | Map<Int RemoteVideo> | 리시버에 할당되지 않은 해당 참여자의 영상 |