summaryrefslogtreecommitdiff
path: root/audio.php
diff options
context:
space:
mode:
Diffstat (limited to 'audio.php')
-rw-r--r--audio.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/audio.php b/audio.php
new file mode 100644
index 0000000..bb018da
--- /dev/null
+++ b/audio.php
@@ -0,0 +1,19 @@
+<?php
+
+if(!isset($_GET["s"])){
+
+ http_response_code(404);
+ header("X-Error: No SOUND(s) provided!");
+ die();
+}
+
+include "lib/curlproxy.php";
+$proxy = new proxy();
+
+try{
+
+ $proxy->stream_linear_audio($_GET["s"]);
+}catch(Exception $error){
+
+ header("X-Error: " . $error->getMessage());
+}