How Can I Play Midi And/or Audio Files?
Mar 24, 2006
How can I play midi and/or audio files using JavaScript?
I'm hoping there are some calls/APIs I can use that I am unaware of. My
JavaScript book from O'Reilly seems rather lacking in this area.
I'm looking for something like:
playMidiNote(pitch, duration);
playSoundFile(soundFileURL);
View 20 Replies
ADVERTISEMENT
Jul 22, 2011
To javascript and have succeeded in getting this code:
Code:
To play a constant loop of audio on my site that autoplays (which i know, typically people hate... but, i'm doing it anyways on this site).
How to add one button in my html body that is CSS style-able that will both pause and then when clicked again resume playing the audio?
View 1 Replies
View Related
May 20, 2009
Is there a cross-browser jQuery plug-in that can preload several different mp3 audio files and provide play / stop methods?
View 2 Replies
View Related
May 3, 2011
I'm using VS2008Pro with Master pages. On a child page, I have a modalPopupExtender that calls a panel with an embedded Google video. Everything works great - the popup appears with the video,background greyed.But, when I close the panel,the audio keeps playing in IE 7 & 8. Netscape is fine.I went and tried what Google recommended, but it still continues.
'//In child page header
<script src="../swfObject/swfobject.js" type="text/javascript"></script>
<script type="text/javascript"> [code].....
View 1 Replies
View Related
Jul 27, 2011
I've got this JavaScript code that I'm using to play audio on my site made specifically for iPhones, iPods, and whatnot. However, my only problem is, that I can only pick one audio file to play from, no matter what. Can someone tell me what I'm doing wrong? I really need this specific code cause it allows me to play audio without going into the Media Player on the iPhone and iPod.
Here's what I have in the head section:
And the body:
And now to actually play the audio:
I can play audio fine, but I'm only limited to one audio file per page. Is there anyway around this??
View 2 Replies
View Related
Nov 13, 2011
I basically want this timer to count down from 6min 10sec and at certain times (i.e. every minute that it counts down) play an audio file.I got the timer working fine, but getting it to play the audio files (wav files) at specific times is not working...this is the javascript for the timer which works
code:
var sec = 10; // set the seconds
var min = 06; // set the minutes[code].....
View 1 Replies
View Related
Jun 10, 2010
I want to use HTML5's audio coding similar to the one below:
In order to play sound files depending on the input. What I'm working on is a text-to-speech webapplication.
What I'd need to happen is for there to be an input and then allow the user to type anything into the input, so if they type in:
Hello, how are you doing?
Javascript or PHP will recognize each character and translate it into an audio sequence.
In example:
It'd detect the "H" in hello and play sound file "H.ogg"
It'd then detect the "E" in hello and play sound file "E.ogg"
View 3 Replies
View Related
Apr 13, 2010
My computer seems to have problems with its javascript when opening new windows from certain sites that are either audio or video files. I simply have not got a clue where to begin.
View 3 Replies
View Related
Feb 9, 2011
I need to allow user to download mp3 files when they click on the link rather than streaming the audio in the browser. Need to use only Javascript to download the file.
View 1 Replies
View Related
Mar 28, 2011
What I need to do is load wav files into an array and simply have these play from the array onto a page when it loads. I have an image slide show and I want to have a sound effect play over it and then when the image changes another wav will play but first just want to have say 5 wav files play in order from the array.
I have the following
<script language="javascript" type="text/javascript">
var aySound = new Array();
aySound[0] = "1.wav";
aySound[1] = "2.wav";
View 3 Replies
View Related
Aug 8, 2011
I am trying to learn JavaScript, I am creating a test page like a Learning page for children, where a child selects "Apple" and then selects repeat 3 times or times etc and the it plays what ever the user selected that many times, the user can even select "Apple", "Ant", "America" and select repeat any number of times (say 2 times each) and the media player will play like this "Apple", "Apple", "Ant", "Ant", "America", "America". Now I downloaded all these from different sites in mp3 format. How can I make the program to do what I want to do as said above, simple code. for i IN (all selected)
repeate (times user selected);
end loop;
View 1 Replies
View Related
Aug 30, 2010
[URL]jMediaelement could not play these MOVs.
View 1 Replies
View Related
Mar 15, 2007
i want to know how i can use two radio buttons to turn on/off a midi file on my webpage, so that if the midi is running and i choose the off radio button then the midi is switched off instantly without any loading.
View 1 Replies
View Related
Dec 11, 2011
I am using the youtube chromeless player and embeding videos with loadVideoById() method problem is that videos with an id that contains an underscore or dash dont play although they play in the normal player. I also tried replacing with a hex value in querystring i.e (%5f) but that did not work I also tried loadVideoByUrl() method with several urls but still they don't load. here is my code
function switchToPlayer(ytid){
var params = { allowScriptAccess: "always"};
var atts = { id: ytid,onmouseover: "this.playVideo()",onmouseout: "this.pauseVideo()"};
swfobject.embedSWF("http://www.youtube.com/apiplayer?border=0&enablejsapi=1&playerapiid="+ytid, 'cell'+ytid, "150", "120", "8", "scripts/expressInstall.swf",null,params,atts);
}
[Code]....
View 4 Replies
View Related
Aug 16, 2010
I have designed a mail service in java.In my compose page,i want to attach some excel files of text files and to send it.After sending i want to store it my database.Then how can i download or open that file after opening that recipient mail inbox.
View 1 Replies
View Related
Oct 2, 2010
I have the following JavaScript (see below). The script requests an XML file from the server and displays it on the page.The script works fine when the requested XML file is stored on the same server as the script.The problem is when I try requesting an XML file from an external server such as the National Weather Service. I get an error. If I take the XML file from the National Weather Service and save it to my server it works. Why can't I use my script to request XML files stored on external servers?
Javascript Code
Code:
window.onload = initAll;
var xhr = false;
function initAll() {
document.getElementById("makeTextRequest").onclick = getNewFile;
[code]....
View 6 Replies
View Related
Aug 27, 2010
In my quest to implement ajax for the first time i've hit a brick wall. i've been searching for hours for a solution but with no success. Here is the problem.
[Code]...
why is it not working? my PHP code is outputting the contents of the xml document.
View 1 Replies
View Related
Sep 5, 2008
I want to write a javascript to list of all files in a folder including files in the subfolders. This is for the scorm purpose to list all the files. some examples are listing files but not listing the files inside the subdirectories. I want the file's full path like C:Documentsjavascriptwilson.js like this.
View 5 Replies
View Related
Jan 15, 2010
I have four folders and each folder has one images, let say ( images-one.jpg, images-two.jpg, images-three.jpg, images-four.jpg). now,in index.php page there are four buttons, each buttons for each images. if i clicked button numer two for images-two.jpg, and then it will show that images name from that folder in index.php page. and then if i reload same index.php page or refreshed same page, i want to show SAME images that I clicked before which is images-two.jpg. how can i write that code to show images from four files, each files are in each folder.
View 1 Replies
View Related
Aug 20, 2007
PROBLEM 1:
I spent a lot of time finding code that would play an audio (.wav) file on a
mouseover cue that would work in Internet Explorer 6 and FireFox without any
user prompt to allow active-x scripts to be run etc, but unfortunately the
code does not work in Internet Explorer 7. Can you suggest an alternative?
PROBLEM 2:
When using a image switching code to swap an image to a .gif anim that plays
just once (created using Ulead Gif Animator 5), Internet Explorer 6 and
FireFox begin the animation cycle only when the image has been switched.
Unfortunately, Internet Explorer 7 seems to play the animation as soon as it
has been loaded so when it’s switched you only see the last frame. Can you
suggest an alternative? Code:
View 4 Replies
View Related
Oct 25, 2011
I am using the Google audio player on a website and the html is:
[Code]...
and write a click function but it doesn't work. How can I do this?
View 6 Replies
View Related
May 12, 2010
I have a webpage with a Flash audio player in it. I then implemented Facebox a JQuery lightbox. To stop the Flash movie showing through the Facebox I have added a show/hide javascript which does the job in Firefox and Safari but in IE the audio still plays when I hide the div. what I could add to my 'hidediv' function that will stop sound of Flash movie once div is hidden when in IE![URL]
View 3 Replies
View Related
Feb 24, 2011
I'm trying to stop the audio in a hidden div from playing once a user clicks on the next video clip. i know this is a known bug in IE but i can't figure out how to fix this (as i am a total noob). can someone tell me how i can do this? And yes, my client refuses to use firefox and only IE
Here is my current code.
View 1 Replies
View Related
Mar 19, 2007
I wanna play streaming audio (an asx.file) trough javascript. I allready found a tutorial on the net. Till so far it works (I can push play, pause and stop), but I want to change the volume to. An example: Code:
Do you know where the problem is? One thing that I must say is that the tutorial (where I took it from) worked with a wav-file, as you can see I work with a streaming file (asx-file).
View 2 Replies
View Related
Jun 2, 2011
I am not sure whether this requires flash or not, therefore I'd like to ask if it is technically possible to create your own audio/video player with JavaScript/jQuery? If not, could I create something similar just not with full functionality? Like stop, next, previous, etc. buttons?
View 3 Replies
View Related
Feb 24, 2011
I've a video list and when a user clicks on a video link it should play the video in one area of the page. but when you click on the second and third video links the audio from all videos play at the same time. i know this is a known bug in IE but for the life of me i can't fix it. it works fine for firefox but my client uses IE
How to stop the audio of the previous video when a new video link is clicked on?
<SCRIPT LANGUAGE="JavaScript">
View 1 Replies
View Related