isWebRTC method
Implementation
bool isWebRTC() {
if (deviceModel == null) {
return true; // If deviceModel is null, assume it's WebRTC.
}
final streamProtocol = deviceModel?.streamProtocol;
if (streamProtocol == null) {
return true; // If streamProtocol is null, assume it's WebRTC.
}
final lowerCaseStreamProtocol = streamProtocol.toLowerCase();
return !lowerCaseStreamProtocol.contains("rtsp") && !lowerCaseStreamProtocol.contains("rtmp");
}