private CCTVServerInfo getPreferServer(string videoId) { CCTVServerInfo preferServer = _currentServer; CCTVDeviceInfo di = _clientHub.GetDeviceInfo(videoId); if (di != null && !string.IsNullOrWhiteSpace(di.PreferredServerId)) { CCTVServerInfo temp = _clientHub.GetServerInfo(di.PreferredServerId); if (temp != null && !string.IsNullOrWhiteSpace(temp.StreamServerIp)) { preferServer = temp; } } return(preferServer); }