summaryrefslogtreecommitdiff
path: root/audio/seekable.php
diff options
context:
space:
mode:
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());
+}