GetEventMessage function
Implementation
String GetEventMessage(ConnectionEvent event) {
switch (event) {
case ConnectionEvent.ApplicationStarted:
return "ApplicationStarted";
case ConnectionEvent.WebSocketConnecting:
return "WebSocketConnecting";
case ConnectionEvent.WebSocketConnected:
return "WebSocketConnected";
case ConnectionEvent.WebSocketDisconnected:
return "WebSocketDisconnected";
case ConnectionEvent.WaitingAvailableDevice:
return "WaitingAvailableDevice";
case ConnectionEvent.WaitingAvailableDeviceSelection:
return "WaitingAvailableDeviceSelection";
case ConnectionEvent.ExchangingSignalingMessage:
return "ExchangingSignalingMessage";
case ConnectionEvent.WebRTCConnectionChecking:
return "WebRTCConnectionChecking";
case ConnectionEvent.WebRTCConnectionDoneChecking:
return "WebRTCConnectionDoneChecking";
case ConnectionEvent.ReceivedVideoStream:
return "ReceivedVideoStream";
case ConnectionEvent.ReceivedAudioStream:
return "ReceivedAudioStream";
case ConnectionEvent.ReceivedDatachannel:
return "ReceivedDatachannel";
case ConnectionEvent.WebRTCConnectionClosed:
return "WebRTCConnectionClosed";
}
}