title: Hide stream url in HTML5 audio tag
body: <p>I use this code below to hide stream url of songs for my wordpress site … this mean instead of: example.com/audio.mp3 url is example.com/streem.php?id=53502</p>
  
  <p>I have tested it with default HTML 5 player and it works on chrome and IE, but this is not working with this player: <a href="http://goo.gl/HziDr" rel="nofollow">http://goo.gl/HziDr</a></p>
  
  <p>Can anybody tell me is my code ok?</p>
  
  <p>Code of streem.php is:</p>
  
  <pre><code>&lt;?php
  require('./wp-config.php');  
  $wp-&gt;init();  
  $wp-&gt;parse_request();  
  $wp-&gt;query_posts();  
  $wp-&gt;register_globals(); 
  $attachmentID = $_GET['id'];
  $attachment = get_attached_file( $attachmentID , false );
  header("Content-Transfer-Encoding: binary"); 
  header('Content-Length: '. (string)filesize($attachment)); // provide file size
  header('Content-type: audio/mpeg');
  header('Cache-Control: no-cache');
  readfile($attachment);
  exit;
  ?&gt;
  </code></pre>