title: php streaming wav in firefox vs chrome
body: <p>I have a hidden audio element in a page, and i'm setting the source dynamically. im setting it as a php page with a GET request that finds the file based on the GET parameter.</p>
  
  <p>However, the audio element is taking the wav file just fine in Chrome but not in firefox. Here is the query and html</p>
  
  <pre><code>    &lt;html&gt;
  &lt;audio id = "play_wav" controls&gt;
  &lt;span id = "set_source"&gt;set source&lt;/span&gt;
  
  &lt;script&gt;
  $('#set_source').on('click', function(){
      $('#play_wav').attr('src', 'get_wav.php?fname=playme.wav');
      document.getElementById('play_wav').play();
  });
  
  &lt;/script&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>and here's get_wav.php</p>
  
  <pre><code>if(isset($_GET['fname])){
      $fname = $_GET['fname'];
      readfile($fname);
  }
  </code></pre>
  
  <p>So this is working to play streaming audio in chrome but not in firefox. The source is still being set it's just not loading. Any suggestions?</p>