What steps will reproduce the problem?
1. Create a player for playback and recorder
2. Run both player and recorder simultaneously using thread
What is the expected output? What do you see instead?
I expect that the playback and recording should work simultaneously. Instead,
JVM crashes when IMediaWriter's encode when is called. If it is commented, I
still can see the frames.
What operating system and JVM version are you using.
OS: Windows 7 Ultimate
java version "1.6.0_26"
Attach relevant log/output files.
Kindly reply if there is anything I am missing or doing it in wrong way. I have
attached the recorder and playback programs alongwith. I am new in Xuggler so I
appreciate if someone can point out my obvious mistakes.
I run these programs from a third program like this:
t = new Thread(new Runnable() {
public void run() {
try {
while (!recorderReady) {
t.sleep(25);
}
synchronized (this) {
videoScreen.startPlayback();
}
} catch (Exception e) {
e.printStackTrace();
}
}
});
t.start();
t1 = new Thread(new Runnable() {
public void run() {
try {
recorderScreen.startRecording();
} catch (Exception e) {
e.printStackTrace();
}
}
});
t1.start()
Thanks in advance for your help.
Original issue reported on code.google.com by navinbhu...@gmail.com on 28 Jul 2011 at 8:01
Original issue reported on code.google.com by
navinbhu...@gmail.com
on 28 Jul 2011 at 8:01Attachments: