COMPGROUPS.NET | Post | Groups | Users | Stream | Browse | About | |

### Applet.newAudioClip(url) - replay

• Email
• Follow

Please shed a light, I like to replay (repeat play) the audio. Any
libraries to handle this ? Thanks.

 0
Reply moongeegee (52) 7/8/2008 1:21:05 PM

See related articles to this posting

moongeegee wrote:
> Please shed a light, I like to replay (repeat play) the audio. Any
> libraries to handle this ? Thanks.

See AudioClip.loop() in the docs.

--

Knute Johnson
email s/nospam/knute2008/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access

 0
Reply nospam8071 (1252) 7/8/2008 6:16:07 PM

On Jul 8, 11:21=A0pm, moongeegee <moongee...@gmail.com> wrote:
> Please shed a light, I like to replay (repeat play) the audio. Any
> libraries to handle this ?

<http://java.sun.com/javase/6/docs/api/javax/sound/sampled/package-
summary.html>

>..Thanks.

No worries.

--
Andrew Thompson
http://pscode.org/

 0
Reply andrewthommo (3108) 7/9/2008 6:52:03 AM

On Jul 8, 11:21=A0pm, moongeegee <moongee...@gmail.com> wrote:
> Please shed a light, I like to replay (repeat play) the audio. Any
> libraries to handle this ?

passage.html>

>..Thanks.

No worries.

--
Lynn Cohen
http://pscode.org/

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[Zionism, NWO, Iraq, Saddam, terror, genocide, Illuminati,
war, military, biological]

[Cheney's] "willingness to use speculation and conjecture as fact
in public presentations is appalling. It's astounding."

--- Vincent Cannistraro, a former CIA counterterrorism specialist

"The CIA owns everyone of any significance in the major media."

--- Former CIA Director William Colby

When asked in a 1976 interview whether the CIA had ever told its
media agents what to write, William Colby replied,
"Oh, sure, all the time."

[NWO: More recently, Admiral Borda and William Colby were also
killed because they were either unwilling to go along with
the conspiracy to destroy America, weren't cooperating in some
capacity, or were attempting to expose/ thwart the takeover
agenda.]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This is just a reminder.
It is not an emergency yet.
Were it actual emergency, you wouldn't be able to read this.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 0
Reply andrewthommo (3108) 7/9/2008 5:37:36 PM
 comp.lang.java.help 12070 articles. 5 followers.

3 Replies
44 Views

Similar Articles

[PageSpeed] 46

• Email
• Follow

Similar Artilces:

Applet and URL
Hi, i made a java applet. i need to redirect the user when a action finished by passing parameters to the new page. how can i do to stop the applet and redirect the browser to a new url ? Thanks, Damien > i made a java applet. > i need to redirect the user when a action finished by passing > parameters to the new page. > how can i do to stop the applet and redirect the browser to a new url You need to refer to the API Docs more often. If you haven't already, download your copy form Sun. java.applet.Applet class has method getAppletContext which returns an implementation...

Applet is not able to call a URL
Hello! I try to make a HTTP Connection through a Applet. The Url is inside the same CodeBase. Error message: java.net.UnknownHostException: https://www.unserserver.de HttpMethod method = null; try { URL url = new URL(sUrl); HostConfiguration hostConfig = new HostConfiguration(); hostConfig.setHost(url.getHost(), url.getPort(), url.getProtocol()); HttpClientParams httpClientParams = new HttpClientParams(); HttpClient httpClient = new HttpClient(); httpClient.setHostConfiguration(hostConfig); httpClient.setParams(httpClientParams); method = new GetMethod(); method.setQueryString(url.ge...

Applet performance (URL.openStream)
Hi I've got an applet that performs two functions. One is a URL redirect which takes 10 seconds (slow development machine), the other does a URL.openStream and reads through the text returned. The URL.openStream call itself takes around 28 seconds, while iterating through 150 lines calling string.indexOf() takes another 15. Any idea why the applet is performing so slowly. I had originally thought that the redirect and URL.openStream would take roughly the same amount of time. Thanks for any and all help. Muhammed (PS I wrapped the inputstream in a BufferedReader with the buffer...

Deny applet jar accee from URL
Hi , I have an applet of a web application, the problem is I have html page for an applet tag having following attributes <Applet class="..." archieve="xyz.jar,abc.jar"> .... where xyz.jar and abc.jar are in DefaultWebApp folder of web application. Here the issue is " user should not be allowed to directly access the jar by typing ". for example "http://url/xyz.jar" should not be allowed. For that if i deny access by redirectling in web.xml , the applet itself is not getting loaded , because applet is also unable to load the jars , Is there...

Strange behavior of Applet.getImage(URL)
In my SIGNED applet, I try to show an image: String pImage = "/images/myimage.gif"; Image image = getImage(getDocumentBase(), pImage); The document base is https://doc_domain/path/ (notice the 's' in https) The codebase is a different domain: http://code_domain/path/ (no 's') When the applet runs, something quite unexpected happens: the applet first tries to fetch the image from the server at code_domain!!!. In its web log, i can see that it has tried to fetch http://code_domain/images/myimage.gif then, a second later, it fetches the intended i...

fragment and query part of URL in applet?
How can I get the fragment and query part of the URL in an applet? The only URL's that seem to be offered are document base and code base. You can look at these URL's, I have a page at.. http://www.physci.org/codes/java/docbase.html that shows the applet who's code can be seen.. http://www.physci.org/codes/display.jsp?fl=%2Fcodes%2Fjava%2FDocBase.java I was hoping to get the fragment/query string when I try URL's like.. http://www.physci.org/codes/java/docbase.html#3 http://www.physci.org/codes/java/docbase.html?ans=21 ...but both query and fragment show as 'null'. ...

applet gets parameter via URL
hey all, This is a bit more an html question as java... I have an applet and it uses 2 parameters, thats working fine. the first parameter = "field" the other "value" and its a search applet. displaying a map. My questions is is it possible to call the html page containing the applet with some parameters. a bit like the opposite of forms where the url you have to call is something like this. g:\search\getmap.html?field="Streetname"&value="WallStreet" Can i do this using some html or java script. without using a webserver ? TM On Mon, 22 Nov ...

Strange behaviour of Applet.getImage(URL)
In my SIGNED applet, I try to get an image: String pImage = "/images/myimage.gif"; Image image = getImage(getDocumentBase(), pImage); In this particular case, the document base is https://doc_domain/path/ (notice the 's' in https) The codebase is a different domain: http://code_domain/path/ (no 's') Now, when the applet runs, something quite unexpected happens: the applet first tries to fetch the image from the server at code_domain!!!. In its web log, i can see that it has tried to fetch http://code_domain/images/myimage.gif then, a second lat...

java applet url link in textarea
i have this chat client : http://167.28.103.24/kmgr/kmgrclient.html (which can only receive) not send messages if i actually send a message from the server, it works fine all users receive it fine the quesion is the following: if i send a link for instance: www.yahoo.com the users receive it fine in the textarea but cannot click on it (the goal if for them to click on it and for the link to open in a popup window) some help with that would be much apreciated "dam" <didoo007@yahoo.com> wrote in message news:cc1e87cb.0401221042.124ba283@posting.google.com... | i have this chat ...

displaying URL contents via an applet
I'm trying to, via an applet, download the contents of a URL and display them. To that end - I've written test.java (which follows). Unfortunately, it doesn't work. After showing the "splash screen" for a while, it doesn't output anything. Any ideas as to why?: import java.applet.*; import java.awt.*; import java.net.*; import java.io.*; public class test extends Applet { public void start() { try { URL url = new URL("http://www.google.com/"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.connect(); BufferedR...

applet's +url's
Is there anyway to change the url or call another web page from within a downloaded applet? "nialltimpson" <niall_mulhare@hotmail.com> wrote in message news:f458f38b556d874db0820e0680d0352b@localhost.talkaboutprogramming.com... > Is there anyway to change the url or call another web page from within a > downloaded applet? > I'm not sure precisely what you're asking. If you want to display an HTML page in a JEditorPane within your applet, that HTML page can contain a standard HTML link and you will be able to click on the link successfully. When you do so, t...

how to finish a java applet when I change of url in IExplorer
I have a problem with a java applet that has inside a thread, when I change of page, the java applet is still runing, and then when I load another page tha cotaints this java applet, I have two instances running in my internet explorer. I am aware of this because my java application uses tcp sockets communications, and the tcp activity is still alive when I changed of paged in the Internet Explorer. Thanks a lot. David Rodriguez "davidgrs" <davidgrs@gmail.com> schrieb im Newsbeitrag news:1107533710.720107.67560@l41g2000cwc.googlegroups.com... >I have a problem with a...

URL.openStream in an applet causes NBNS name query
Hi, within an applet I do an url.openStream() and that works, i mean I get the correct response. But immediately after calling the method a NBNS name query is sent to the remote server. That seems to be a NetBIOS request at post 137 (according to ethereal) , but I don't want to do anything with netbios or something. Because the remote port 137 is closed (and that is ok) the request is refused (with port unreachable) after the timout and the client tries it about 10 times. After that i get the response of my original request. Although my request with openStream() works it takes about 10 s...

Using Real Player to play an RTSP URL from an applet
I have an applet that I'd like to have play an RTSP URL with Real Player when I click on a button. I can use showDocument for http URLs, but it doesn't work for RTSP. I get a malformedURL exception. Does anyone know how to construct a java.net.URL with rtsp as the protocol so I can use showDocument to pass it to the browser and have the browser kick off Real Player? I need the player to play the sound rather than the applet directly so the user has control over what to play (rewind, etc.) Thanks. masonmarc@yahoo.com wrote: > I have an applet that I'd like to have play an ...

url to connect an applet to mysql on a virtual hosting environment
Hi I can't connect to a mysql db with an applet and J-Connector although the applet is on the same server (from my point of view). I suspect the problem is that we are using a virtual hosting server. I have tried url like jdbc:mysql://www.aviron-vevey.ch:3306/DB_name jdbc:mysql://localhost:3306/www.aviron-vevey.ch/DB_name jdbc:mysql://localhost:3306/DB_name jdbc:mysql://213.242.101.162:3306/DB_name jdbc:mysql://box1.swiss-online.com:3306/DB_name .... but all I get is connection timed out or access.denied. The same applet with LAMPP on my pc work without problem. Is ther...

URL and Url?
Why does Sun choose the class name "URL" for URL, but use "Jsp" for JSP? If I have an abbrev to name now, which one (upper or capital) should I use? On 22 Jan 2005 15:59:06 -0800, Aquila Deus wrote: > Why does Sun choose the class name "URL" for URL, but use "Jsp" for > JSP? Sh*t happens in the real world. Sun has not been consistent with their own nomenclature and recommendations on a number of occasions, basically because.. a) some sources were written prior to the convention, but more commonly b) some Sun programmers were either - unawa...

Applet to Applet Communication
I have an app and the latest running on an NT4 box, and the latest microsoft security patch has broken the applets. Applet A opens an new browser window which contains Applet B. Applet B can no longer get information from applet A. Any ideas on how to get these 2 applets to communicate with each other, in different browser windows? This is running in Netscape 4.7. Has anyone else had this problem> Thanks! Gene ...

applet inside an applet
Dear Friends, please suggest me a soultion in the following issue. I am new to java & please bare my poor english. I have an appplet, inside the applet, if some conditions matches I am loading a new applet. using the follwing syntax Applet realApplet; Class appletClass = Class.forName("client.class"); realApplet = (Applet)appletClass.newInstance(); realApplet.setStub(this); setLayout( new GridLayout(1,0)); add(realApplet); realApplet.init(); realApplet...

Applet : Applet cannot be loaded
Hi, My browser can't run any java applets. Some web sites return a "Applet cannot be loaded - Java support must be enabled to run" error message. What can I do? Config : Windows XP sp1 IE 6.0.28 Java 1.3.1 Thanks all, Denis Tools->Internet Options->Advanced->Use Java 1.3.1 for applets (requires restart). "Denis Crespe" <a@a.com> wrote in message news:bo1m9i$6k9$1@news.tiscali.fr... > Hi, > > My browser can't run any java applets. Some web sites return a "Applet > cannot be loaded - Java support must be enabled to run" erro...

applet to applet communication
I have an app and the latest running on an NT4 box, and the latest microsoft security patch has broken the applets. Applet A opens an new browser window which contains Applet B. Applet B can no longer get information from applet A. Any ideas on how to get these 2 applets to communicate with each other, in different browser windows? This is running in Netscape 4.7. Has anyone else had this problem> Thanks! Gene Actually it should not work this way at all. AppletContext is limited by the window there the applet is located. Thus you can communicate with applets on the same page, but no...

pull urls from a url
Hello - can anyone help me with code to pull urls from a url then re-display them in my html. ie if i wanted to pull a list of my ebay auction listings, then re-display them in a format of my own? hope someone can help.. david ...

Adding two applets in an applet
Hi, I am facing a problem in adding two JComponents in an applet. The two components are separately defined in different files, and I am instantiating them in a third file which is the applet. The problem is that I am able to see only the second component while the first one is not present. Both the Jcomponents have their paint methods separately defined in their file. Since there are 3 files involved I was not sure what shoudl I paste here as a code, if there are any questions regarding the clarity of the problem I shall answer them immediately. Please help!! TIA Rohit The subject is w...

java.applet.Applet.getParameter()
I would like to test to see if a parameter exists in the html file prior to calling getParameter(<key>), however I can not find any sort of method to allow me to do this. Is there a containsKey() method or something similar so that I could write code like: String[] keys = {"key1","key2"}; Hashtable ht = new Hashtable(); for(int i = 0; keys.length > i; i++){ if ( <KEY EXISTS IN HTML PARAMETER LIST> ){ ht.put(keys[i], getParameter(keys[i]); } } I know that I could just "try" and "catch" the getParameter, but th...

string to URL and URL to string
Hi All, I am having a problem with assigning a URL to a string. It accepts the idea of a URL from a string, does not accept having the URL placed back into a string. .. I have provided a sample program here as a demo. I have tried to use the ".equals" and also the" =" but neither works. TIA. bH import java.net.URL; import java.net.MalformedURLException; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; public class BookmarksC extends JFrame implements ActionListener{ private JButton b1 = new JButton(" Hotmail "); private...

problem with \url, hyperref and urls with #
Could someone explain why this does not work: \documentclass{article} \usepackage{url} \usepackage{hyperref} \begin{document} % this works \textit{\url{http://t.com/}} % so does this \url{http://t.com/#10} % whereas this crashes \textit{\url{http://t.com/#10}} \end{document} /daleif Lars Madsen <daleif@imf.au.dk> wrote: > Could someone explain why this does not work: > > \documentclass{article} > \usepackage{url} > \usepackage{hyperref} > \begin{document} > % this works > \textit{\url{http://t.com/}} > % so does this > \url{http://t.com/#10} > >...