getHMSRoomUpdateFromName static method
Implementation
static HMSRoomUpdate getHMSRoomUpdateFromName(String name) {
switch (name) {
case 'room_muted':
return HMSRoomUpdate.roomMuted;
case 'room_unmuted':
return HMSRoomUpdate.roomUnmuted;
case 'server_recording_state_updated':
return HMSRoomUpdate.serverRecordingStateUpdated;
case 'browser_recording_state_updated':
return HMSRoomUpdate.browserRecordingStateUpdated;
case 'rtmp_streaming_state_updated':
return HMSRoomUpdate.rtmpStreamingStateUpdated;
case 'hls_streaming_state_updated':
return HMSRoomUpdate.hlsStreamingStateUpdated;
case 'hls_recording_state_updated':
return HMSRoomUpdate.hlsRecordingStateUpdated;
case 'room_peer_count_updated':
return HMSRoomUpdate.roomPeerCountUpdated;
default:
return HMSRoomUpdate.defaultUpdate;
}
}