source: py-tcpmultiplexer/htdocs/js/common.js@ 315

Last change on this file since 315 was 315, checked in by Rick van der Zwet, 13 years ago

HTML frontend.

File size: 360 bytes
RevLine 
[315]1function createAudio(wav_uri)
2{
3 $("#jplayer").jPlayer({
4 ready: function () {
5 $(this).jPlayer("setMedia", { wav: wav_uri }).jPlayer("play");
6 },
7 ended: function (event) {
8 $(this).jPlayer("play");
9 },
10 swfPath: "",
11 supplied: "wav"
12 });
13 $("#jplayer").after($("<p>In-browser audio is running.</p>"));
14}
Note: See TracBrowser for help on using the repository browser.