Hello,
I have a simple HMTL5 file that shows audio player and works properly:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Report</title>
</head>
<body>
<audio controls><source src="file:///C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\HTML5 Audio\files\tada.wav" type="audio/wav">Your browser does not support the audio element.</audio>
</body>
</html>
I failed to embed it into UniGui. As far as I understand I need to use UniHTMlFrame component.
1) When I place the code into it:
<audio controls><source src="file:///C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\HTML5 Audio\files\tada.wav" type="audio/wav">Your browser does not support the audio element.</audio>
I receive Java script error.
2) When I copy the tada.wav to "c:\" and change the code accordingly:
<audio controls><source src="file:///C:\tada.wav" type="audio/wav">Your browser does not support the audio element.</audio>
No error Java script is shown but instead of a player I see a white box.
3) When I use HTMLFrame demo and place there the same code:
<audio controls><source src="file:///C:\tada.wav" type="audio/wav">Your browser does not support the audio element.</audio>
Player appears normally but doesn't play the file