I am new to Xojo Web. I am trying to get the following functions to work for playing back an mp3:
play
pause
get playback position
I am using the audio tag in a WebHTMLViewer as follows (I named the component splashaudio):
me.LoadPage("
That works fine.
Then, in a button Action I am trying to pause using this line:
ExecuteJavaScript(“Xojo.get(’”+splashaudio.ControlID+"’).pause();")
I don’t know how to refer to the splash id; nothing seems to work. I tried wading through the DOM and based on that I have tried a lot of different names but nothing works.
Also, I think I need event listeners. I read the tutorial “WebControlSDK.pdf” which helped but it isn’t specific enough to help out for this example.
Let me know if you need more detail.