samedi 20 décembre 2014

zend framework 2 html5 audio tag not working

I made everything i could to make a simple html5 audio tag work on my zend framework 2 aplication but with no success at all. The audio player shows and suddenly dissapears. This is what i have in my "layout.phtml" file:


mysite



<div id="left">
<div class="Status">Status</div>
<div id="Genero">Genero</div>
</div>


<div class="right">
<div class="Menu">Titulo</div>
<div class="Contenido"> <?php echo $this->content; ?>

<audio controls>
<source src="void.mp3" type="audio/mpeg" />

Your browser does not support the <code>audio</code> tag.
</audio>

</div>
<div class="Reproductor"> reproductor



</div>


I copied the EXACT SAME code on a plain html file, and loaded it using chrome and firefox with no ZF2, and it worked fine.


I also tried to put the audio tag inside the index template, so it renders inside the layout via the content variable but the result was the same


void.mp3 is placed in the exact same folder as layout.phtml (i moved it there to avoid what i thought was a routing problem)


Aucun commentaire:

Enregistrer un commentaire