I am trying to use the 2nd method in https://wisej.com/docs/html/JavaScript.htm “Embedded resource” to add the playing of sound to to a test app.
function beep() {
var snd = new Audio(“….”);
snd.play();
}
The instructions say to change the js file (Test.js) to the build action of “Embedded Resource”. So I did that, but what is the equivalent of AssemblyInfo.cs? I don’t see this in my project.
Thanks,
Shawn
Try this 🙂
http://demo.wisej.com/smoothie
I added the Audio control and set it to “http://www.zedge.net/d2w/4/1331474/998028275/view/?mp3”.
If you make the Audio control not visible, add this.audio.CreateControl() when the page or window is loaded because Wisej doesn’t render controls that have not been made visible at least once (will add a an enhancement to always create the Audio control also when not visible).
Thank for the help.
I am trying to play a sound just once, it is an audible notification so to speak.
Dim x As New Wisej.Web.Audio
x.SourceURL = “/Tone.mp3”
x.Play()
I tried the above code but I don’t hear anything, so I am assuming I am doing something wrong.
Could you lead me in the right direction?
Thanks
It’s under “My Project” but VS hides for VB.NET projects. Select “My Project” then click “Show All Files” on the toolbar above the solution explorer.
The attribute “‘ <Assembly: WisejResources(ExcludeList: “”)>” is already there commented out.
Another way to add a js file, it to simply add it to Default.html. The difference is that when it’s embedded you don’t have to deploy the js file. When it’s linked in the html page you have to deploy it as you’d do with an asp app.
Please login first to submit.