put video_handler thread & update android build

This commit is contained in:
csf
2022-09-15 16:09:07 +08:00
parent af656f9489
commit 1e9e00ec51
3 changed files with 3 additions and 5 deletions

View File

@@ -1415,11 +1415,9 @@ where
let latency_controller = LatencyController::new();
let latency_controller_cl = latency_controller.clone();
// Create video_handler out of the thread below to ensure that the handler exists before client start.
// It will take a few tenths of a second for the first time, and then tens of milliseconds.
let mut video_handler = VideoHandler::new(latency_controller);
std::thread::spawn(move || {
let mut video_handler = VideoHandler::new(latency_controller);
loop {
if let Ok(data) = video_receiver.recv() {
match data {