mos Posted November 16, 2017 Share Posted November 16, 2017 The following code when run under IIS displays a little audio player in the web browser window <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Example of Inserting Audio Using embed Element</title> </head> <body> <embed src="/files/testfile1.mp3" width="200px" height="50px"> </body> </html> the same page when accessed via a unigui app does not show the audio player but the file is downloaded by the web browser. In the case of Google Chrome the file downloaded will then likely be played in an external player. Also note that I tried just using code <embed src="/files/testfile1.mp3" width="200px" height="50px"> in a html frame but the result was the same. Actually, I tried above first before testing in a separate web page by itself to see if the problem was in my code. In using the html code at the top of this email, I access the unigui version with http://127.0.0.1:8077/files/chrome-test.html and the IIS as http://127.0.0.1/files/chrome-test.html I am unsure of the problem but there would appear to be a delivery issue of an audio file from a unigui app. The reason why we are looking at "embed"ding code is to get over issues in Chrome browser and try to stay away from flash components. If anyone has idea on how to embed the player as shown here https://www.tutorialrepublic.com/codelab.php?topic=html5&file=insert-audio-using-embed-element can you please tell me what I am doing wrong? Thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 16, 2017 Share Posted November 16, 2017 Hi, Can you use the audio element of HTML5 ?! For example: <audio src="files/wind.mp3" controls="controls"> Sorry, Your browser does not support the audio element. </audio> Best regards, Quote Link to comment Share on other sites More sharing options...
mos Posted November 16, 2017 Author Share Posted November 16, 2017 Yes, but in Chrome you cannot seek within an audio file. Some customers don't like the idea of using flash (.swf) players and so attempting to embed a player with the above code which can seek in Chrome browser. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 16, 2017 Share Posted November 16, 2017 Hmm, it seems also works in Chrome, have you checked ?! Quote Link to comment Share on other sites More sharing options...
mos Posted November 16, 2017 Author Share Posted November 16, 2017 What seem to work? If you have a large audio file and downloading/playing over the Internet, seeking does not work. All it does is go back to beginning and starts over. So, for Chrome we switched to a flash control. (And got complaints from customer(s) that use Google Chrome. Now... for Chrome trying the <embed> option, but that does not seem to work as expected. And that led to the initial post above. Quote Link to comment Share on other sites More sharing options...
mos Posted November 16, 2017 Author Share Posted November 16, 2017 Do I have to send a demo program? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 16, 2017 Share Posted November 16, 2017 Ok, I will check this behavior for a large audio file Quote Link to comment Share on other sites More sharing options...
mos Posted November 26, 2017 Author Share Posted November 26, 2017 Any progress on this? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.