Make test hlssink directory a part of repo

This commit is contained in:
Sanchayan Maity 2024-04-12 17:27:26 +05:30
parent 6c294fa84d
commit 5806277012
3 changed files with 38 additions and 1 deletions

5
.gitignore vendored
View File

@ -1,4 +1,3 @@
hlssink/
target
*~
*.bk
@ -8,3 +7,7 @@ builddir
.meson-subproject-wrap-hash.txt
Cargo.lock
*.mkv
*.m3u8
*.ts
*.m4s
*.mp4

29
hlssink/index.html Normal file
View File

@ -0,0 +1,29 @@
<head>
<link href="https://vjs.zencdn.net/8.10.0/video-js.css" rel="stylesheet" />
<!-- If you'd like to support IE8 (for Video.js versions prior to v7) -->
<!-- <script src="https://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script> -->
</head>
<body>
<video
id="my-video"
class="video-js"
controls
preload="auto"
width="640"
height="480"
data-setup="{}"
>
<source src="http://localhost:8000/master.m3u8" type="application/x-mpegURL" />
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a
web browser that
<a href="https://videojs.com/html5-video-support/" target="_blank"
>supports HTML5 video</a
>
</p>
</video>
<script src="https://vjs.zencdn.net/8.10.0/video.min.js"></script>
</body>

5
hlssink/remove.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
find . -name "*.m3u8" -type f -delete
find . -name "*.ts" -type f -delete
find . -name "*.mp4" -type f -delete
find . -name "*.m4s" -type f -delete