MCPcopy Create free account
hub / github.com/RustOtomeLab/RustEng / VideoPlayer

Class VideoPlayer

src/media/video_player.rs:73–79  ·  view source on GitHub ↗

一段视频的播放句柄。

Source from the content-addressed store, hash-verified

71
72/// 一段视频的播放句柄。
73pub(crate) struct VideoPlayer {
74 path: String,
75 cancel: Arc<AtomicBool>,
76 finished: Arc<AtomicBool>,
77 latest_frame: Arc<Mutex<Option<FrameBuffer>>>,
78 decode_thread: Option<thread::JoinHandle<()>>,
79}
80
81impl VideoPlayer {
82 pub(crate) fn play(path: &str) -> Result<Self, MediaError> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected