Fix video size + fix link in how-to

This commit is contained in:
Ivan Bushchik 2023-06-18 15:25:20 +03:00
parent 14e1dfed76
commit bf0ba1485f
No known key found for this signature in database
GPG key ID: 9F6DDABE11A2674D
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
<h2>How to play?</h2>
<ul>
<li>If you're using Safari-based browsers (on iOS, iPadOS or macOS) <a href=\"https://caniuse.com/http-live-streaming\">(browser support)</a> you can just click "Play"</li>
<li>If you're using Safari-based browsers (on iOS, iPadOS or macOS) <a href="https://caniuse.com/http-live-streaming">(browser support)</a> you can just click "Play"</li>
<li>Also you can play this streams using VLCs "Open URL" and pasting link to .m3u8 file</li>
</ul>

View file

@ -43,7 +43,7 @@ struct Args {
#[get("/play/<page..>")]
fn play(page: PathBuf) -> RawHtml<String> {
RawHtml(format!(
"<video controls>
"<video controls width=\"100%\">
<source src=\"/{}\" type=\"application/x-mpegURL\">
</video>",
page.to_str().unwrap()