Streaming Audio Files Over Web Using JMF Plugin

Feb 18, 2015

I've been experiencing problems with the JMF extension when used in an Applet on the web. The program has worked fine previously but not returns the following error...

PackageManager: error reading registry
javax.media.NoPlayerException: Cannot find a Player for : [filename]
at javax.media.Manager.createPlayerForContent(Manager .java:1412)
at javax.media.Manager.createPlayer(Manager.java:417)

[Code] .....

However the program works fine in Eclipse with no errors. I have tried reinstalling the JMF package and setting the CLASSPATH and JMFHOME but it still does not work. I am using the jmf-2_1_1e-alljava version. I have also tried putting the player code in an AccessController.doPrivileged() block but this still does not seem to work.

My code for the player is as follows....

private void play(final String track) {
Thread dispatch = new Thread() {
public void run() {
try {
if(player!=null)
player.close();

[Code] .....

View Replies


ADVERTISEMENT

Simple Client Server Audio Streaming Code In Java

Apr 18, 2014

I worked on this simple client server chat app and it worked now for my project i needed to work on client server audio streaming broadcast but i dont really know much bout audio api and methods on java...

View Replies View Related

Managing Audio Files In Java

Apr 18, 2014

I'm doing a little game in Java and I would like to insert a background music managed by a JButton. When the button is pressed, the music starts and then, to stop it, the button is pressed again. If you don't press the button to stop the music remains in the loop until the player plays.

View Replies View Related

Program Which Compares Audio File With Real Time Captured Audio

Nov 23, 2014

I wanted to know some hints on where to begin if I wanted to create a program which compares an audio file with real time captured audio. I found this website "[URL]...", but I think this would not do the job, so what are the basics of audio in java and how to compare audio files and see if they are compatible.

View Replies View Related

Untrackable Windows With Browser Plugin

May 5, 2015

I manage a small company through our bank's online system, that uses java, but I can't access it through any browser , they all give the same issue; after I choose the certificate file on my PC, nothing happens.

If i dual boot Ubuntu on my PC it works, so it's clearly something with the Windows installation.

Things tried :

- Reinstall Java, multiple times
- Clean anything Java and Oracle related in my PC (except registry, I don't know how to fuzz with that)
- Different browsers

View Replies View Related

Java Error Message With WordPress Plugin

May 30, 2014

I am trying to uncover why I am getting an error message when trying to view a panoramic photo on my wordpress website.We are using the PTviewer plugin.This is the error message when you load the page: URL....I recently took over as webmaster for this site am not sure how the previous developer decided to set this up.Here is the raw code:

<div style='padding: 15px'><h2 style='font-size: 13pt; color: #DB592D; margin-left: 5px; margin-bottom: 5px; font-family: georgia;'>Spacious One & Two Bedroom Suites</h2><p style="">Stay & Play at Pacific Plaza and your stay will be filled with fun, excitement in a relaxing beach atmosphere.<p style="">Choose from our spacious one bedroom and two bedroom suites.

[code]....

View Replies View Related

JavaFX 2.0 :: Launching Application In Separate Plugin

Sep 25, 2014

I have the following problem:
 
Let's say, there is a simple Java application. It could either be a Swing or JavaFX or a plain Console application.
 
Then there are kind of X plugin jars which can be also on the classpath.
 
The main application (e.g. main.jar) scans the classpath for classes, which implement an plugin interface. For each found implementation it invokes some method on the interface.
 
The interesting part now is, that upon calling the interface method, some plugins may want to popup a JavaFX window.
 
And the problem is, that I can't just call Platform.runLater there, because of "java.lang.IllegalStateException: Toolkit not initialized".
 
And if I somehow manage to call Application.launch() (when? where?) in the plugin then there's the danger, that the second plugin gets "IllegalStateException: Application launch must not be called more than once"

I also don't want to call launch() in the main application, since it is not necessarily an JavaFX application.
 
Do I maybe need to start separate JVM in the plugin? Could it still communicate with the original JVM then (main.jar)?

View Replies View Related

JSP :: Inform Browser To Show Plugin Install Window?

Aug 22, 2014

In my web application there is a need to provide a custom plugin to client , so I need to inform the browser to show plugin install window so that client can install that particular plugin.

how to do it from my JSP page . ?

View Replies View Related

Switching Security On In WTP Eclipse Plugin Causing Massive Errors

Aug 15, 2014

I am working on an Eclipse based project that uses WTP Eclipse plugin. Since I have switched security on in that plugin (by checking "Enable Security" check box on) I'm having multiple problems. I get a stack of security errors - attached in this post. I also show my java.policy file. Because the of the mass exceptions I list only the top, although I have attached a docx file with full thing.

Here is my java.policy file:

grant codeBase "file:${catalina.base}/wtpwebapps/App/WEB-INF/lib/hibernate-core-4.3.5.Final.jar" {
permission java.util.PropertyPermission "*", "read, write";
};
grant codeBase "file:${catalina.home}/lib/catalina.jar" {
permission java.lang.RuntimePermission "*";

[Code] ....

Exceptions:

15/08/2014 10:12:43 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:
C:Javajdk1.6.0_33in;C:WINDOWSSunJavain;
C:WINDOWSsystem32;C:WINDOWS;

[Code] .....

View Replies View Related

Streaming Music Over Network

Apr 16, 2015

I want to make a service like Spotify, where I can stream music that I have stored on my computer (in this case server) to my laptop or phone.

* What would be a suitable format for this?
* How would I actually stream it? I want to stream, not download and then play, I want to play the music while downloading.

View Replies View Related

I/O / Streams :: Flush In Streaming

Dec 16, 2006

i want to know when i have to use Flush in java , i saw alot of code that used it IO streaming , but i cannt understand how can i use it , or when i have to use it

View Replies View Related

I/O / Streams :: Java Streaming Big String

Aug 27, 2014

I have a very big string that I am returning from servlet to javascript. I am using PrintWriter.

PrintWriter out = response.getWriter();
out.print(bigString);

But as the string is very big my code is not working. My browser just hangs.

Also is it possible to stream the output? i.e instead of sending entire string, can I send small part of string at a time. So that my browser will not hang. I don't want to handle streaming manually I am just looking for an IO class which will do the streaming automatically.

View Replies View Related

Java Streaming Project Getting Slow After Hosting

May 20, 2014

I am working on a Java Streaming Networking ( Client Serve ) project , among remote client can:

1 ) chat,

2 ) Share files,

3 ) Share Screen live streaming,

4 ) Access the remote system.

All are working well faster & live on networking. But if i host on the Hosting server the all process are working but in deadly slow streaming is not live..,

View Replies View Related

Video Streaming Using Java - Convert File Into RTP Packets

Mar 11, 2015

I am doing project on Video streaming using java.

How to convert video file into RTP packets....?

View Replies View Related

Live Video Streaming From CCTV Camera In Application?

Dec 26, 2013

I am developing some application in Java. The need is to continuously do a video streaming in the software. I am new to this and want to know how to do it.

View Replies View Related

JavaFX 2.0 :: HTTP Live Streaming M3u8 Example Not Playing

Jul 15, 2014

I was testing my JavaFX2.2.7 based media player code in a current Java 6 application when I discovered that HTTP Live Streaming does not seem to work.  I can play a local file of the supported format (Sintel trailor mp4 h264) but when I try and use an HTTP Live Stream instead, nothing plays. (for example [URL] ).  I end up with a blank player, and no exceptions or errors.
 
private static final String MEDIA_URL = "http://download.oracle.com/otndocs/products/javafx/JavaRap/prog_index.m3u8";
Media media = new Media(MEDIA_URL);
MediaException ex = media.getError();
if (ex != null){
System.out.println("Media Error" + ex.getMessage());
} else{
System.out.println("No Media Error");
}
 
Program console output: "No Media Error"
 
I thought it was something wrong with my player code, so as a last resort, I went to JavaFX 2 - Ensemble and copied the source and put it directly into my application and ran it... Unfortunately the same result occurs. The player runs, but simply shows a blank video window.  The controls are available, but no video plays.
 
Based on the Release notes for Java 2.2.7 I was under the impression that HLS was supported.  Am I incorrect?
I cannot upgrade to Java 7 as I am firmly stuck with Java 1.6.0.32 due to project constraints.

View Replies View Related

Disabling Audio With JButton

Oct 11, 2014

I am having right now is that I don't know how to stop my music from playing? I am making a Connect 4 game with some audio to make it intuitive. Below is my code. This is my Music method.

public static void Music() {
try {
File music = new File("C:\Users\Ken\workspace\Assignment1\src\Mario1.wav");
AudioInputStream audioIn = AudioSystem.getAudioInputStream(music);
Clip clip = AudioSystem.getClip();
clip.open(audioIn);

[Code] ....

I called this method into a JButton i implemented into my main GUI.

if (e.getSource() == SoundOn){
Music();}
if (e.getSource() == SoundOff){
//What do I put here?
}

There is the method and my JButton.

View Replies View Related

How To Read Audio File In Java

Mar 20, 2015

How to read an audio file in java?

View Replies View Related

Applets :: Pause / Resume Audio?

Jul 22, 2014

I'm trying to learn how to Pause/Resume audio in an applet .

View Replies View Related

Audio-system Can't Find Any Mixers

May 13, 2014

I've moved working code over to a different computer, a 32 bit Dell PC running Win7 under Netbeans and Java 8. I can't get it to play or synthesize any sounds because it can't get any Mixers. I tried adding the standard provider entries to the sound.properties file (they aren't needed in my other computer, but I had to try), and it made no difference. I've tracked down the problem farther by getting the source code for these classes and stepping through.

The system seems to have the Mixer providers, but in java.util.ServiceLoader.LazyIterator$nextService() it is looping through a set of javax.sound.sampled.spi.MixerProviders and it hits the following error:

try {
S p = service.cast(c.newInstance());
providers.put(cn, p);
return p;
} catch (Throwable x) {
fail(service,
"Provider " + cn + " could not be instantiated",
x);
}

why this is happening?

View Replies View Related

IOException - How To Play Audio File

Apr 17, 2015

I used the following but there's an IOexception. How can I set it up so that it can play audio even after the jar is built?

public void play(){
InputStream in = null;
try {
in = new FileInputStream(new File(filename));
AudioStream audioStream = new AudioStream(in);
AudioPlayer.player.start(audioStream);
in.close();

[Code]...

View Replies View Related

How To Play Audio In A Stand Alone Application

Jun 26, 2014

how to play audio in a stand alone application.

View Replies View Related

How To Play Downloaded Audio File

Dec 15, 2014

I am making a little game for my friend based on HTML and javascript and i was wondering how to play an audio file that i downloaded on to my computer without the user interacting. like a buzzer you would hear on jeopordy or something like that, creating a Wrong answer buzzer and a right answer buzzer into an if/else statement.

View Replies View Related

Swing/AWT/SWT :: Continuous Audio Data Stream Not Working

Oct 15, 2014

I am trying to make my audio loop and i tried the code below

public void audioloop() {
AudioPlayer MGP = AudioPlayer.player;
AudioStream BGM;
AudioData MD;
ContinuousAudioDataStream loop = null;
try {

[Code] ....

But is not working. I was thinking may be API is not work with java 7 because i got the following warning (AudioStream is internal proprietary API and may be removed in a future release);

View Replies View Related

Android Audio Decoding For Morse Code And PSK31

Jan 6, 2014

I have some software I need to write. I am planning to write two apps for Android, one of which will send and receive Morse code, and the other to send and receive PSK31 data.

Programming is not my strong point, and I am currently struggling on how to do this. I have researched the software, and I am having a hard time finding out how to decode the audio streams on Android. I have also had difficulty finding examples and source code as what I have found is mostly written in C/C++, whereas I need examples in Java.

View Replies View Related

Basic Translation Software - Adding Audio To Words

Jan 30, 2015

I am a visual effects artist not a programmer but I wanna create a very basic translation software to improve english language in primary school students in my country. I cannot program at all except html and css but I am willing to do and learn whatever it takes to make this work. I don't know where to start from or what language to use. The structure of the program is to type an english word and then it must give out a translation of my local language and vice versa and I would like to add audio to the words.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved