I’m working on a SAFE App that makes use of AUDIO tags. It looks like the including an AUDIO tag causes the SAFE Browser to stop rendering tabs; the page with the AUDIO tag will render, then rendering stops. Previously rendered tabs stay rendered until refresh, new tabs and refreshes do not render. Window > Developer Tools > Reload Shell Window causes the whole window to go blank outside the menu (all tabs are lost). Closing and restarting the SAFE Browser fixes the problem in any case.
If the audio is set to autoplay and the html file with the AUDIO tag is reloaded, the audio will in fact play even with no tab rendered, indicating something is still happening under the hood.
I have seen this behavior opening a local .html file from disk as well as opening a safe:// URL that was uploaded using the web_hosting_manager into the mocknet. I’m using the 0.6.0 SAFE Browser.
Here is an example HTML file:
<!DOCTYPE html> <HTML LANG="en"> <HEAD> <META CHARSET="utf-8"/> <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0"> <TITLE>Music Player</TITLE> </HEAD> <BODY> <P><A HREF="index.html">Back to splash.</A></P> <AUDIO src="file.mp3" controls="true"></AUDIO> </BODY> </HTML>
Try it with any file.mp3 you have sitting around.