一段视频的播放句柄。
| 71 | |
| 72 | /// 一段视频的播放句柄。 |
| 73 | pub(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 | |
| 81 | impl VideoPlayer { |
| 82 | pub(crate) fn play(path: &str) -> Result<Self, MediaError> { |
nothing calls this directly
no outgoing calls
no test coverage detected