I started this JMF project 4 weeks ago.
Basically, it is about remote controlling webcam.
The first thing I am doing now is to implement the transmitting of the vedio from one PC to another.
It is always difficult to do one thing at the begining stage.
The first problem I encountered was that the video did not show where there was no error in the program itself at all. At the end, I figured it out, the reason was that I did not add visual components to the class I created.
the significant code was
"this.add(player.getVisualComponent());
this.add(player.getControlPanelComponent());
"
The second problem I encountered was that the video I transimitted from the server can not be displayed in client side. Actually I was testing this in my local machine, (since I have only one PC), it was sloved at the end, the reason was that in client side, I did not initialize the local address probably, the significant code was:
"SessionAddress localaddr = new SessionAddress(InetAddress.getLocalHost(),3000);"
where you can see "InetAddress.getLocalHost()".
then I did "mymgr.initialize(localaddr);"
Now there are still a lot of errors waiting for me to slove,
but at least I get started, and it was working in the sense of transimitting. cheers.
And Hope my little experience would help ppl who are working on similar projects.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment