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?
Related
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...
I want to play a video in frame using Java code in LUbuntu.
Till now I have used JMF and VLCJ framework for playing a video, it works absolutely fine on windows but not on Linux (It gives me FATAL error if I use VLCJ even for the same code which runs on windows and JMF doesn't get install on linux-ubuntu).
I have used 32 bit Linux and 1.8 JDK. Is there compatibility issue with Linux drivers and JMF drivers ?
But now I am trying to run via any script that will enable me playing a video on a frame not on browser.
It will be great if you give me proper guidance.
Thank you.
vlcj currently will not work on 32-bit Ubuntu, at least not without some nasty workarounds.
In fact, this will fail even if you do not use vlcj, if you write the code yourself without using vlcj you are guaranteed to see the same failure.
The issue is caused by some combination of Java, VLC, LUA and 32-bit Ubuntu.
Probably the simplest workaround is to delete the VLC LUA scripts, but that will disable some functionality (such as YouTube).
There is a lot of background information here, way too much to reproduce in this answer:
https://github.com/caprica/vlcj/issues/62
I hope my question is suitable here. I recently started learning android - making buttons, using google maps and other basic stuff. I saw a thread recently (can't find it) about this and I got interested in it: https://github.com/jackpal/Android-Terminal-Emulator/wiki
This is an open source android terminal emulator. It also seems to have a library called EmulatorView with which people can call methods etc. What I would like to do is use this app inside my own app. Instead of just looking at the file system on the android phone etc. my app would connect to the console of a serial device like a router, usb to serial. Something I usually use minicom for on my pc. As in there could be a button in my app and if I press it it opens the console of the attached router and I could issue administrative commands.
I was wondering what the easiest way to do this would be? Would it be to try and use this library and make my own terminal, seems quite hard, or would it be to copy their source into a project and try to edit it? Seems messy to organize everything, and could be hard too? Then use some library like this to connect to the serial device? http://slickdevlabs.com/slick-usb-2-serial-library/
What would the first steps be, make a terminal like the open source app has, use their library or paste in their code? Then try and edit it to do something over serial?
I have tried to use their example for using their library (jackpal.androidterm.sample.telnet), but it crashes when I click open shell, I was wondering if this open shell button in their example was what I needed?
I decided I would learn more by writing the app myself using the library.
I have an android app that records audio and does other stuff, and I wanted to make a PC applet in java to allow users to listen to what they record on their androids. I got everything to work, but came to a halt at the playing part. Android can only record 3 formats (MPEG4, AMR, and 3GPP). And I'm having trouble finding a java api or code to play any of those formats. Does anyone have any suggestions or solutions?
Thanks in advance.
On this thread you can find numerous java API to playback audio files :
Any good recommendations for MP3/Sound libraries for java?
Also, you probably want to write a desktop application, not an applet. Applets are an old technology that never really catched up (to be honest Microsoft helped quite a lot to kill that tech...).
I'm looking for a way to playback .flv files using java. This means I will need a ffmpeg lib that is cross-platform. I've been toying with jmf and fobs4jmf, but I cannot playback in linux because I need a native library (maybe fobs4jmf.so?).
Is there any java lib that allows me to playback .flv besides fobs4jmf? Or fobs4jmf can be used in linux, mac, etc? A pure-java lib would be perfect!
Edit: The player will be deployed as a java web start app (targetting jre6).
I'm probably not reading your question correctly, but I don't understand what you have against fobs4jmf. It seems to support Mac and Linux fine, see http://fobs.sourceforge.net/f4jmf_first.html
i would use a blatant shortcut. use an embedded browser and have it play the file using the browser's flash plugin.
http://www.eclipse.org/swt/snippets/#browser
heres how to embed a browser in your app, and just deliver it content through a really simple embedded web server. im sure you can just pickup a flash app that plays flv's no problem with the help of google.
you probably want a go with javafx in this: http://java.dzone.com/news/video-getting-started-with-jav
Xuggler works on Linux, Mac and Windows. I think it'll do the trick.