Jump to content

Problem with <embed> in unigui app


mos

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...