mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-01 11:13:40 +03:00
1f98853573
Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: chip <chip@chip.sh>
32 lines
919 B
HTML
32 lines
919 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
</head>
|
|
<body>
|
|
<video
|
|
id="video_source"
|
|
style="width: 100vw; height: 100vh"
|
|
controls=""
|
|
autoplay=""
|
|
name="media"
|
|
>
|
|
<source src="stream://example/test_video.mp4" type="video/mp4" />
|
|
</video>
|
|
<script>
|
|
(function () {
|
|
if (navigator.userAgent.includes("Windows")) {
|
|
const video = document.getElementById("video_source");
|
|
const sources = video.getElementsByTagName("source");
|
|
// on windows the custom protocl should be the host
|
|
// followed by the complete path
|
|
sources[0].src = "https://stream.example/test_video.mp4";
|
|
video.load();
|
|
}
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|