userMessage property
String
get
userMessage
A sentence suitable for an alert shown to the person joining.
Implementation
String get userMessage {
if (phase == MediaSocketConnectPhase.rejected) {
switch (reason) {
case 'invalid-credentials':
return 'The room did not accept these credentials. Check the room ID and your access, or rejoin the room.';
case 'meeting-minutes-unavailable':
return 'This room cannot start because its account has no meeting minutes left. Contact the room host.';
case 'invalid-request':
return 'The connection request was incomplete or invalid. Check the room details and try again.';
case 'api-check-failed':
return 'The media server could not verify this room right now. Please try again shortly.';
default:
return 'The media server closed the connection before the room was ready. Please try again.';
}
}
if (online == false) {
return 'You appear to be offline. Check your internet connection and try again.';
}
if (phase == MediaSocketConnectPhase.beforeOpen) {
return 'Could not reach the media server. Check your network or firewall and try again.';
}
if (phase == MediaSocketConnectPhase.timeout) {
return 'Connecting to the media server timed out. Please try again.';
}
return 'The media server closed the connection before the room was ready. Please try again.';
}