Listener
SoraMediaChannel からコールバックイベントを受けるリスナー
Functions
Link copied to clipboard
open fun onAddLocalStream(mediaChannel: SoraMediaChannel, ms: MediaStream)
Content copied to clipboard
ローカルストリームが追加されたときに呼び出されるコールバック.
Link copied to clipboard
open fun onAddRemoteStream(mediaChannel: SoraMediaChannel, ms: MediaStream)
Content copied to clipboard
リモートストリームが追加されたときに呼び出されるコールバック.
Link copied to clipboard
open fun onAttendeesCountUpdated(mediaChannel: SoraMediaChannel, attendees: ChannelAttendeesCount)
Content copied to clipboard
接続しているチャネルの参加者が増減したときに呼び出されるコールバック.
Link copied to clipboard
Sora との接続が切断されたときに呼び出されるコールバック.
Link copied to clipboard
Sora との接続が確立されたときに呼び出されるコールバック.
Link copied to clipboard
open fun onDataChannel(mediaChannel: SoraMediaChannel, dataChannels: List<Map<String, Any>>?)
Content copied to clipboard
データチャネルが利用可能になったときに呼び出されるコールバック
Link copied to clipboard
open fun onDataChannelMessage( mediaChannel: SoraMediaChannel, label: String, data: ByteBuffer)
Content copied to clipboard
メッセージング機能のメッセージを受信したときに呼び出されるコールバック ラベルが # から始まるメッセージのみが通知されます
Link copied to clipboard
open fun onError(mediaChannel: SoraMediaChannel, reason: SoraErrorReason)
Content copied to clipboard
open fun onError( mediaChannel: SoraMediaChannel, reason: SoraErrorReason, message: String)
Content copied to clipboard
Sora との通信やメディアでエラーが発生したときに呼び出されるコールバック.
Link copied to clipboard
open fun onNotificationMessage(mediaChannel: SoraMediaChannel, notification: NotificationMessage)
Content copied to clipboard
Sora のシグナリング通知機能の通知を受信したときに呼び出されるコールバック.
Link copied to clipboard
open fun onOfferMessage(mediaChannel: SoraMediaChannel, offer: OfferMessage)
Content copied to clipboard
Sora から type: offer メッセージを受信した際に呼び出されるコールバック.
Link copied to clipboard
open fun onPeerConnectionStatsReady(mediaChannel: SoraMediaChannel, statsReport: RTCStatsReport)
Content copied to clipboard
PeerConnection の getStats() 統計情報を取得したときに呼び出されるコールバック.
Link copied to clipboard
open fun onPushMessage(mediaChannel: SoraMediaChannel, push: PushMessage)
Content copied to clipboard
Sora のプッシュ API によりメッセージを受信したときに呼び出されるコールバック.
Link copied to clipboard
open fun onRemoveRemoteStream(mediaChannel: SoraMediaChannel, label: String)
Content copied to clipboard
リモートストリームが削除されたときに呼び出されるコールバック.
Link copied to clipboard
open fun onSenderEncodings(mediaChannel: SoraMediaChannel, encodings: List<RtpParameters.Encoding>)
Content copied to clipboard
サイマルキャスト配信のエンコーダ設定を変更するためのコールバック.
Link copied to clipboard
open fun onWarning(mediaChannel: SoraMediaChannel, reason: SoraErrorReason)
Content copied to clipboard
open fun onWarning( mediaChannel: SoraMediaChannel, reason: SoraErrorReason, message: String)
Content copied to clipboard
Sora との通信やメディアで警告が発生したときに呼び出されるコールバック.