seekable.php 322 B

1234567891011121314151617181920
  1. <?php
  2. if(!isset($_GET["s"])){
  3. http_response_code(404);
  4. header("X-Error: No SOUND(s) provided!");
  5. die();
  6. }
  7. include "../data/config.php";
  8. include "../lib/curlproxy.php";
  9. $proxy = new proxy();
  10. try{
  11. $proxy->stream_linear_audio($_GET["s"]);
  12. }catch(Exception $error){
  13. header("X-Error: " . $error->getMessage());
  14. }