const url = URL.createObjectURL(b);
var x = document.createElement("AUDIO");
x.setAttribute("autoplay", "autoplay"); //tried to add this but no affect
x.play(); //does not start the play
The problem is that the autoplay attribute does not seem to have any affect when I add it. Adding x.play(); does not make it play. However if I add a button and put x.play(); in a function and call the function on an onclick event, then the button makes it play. It seems it needs to run the whole script and then load. I tried to put in a timer of 500ms that then runs the x.play(); but that does not work either.
When I press the button, mf is alerted and then plays. When the timer fires, mf is alerted and it does not play. I even mad a trigger function to fire the button onclick. The timer fired the trigger function, which fired the mf function displaying "mf" but still did not play. Pressing the button displayed "mf" and played. So frustrating. Maybe there is a hidden onfocus that causes the webviewer to enable the player somehow. Don't know.
Well almost was the solution. The version that I loaded was version 4. That worked but it did not allow me to remove the view so each time it increased the displayed page. Version 5,7,8 did not work for me at all. 5 would not even run the app. Version 7 and 8 gave i=me a consistant runtime error everytime I tried to create the viewer.