cast_url

Crates.iocast_url
lib.rscast_url
version0.1.2
sourcesrc
created_at2024-08-12 04:14:37.737793
updated_at2024-08-12 12:32:13.94341
description一个封装好的自用库
homepage
repository
max_upload_size
id1333874
size6,976
(vintcessun)

documentation

README

一个通过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 获取设备名

}

Commit count: 0

cargo fmt