wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes JMF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JMF" Watch "JMF" New topic
Author

JMF

Sanjoo Singh
Ranch Hand

Joined: May 08, 2010
Posts: 33
Hi, I am trying to create a video chat application. I have completed the whole code with the help of JMF tutorials provided on Sun Java site. I have configured JMFRegistry and tested correctly with JMFStudio (webcam is working). However my java program hangs while creating DataSource, on following code :

DataSource ds = Manager.createDataSource(new MediaLocator("vfw://0"));

Please note:
1. Its not generating any exception. The program simply hangs on this code.
2. I tried running application on LAN using two different IPs
3. Also tried running application on internet with public IPs.
4. Tried by turning off windows firewall as well.

I would appreciate your any help/tip or guidance in this regard.


Solution Spider
Sanjoo Singh
Ranch Hand

Joined: May 08, 2010
Posts: 33
Update: I am now able to run the application successfully on LAN but failing on internet. Now I would like to understand if its possible to run the application on internet.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
What is the difference between "running the app on the LAN" and "running the app on the internet"? The app runs on a computer with an attached webcam, right? If so, network connectivity should not figure into it.


Ping & DNS - my free Android networking tools app
Sanjoo Singh
Ranch Hand

Joined: May 08, 2010
Posts: 33
Hi Ulf, probably this link will give you an idea of my internet related issue. Please guide me on this.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
Maybe others are willing to read 8 or 12 years old discussions that may or may not have anything to do with your problem, but I'm not. If you want to get help here you'll have to put some effort into describing what you need help with.
Sanjoo Singh
Ranch Hand

Joined: May 08, 2010
Posts: 33
Ok. I figured out the problem as the PCs are behind NAT/Firewalls. Thus not able to run on internet. I would like to understand if JXTA or MINA or any other API could be helpful in this regard.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
What do you mean by "in this regard"? What is the exact problem you're trying to solve?
Sanjoo Singh
Ranch Hand

Joined: May 08, 2010
Posts: 33
The problem I am facing in running a video chat application developed using JMF. The application runs successfully on LAN but fails over internet i.e. with public IPs due to NAT/Firewall issue. Is there any API to resolve this issue. I googled few (JXTA, MINA) but could not determine the correct/best alternative.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
You're going to have to be more specific. What does "public IPs due to NAT/Firewall issue" - that clients can't connect to the server if that's behind a FW? Well, yes, that's the point of FWs. You'll need to open it to those hosts and ports that you want clients to connect to.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMF