MCPcopy Index your code
hub / github.com/RustOtomeLab/RustEng / execute_stop_video

Method execute_stop_video

src/executors/executor.rs:971–991  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

969 eprintln!("video auto-stop failed: {e}");
970 }
971 })
972 .expect("video timer: no slint event loop");
973 }
974 },
975 );
976 video_context.set_video_timer(timer);
977
978 Ok(())
979 }
980
981 pub(crate) async fn execute_stop_video(&self) -> Result<(), EngineError> {
982 {
983 let mut video_context = self.video_context.borrow_mut();
984
985 if let Some(player) = video_context.get_video_player() {
986 player.stop();
987 } else {
988 return Ok(());
989 }
990
991 video_context.get_video_timer();
992 }
993
994 if let Some(window) = self.weak.upgrade() {

Callers 2

start_videoMethod · 0.80
uiFunction · 0.80

Calls 4

get_video_playerMethod · 0.80
get_video_timerMethod · 0.80
execute_scriptMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected