Skip to content

Commit 8ecf3f8

Browse files
committed
progress
1 parent dc87795 commit 8ecf3f8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src-tauri/src/restream.rs

+16
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,19 @@ pub async fn watch_self() -> Result<()> {
144144
};
145145
mpv::play(channel, false).await
146146
}
147+
148+
fn share_restream(ip: String, channel: Channel) -> Result<()> {
149+
crate::share::share_custom_channel(Channel {
150+
id: Some(-1),
151+
name: format!("RST | {}", channel.name).to_string(),
152+
url: Some(format!("http://{ip}/stream.m3u8").to_string()),
153+
group: None,
154+
image: channel.image,
155+
media_type: crate::media_type::LIVESTREAM,
156+
source_id: None,
157+
series_id: None,
158+
group_id: None,
159+
favorite: false,
160+
stream_id: None,
161+
})
162+
}

0 commit comments

Comments
 (0)