VLC Remote control Fullscreen dos not work - java

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 :)

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...

Facing Issue While Playing a Video in Linux using VLCJ and JMF

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

UDP RTP Stream blocked from java app

Hi I am making an app that streams video from android to pc. I have the streams setup correctly and am able to open the .sdp file containing my RTP stream information in VLC on any pc fine. I can get the video and audio stream and it works great.
I am also writing a java app for PC that will be able to view this stream using vlcj and do other operations between it and the android app. My problem is that this app for some reason is only functioning correctly on my pc in my college dorm room. The pcs in my computer science lab and at home over my home network give me "Destination Unreachable (Port Unreachable)" errors when viewing the traffic in wireshark. Keep in mind this only happens through my vlcj implementation, it works perfectly using the actual vlc client. It also works fine on my home pc, which should have the same setup as the one in my dorm..
I have the following callback in my code for the MediaPlayer of vlcj:
#Override
public void buffering(MediaPlayer mediaPlayer, float newCache) {
System.out.println("Buffering " + newCache);
}
In the working computer it prints 0.0, and then continues up to 100 where the video appears and plays. On the computers where it doesn't work it just says 0.0 and then stops...
I really cannot understand this issue since it uses the same dlls as the vlc client and the packets get through when using the normal vlc client. Could the jre I'm using be denying udp packets?
Well I just got another computer to work with it... the only thing I can think of that would be different in the working computers is that they have actual video cards whereas the nonworking ones have integrated cards... But I don't think that would make a difference.

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

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.

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