commit
						0fa2bfd136
					
				| @ -18,6 +18,7 @@ use hbb_common::protobuf::Message as _; | |||||||
| use hbb_common::rendezvous_proto::ConnType; | use hbb_common::rendezvous_proto::ConnType; | ||||||
| #[cfg(not(any(target_os = "android", target_os = "ios")))] | #[cfg(not(any(target_os = "android", target_os = "ios")))] | ||||||
| use hbb_common::sleep; | use hbb_common::sleep; | ||||||
|  | #[cfg(not(target_os = "ios"))] | ||||||
| use hbb_common::tokio::sync::mpsc::error::TryRecvError; | use hbb_common::tokio::sync::mpsc::error::TryRecvError; | ||||||
| #[cfg(windows)] | #[cfg(windows)] | ||||||
| use hbb_common::tokio::sync::Mutex as TokioMutex; | use hbb_common::tokio::sync::Mutex as TokioMutex; | ||||||
|  | |||||||
| @ -881,6 +881,7 @@ pub fn main_handle_relay_id(id: String) -> String { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| pub fn main_get_current_display() -> SyncReturn<String> { | pub fn main_get_current_display() -> SyncReturn<String> { | ||||||
|  |     #[cfg(not(target_os = "ios"))] | ||||||
|     let display_info = match crate::video_service::get_current_display() { |     let display_info = match crate::video_service::get_current_display() { | ||||||
|         Ok((_, _, display)) => serde_json::to_string(&HashMap::from([ |         Ok((_, _, display)) => serde_json::to_string(&HashMap::from([ | ||||||
|             ("w", display.width()), |             ("w", display.width()), | ||||||
| @ -889,6 +890,8 @@ pub fn main_get_current_display() -> SyncReturn<String> { | |||||||
|         .unwrap_or_default(), |         .unwrap_or_default(), | ||||||
|         Err(..) => "".to_string(), |         Err(..) => "".to_string(), | ||||||
|     }; |     }; | ||||||
|  |     #[cfg(target_os = "ios")] | ||||||
|  |     let display_info = "".to_owned(); | ||||||
|     SyncReturn(display_info) |     SyncReturn(display_info) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user