MCPcopy Create free account
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 }
970 }
971
972 Ok(())
973 }
974
975 fn start_video(&self, name: &str) -> Result<(), EngineError> {
976 let path = format!(
977 "{}{}.{}",
978 ENGINE_CONFIG.video_path(),
979 name,
980 ENGINE_CONFIG.video_extension()
981 );
982
983 self.media_player.borrow().stop_all();
984
985 let player = VideoPlayer::play(&path)?;
986 let mut video_context = self.video_context.borrow_mut();
987 video_context.set_video_player(player);
988
989 if let Some(window) = self.weak.upgrade() {
990 window.set_is_video(true);
991 }
992
993 let timer = slint::Timer::default();
994 let weak = self.weak.clone();

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