실시간 회의 관리

실행 및 로그인 후 실시간 공유 애플리케이션은 AddonClient.registerMeetingStatusListener()를 호출하여 진행 중인 회의가 있는지 수신 대기하는 것이 좋습니다.

MeetingStatusListener.onMeetingStatusChange()에 전달된 MeetingStatus 값은 실시간 공유에 참여하는 방법을 실시간 공유 앱에 알립니다.

다음 코드 샘플은 회의의 잠재적인 MeetingStatus를 보여줍니다.

Java

public abstract class MeetingStatus {
  …

  /**
   * Describes the status of the user in Meet.
   *
   * <p>Note: This status is only relevant to the Meet application and meetings. It doesn't mention anything about
   * whether the Live Sharing SDK is connected to the Meet app or is participating in a
   * live sharing session. Hence, it's possible for a status of {@code ADDON_SESSION} but the local
   * user isn't participating.
   */
  public enum Status {
    ADDON_SESSION,
    MEETING,
    NO_MEETING
  }

  …
}

이러한 각 사례는 별도로 처리해야 합니다.

  • ADDON_SESSION: 사용자가 실시간 공유 세션도 호스팅하는 회의에 참여하고 있습니다. 실시간 공유 세션에 즉시 연결해야 합니다. 자세한 내용은 Co-Watching API 사용 또는 Co-Doing API 사용을 참고하세요.
  • MEETING: 사용자가 회의에 참여하고 있지만 회의에서 실시간 공유 세션을 호스팅하고 있지 않습니다. 사용자가 실시간 공유를 시작할 가능성이 높으므로 실시간 공유 세션을 시작해야 합니다.
  • NO_MEETING: 사용자가 회의에 참여하고 있지 않으므로 사용자가 새 세션을 시작하겠다고 명시적으로 표시하기 전에는 실시간 공유 세션을 시작할 필요가 없습니다.