3 releases

0.1.2 Aug 12, 2024
0.1.1 Aug 12, 2024
0.1.0 Aug 12, 2024

#198 in Multimedia

Download history 324/week @ 2024-08-11 21/week @ 2024-08-18

345 downloads per month

MIT/Apache

7KB
146 lines

一个通过dlna投屏url到电视的api

api

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 获取设备名

}

Dependencies

~16–31MB
~434K SLoC