Adding links to recordings

This should add a link to all the recordings, so you can copy and share with a friend, or save somewhere.

There's better ways some of this can be done, but it works for now.

(please test this! not sure if I copied all the right files to git)
This commit is contained in:
ehpersonal38
2022-04-17 14:41:58 -04:00
parent 817d001f3e
commit b2c80f0db7
6 changed files with 78 additions and 20 deletions
+8
View File
@@ -54,6 +54,14 @@ if(isset($_GET['stream'])){
<h1><a href=\"\">BirdNET-Pi</a><img src=\"images/version.svg\"></h1>
</div>";
}
if(isset($_GET['filename'])) {
$filename = $_GET['filename'];
echo "
<iframe src=\"/views.php?view=Recordings&filename=$filename\"></iframe>
</div>";
} else {
echo "
<iframe src=\"/views.php\"></iframe>
</div>";
}