So this week i started learning MVC 4 in visual studio 2013 and so i just know the basic things at the moment. I want to try and add an audio player to the home page but i am not sure what is wrong. I can see the audio player but am unable to press the play button. Is there a specific place I need to place the audio file to or is it the code i used (where i have placed the code)? Here is the piece of code I put within the public ActionResult Index()
<audio controls> <source src="test.mp3" type="audio/mp3" /> </audio>
I got this code from looking around on the internet trying to find a way to place audio, so I am not sure if this is what is causing it. Please forgive me if this is an obvious question.
Aucun commentaire:
Enregistrer un commentaire