Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

JMF

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic