Crates.io | cast_url |
lib.rs | cast_url |
version | 0.1.2 |
source | src |
created_at | 2024-08-12 04:14:37.737793 |
updated_at | 2024-08-12 12:32:13.94341 |
description | 一个封装好的自用库 |
homepage | |
repository | |
max_upload_size | |
id | 1333874 |
size | 6,976 |
pub fn discover()->Result<Vec
pub struct RenderPlay{
render: Render,
name: String,
}
impl RenderPlay{
pub fn new(render: Render)->Self
pub fn play(&mut self, url: &str)->Result<()> 播放视频
pub fn is_stopped(&self)->bool 检测状态,如果失败会无限重试
pub fn name(&self)->String 获取设备名
}