Test

Test

  • NA
  • 58
  • 51.1k

Playing HTML5 audio files using keyboard shortcut keys

May 23 2016 3:25 AM
Can anyone please provide a solution for playing html5 audio controls through keyboard shortcut keys for playing,pausing,rewinding and stopping the audio files
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<audio src="http://www.html.am/resources/sample.mp3" controls>
<p>If your browser doesn't support the 'audio' element, it will display the content here between the opening and closing tags.</p>
</audio>
</div>
</form>
</body>
</html>
using this code i am able to play the audio file but what i need is the audio file should be playing,pausing,rewinding and stopping using keyboard short cut keys