• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMF

 
Sanjoo Singh
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sanjoo Singh
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sanjoo Singh
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf, probably this link will give you an idea of my internet related issue. Please guide me on this.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "in this regard"? What is the exact problem you're trying to solve?
 
Sanjoo Singh
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic