File size: 830 Bytes
2d8be8f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body {
margin: unset;
overflow: hidden;
}
video {
width: 100vw;
height: 100vh;
}
</style>
</head>
<body>
<video id="video_source" controls="" autoplay="" name="media">
<source type="video/mp4" />
</video>
<script>
const { invoke, convertFileSrc } = window.__TAURI__.core
const video = document.getElementById('video_source')
const source = document.createElement('source')
source.type = 'video/mp4'
source.src = convertFileSrc('streaming_example_test_video.mp4', 'stream')
video.appendChild(source)
video.load()
</script>
</body>
</html>
|