2021-08-24 17:40:10 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2022-02-11 20:12:44 +03:00
|
|
|
|
|
|
|
<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" />
|
|
|
|
<style>
|
|
|
|
video {
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<video id="video_source" controls="" autoplay="" name="media">
|
|
|
|
<source type="video/mp4" />
|
|
|
|
</video>
|
|
|
|
<script>
|
|
|
|
const { convertFileSrc } = window.__TAURI__.tauri
|
|
|
|
const video = document.getElementById('video_source')
|
|
|
|
const source = document.createElement('source')
|
|
|
|
source.type = 'video/mp4'
|
|
|
|
source.src = convertFileSrc('example/test_video.mp4', 'stream')
|
|
|
|
video.appendChild(source)
|
|
|
|
video.load()
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|