summaryrefslogtreecommitdiff
path: root/audio/seekable.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2024-02-17 23:22:19 -0500
committerlolcat <will@lolcat.ca>2024-02-17 23:22:19 -0500
commitaddc5a14a93547f630f23e5b6a79cffa2e37d71a (patch)
treea9163ba3a2e24c3c493cdde95e506c0e7e8a772d /audio/seekable.php
parentedc917f5ee984160a0eef436dabd51696d675964 (diff)
boobs
Diffstat (limited to 'audio/seekable.php')
-rw-r--r--audio/seekable.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/seekable.php b/audio/seekable.php
new file mode 100644
index 0000000..b6a848f
--- /dev/null
+++ b/audio/seekable.php
@@ -0,0 +1,20 @@
+<?php
+
+if(!isset($_GET["s"])){
+
+ http_response_code(404);
+ header("X-Error: No SOUND(s) provided!");
+ die();
+}
+
+include "../data/config.php";
+include "../lib/curlproxy.php";
+$proxy = new proxy();
+
+try{
+
+ $proxy->stream_linear_audio($_GET["s"]);
+}catch(Exception $error){
+
+ header("X-Error: " . $error->getMessage());
+}