Java Audio Streaming - Mp3 Audio file in FireFox won't play - java

I recently created a Java program to stream MP3 audio using a servletOutputStream to the browser. I tested it on Firefox, chrome & IE, and it worked fine until I updated Firefox to the newest version (15.0.1). At first I thought this was because this new version of FireFox included the new version of Flash but I checked Chrome and IE and they were both using the latest version of Flash as well. Does anyone know why the newest version of Firefox would cause audio streaming to stop working? No error is thrown, it just wont play. Thanks for any help in advance!

We're having the samt issue with a music player that used to both load and play mp3-files flawlessly until upgrading the Flash player from 11.2.x to 11.4.x.
This currently only affects Firefox since both IE and Google Chrome still seems to be using previous versions of the Flash player (11.3.x and 11.2.x respectively).
We're loading the music using two simple lines of code
var player:Sound = new Sound();
player.loadSound(filepath, true);
I can see that file gets loaded on the progressbar but it just won't start playing.
This of course does not help you solve your problem, but hopefully the additional info is importance to anyone else who is more of an Flash expert.

Related

Watson text to speech not working in Chrome

I just started working with the java SDK for IBM's Watson TTS. From a Spring app I can save .ogg and .wav files which play fine in Firefox and Audacity. I can also play both files accessed from my website running on Firefox. However neither one will play in Chrome. I don't think it's Chrome itself because it will play .ogg files from other sources, both online and from a file. Interestingly, the Watson demo also doesn't work in Chrome: https://text-to-speech-demo.mybluemix.net/. Has anyone else run into this problem? I'm using the latest version of the java SDK, 3.3.0.
Update
It appears it's a config issue of some sort. I tried the test .ogg file on my laptop and it worked fine, as did the TTS demo (should have done this earlier). My PC and laptop are running the exact same version of Chrome, both on Win10, and the settings look to be identical. I noticed that the sample that does work on my PC was a stereo file so I used Audacity to convert my test file to stereo and it worked! Huh??? So, I'm stuck trying to figure out what's going on - is it a Chrome setting (unlikely) or a driver issue with my speakers? They are an old set of RealTek speakers that I've never had any issues with. Any thoughts?
Sorry to waste anyone's time looking at this question. I played around with the speaker settings - it was set to 5.1 surround with 5 speakers and a subwoofer. I only have 2 speakers and a subwoofer so I took out the other 3 speakers and the test file now works in Chrome as does the Watson TTS demo. Weird, though, that the speaker settings didn't affect Firefox. That's 5 wasted hours of frustration I'm never going to get back...

Detect if JavaFX Media required codecs are installed

According to the following:
http://www.oracle.com/technetwork/java/javase/certconfig-2095354.html
In order for JavaFX media to work, the given OS needs proper codecs installed.
In my application, I am trying to play an mp4 video. If the given platform is not able to play it, I display a static image instead.
In such a case, if it is unable to play it, I was expecting it to throw an exception and I would handle it accordingly.
However, it does not do so and instead displays a blank area where the video should be.
How can one detect if the required codec is installed or not?
I was testing this on Windows Server 2008 where I got this symptom. Windows 7, 8, and 10 work as expected.
You don't need to check if the OS has the codec because Java includes most of them (Mpeg-4/mp4 is included), the problem is that window's server edition isn't able to play videos.

Red5 recorded stream playing issue with Flash Player 17.0.0.169

I am experiencing this problem, where once a stream is recorded with red5 and I try to play it, the stream plays in a fast-forward manner.
You can reproduce this issue on this link
http://www.technogumbo.com/tutorials/Recording-Decent-Quality-Video-And-Audio-With-Flash-and-Red5/
This happens only with Flash Player 17.0.0.169, not on the older versions.
A quick help will be appreciated.
[UPDATE]
I have recorded following stream with red5 v1.0.5 from a swf running at top of flash 17.0.0.169;
http://misc-items.s3.amazonaws.com/elance/sportseed/stream_0018D224-79E3-1AA7-E208-D08C2B3DE7DF.flv
The stream plays fine when the flash player version is < 17 but when it is 17.0.0.169 it plays in a fast-forward way.
Try opening following link on flash player version 17.0.0.169 and on the older versions of flash player, you will notice the issue yourself;
http://misc-items.s3.amazonaws.com/elance/sportseed/html5_video.html
Normally this is caused by publishers not having sufficient bandwidth during recording. There are server adjustments to help keep everything in-order, but they don't cover every case. Try your recordings in another player like VLC to ensure they are not damaged. Test your installation with these config properties:
# drop audio packets when queue is almost full, to disable this, set to 0
rtmp.executor.queue_size_to_drop_audio_packets=0
# increase from default of 120 if slow connections are present
fileconsumer.queue.size=2048
These go in the red5/conf/red5.properties file.
The recent version of Flash Player has addressed this problem.

VLC Remote control Fullscreen dos not work

so latly i am up on a project where I Code a Android Application wich controls some Applications on my PC for example VLC. So i made it this way that my Server connects to the VLC Remote Interface on Localhost:4040.
I got my application so far that it comunicates with VLC and sending orders to it like: next,prev, louder, shuffle. They work just fine. But my fullscreen method does not do anaything.....
little bit of code:
private static PrintWriter out; //Output Stream-> VLC Input
out = new PrintWriter(new BufferedWriter(
new OutputStreamWriter(socket.getOutputStream())),true);
out.write("pause"); //Will make VLC Play/Pause
I Got my Informations about the "orders" for VLC from this sources:
Source 1
Source 2:Offical VLC Documentation
So the "order" for fullscreen should be a simple "f" or "F" or "Fullscreen" but if i send this VLC does nothing or simply crashes. Does anyone know why VLC behaves likes this? I also read up on this thread where some dudes got the same error under MAC OSX but none of theyr solutions seems to work for me :
Remote Fulscreen Error
so if anyone got some informations i would be very thankfull for it :)
I am Programming on Java 1.7
Windows 7 Machine and VLC 2.1.5
Best Regards & Happy Programming
SOLVED:
After opening a post on the VLC board i got answered. What exactly the bug is, wasnt told to me but it is fixed in the newer version v2.2.0. So far its only a preview but it worked for me :)

WiiRemoteJ Sound Issue (wiimote speaker)

I was wondering if anyone can help, I'm using the WiiRemoteJ Java library for connecting to a Wiimote (Wii Remote). I have the supplied WRLIpml test application up and running but I'm having some problems with the sound being sent to the wiimotes speaker.
I'm using the sample sound file provided with the library, but instead of playing a recognizable tune when it's supposed to play, the Wiimote is playing a very quiet ticking noise.
I can see that the sound file supplied is being found correctly because when I run it through the debugger, it works fine.
I'm using the built in Mac OSX Bluetooth Stack and Bluecove.
Just wondering if anyone has any ideas?

Categories