Displaying two videos at the same time with JVLC
Posted: 18 Feb 2009 14:36
Hi,
I was trying to get a simple application with JVLC able to play two videos at the same time in two different Canvas/JVLC elements, both included in the same JPanel, side by side. I get the sound of both contents but only the video of the first I start playing. I have tried with a JVLC player and standard VLC application and they both play properly, I get the error just when trying to play in the same Java application. I've also tried to add both JVLC players in different layers of a card layered JPanel instead of a flow layout-based one but I get the same results: only the first to start plays properly the video, while the second just shows a black screen with the name of the file and the sound.
Any similar experience or clue about what I should try would be much appreciated.
Thank you.
I was trying to get a simple application with JVLC able to play two videos at the same time in two different Canvas/JVLC elements, both included in the same JPanel, side by side. I get the sound of both contents but only the video of the first I start playing. I have tried with a JVLC player and standard VLC application and they both play properly, I get the error just when trying to play in the same Java application. I've also tried to add both JVLC players in different layers of a card layered JPanel instead of a flow layout-based one but I get the same results: only the first to start plays properly the video, while the second just shows a black screen with the name of the file and the sound.
Any similar experience or clue about what I should try would be much appreciated.
Thank you.