hello friends I have a problem I need to run an HTML5 audio in firefox my code is.

<audio id="audioGestion" preload="auto" controls="" controlsList="nodownload" src="reproduceaudio.php?idaudio=1"></audio>

and in the reproducedudio.php

  function get_content($URL){
              $ch = curl_init();
              curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
              curl_setopt($ch, CURLOPT_URL, $URL);
              $data = curl_exec($ch);
              $data = base64_encode ($data);
              return $data;
        echo get_content($fichero);

link to image

My problem is the final time of the audio in firefox does not give me the corresponding time as in chrome, this audio would last 57 seconds and it shows me 13 hours

0 Answers