Configuration

public struct Configuration

クライアントに関する設定です。

接続に関する設定

イベントハンドラ

パブリッシャーに関する設定

  • パブリッシャーのストリームの ID です。 通常、指定する必要はありません。

    Declaration

    Swift

    public var publisherStreamId: String
  • パブリッシャーの映像トラックの ID です。 通常、指定する必要はありません。

    Declaration

    Swift

    public var publisherVideoTrackId: String
  • パブリッシャーの音声トラックの ID です。 通常、指定する必要はありません。

    Declaration

    Swift

    public var publisherAudioTrackId: String
  • 初期化します。

    Declaration

    Swift

    public init(
      url: URL,
      channelId: String,
      role: Role,
      multistreamEnabled: Bool? = nil
    )

    Parameters

    url

    サーバーの URL

    channelId

    チャネル ID

    role

    ロール

    multistreamEnabled

    マルチストリームの可否(デフォルトは指定なし)

  • 初期化します。

    Declaration

    Swift

    public init(
      urlCandidates: [URL],
      channelId: String,
      role: Role,
      multistreamEnabled: Bool? = nil
    )

    Parameters

    urlCandidates

    シグナリングに利用する URL の候補

    channelId

    チャネル ID

    role

    ロール

    multistreamEnabled

    マルチストリームの可否(デフォルトは指定なし)