Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: Need Help while implementing video chat and exploring JMF

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Need Help while implementing video chat and exploring JMF

    Hello,
    I am newbie in JMF, and getting some problem while implementing application.

    ->My basic algo of application:
    IMPLEMENTATION (BASIC-ALGORITHM)
    1) First need to capture video\audio from computer device(Cam\microphone).
    2) Need to send on network with the help of RTP(Real Time Protocol).
    3) Captured media at one end and play this media stream at other end on Network(Using RTP).
    4) When above three steps complete then i need to extend for peer to peer video chat .

    ->What i have implemented is given below:
    1)I have created datasource with the help of ds = Manager.createDataSource(new MediaLocator("vfw://0")); and i need to show this captured video on the jpanel so next i can send this datasource on network with the help of RTP.
    Important:I created Player with the help of player = Manager.createRealizedPlayer(new MediaLocator("vfw://0")); and successfully add componet of player in jframe, but for sending media stream on Network we need processor right? but for processor creation we need to create datasource.

    So what i need is capture video from webcam show in screen and same time send on network.
    Please guide.


  2. #2
    Junior Member
    Join Date
    Apr 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Need Help while implementing video chat and exploring JMF.

    Hello,
    I am newbie in JMF, and getting some problem while implementing application.

    ->My basic algo of application:
    IMPLEMENTATION (BASIC-ALGORITHM)
    1) First need to capture video\audio from computer device(Cam\microphone).
    2) Need to send on network with the help of RTP(Real Time Protocol).
    3) Captured media at one end and play this media stream at other end on Network(Using RTP).
    4) When above three steps complete then i need to extend for peer to peer video chat .

    ->What i have implemented is given below:
    1)I have created datasource with the help of ds = Manager.createDataSource(new MediaLocator("vfw://0")); and i need to show this captured video on the jpanel so next i can send this datasource on network with the help of RTP.
    Important:I created Player with the help of player = Manager.createRealizedPlayer(new MediaLocator("vfw://0")); and successfully add componet of player in jframe, but for sending media stream on Network we need processor right? but for processor creation we need to create datasource.

    So what i need is capture video from webcam show in screen and same time send on network.
    Please guide.

  3. #3
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 262 Times in 231 Posts

    Default Re: Need Help while implementing video chat and exploring JMF

    Please do not double post.
    Threads merged

  4. #4
    Junior Member
    Join Date
    Apr 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need Help while implementing video chat and exploring JMF

    I have implemented peer to peer video chat using JMF, I came to know, with JMF we can do real-time streaming of media over the internet using ICE/STUN/ TURN.
    Please guide me how can i start implementation for same.

  5. #5
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 262 Times in 231 Posts

    Default Re: Need Help while implementing video chat and exploring JMF

    Quote Originally Posted by siddha.sumit@gmail.com View Post
    IMPLEMENTATION (BASIC-ALGORITHM)
    1) First need to capture video\audio from computer device(Cam\microphone).
    2) Need to send on network with the help of RTP(Real Time Protocol).
    3) Captured media at one end and play this media stream at other end on Network(Using RTP).
    4) When above three steps complete then i need to extend for peer to peer video chat .
    Please guide me
    According to the steps you've outlined, the first one is to capture video/audio from a device(s).
    What is the problem in completing the first part? If you have any error messages post the full text with the code.

  6. #6
    Junior Member
    Join Date
    Apr 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need Help while implementing video chat and exploring JMF

    Thanks for concern ,Now my peer to peer video chatting is working now i want to run it on internet means one peer will be my system and another will be Amazon instance.I went through some article then i came to know that :
    ►JMF is capable to do real-time streaming of media over the Internet.
    Could you help me how can i start implementation for this.

  7. #7
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 262 Times in 231 Posts

    Default Re: Need Help while implementing video chat and exploring JMF

    That is more of a do-it-for-me question and this is more of a do-it-yourself-with-advice type of place. If you are stuck on implementation in general, it is time for research on the subject. Try books or your favorite search engine.

  8. #8
    Junior Member
    Join Date
    Apr 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need Help while implementing video chat and exploring JMF

    Do-it-yourself-with-advice is my favourite option, i want advice on media stream sent by a local system(having internet) and accessed by remote system which is not LAN connected but internet connected.
    On LAN i just capture media and make RTP connection and send over n/w ip address and remote system just access with the help of session Manager, but when systems are internet connected will RTP work in the same manner?

Similar Threads

  1. Problem is trying to play a video from Webcam using JMF
    By srinithegr8 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: January 13th, 2013, 10:42 AM
  2. finding video features using JMF
    By divijasri in forum Java SE APIs
    Replies: 1
    Last Post: April 11th, 2012, 02:44 PM
  3. Looking at Exploring Database Connecting
    By aussiemcgr in forum JDBC & Databases
    Replies: 2
    Last Post: August 12th, 2010, 03:40 PM
  4. Replies: 2
    Last Post: January 8th, 2010, 07:22 AM
  5. jmf , video with hopes of AR
    By wolfgar in forum Java SE APIs
    Replies: 0
    Last Post: December 4th, 2009, 03:54 AM