can't play video using JMF while tramitting stream over RTP

Posted on 2009-12-24
Last Modified: 2013-11-23
I am using code to tranmit video using RTP using JMF and i am able to successfully get the video on client side

Code to send the  video over rtp

code to recieve video over rtp

My problem is i am not able to play video in
If i create a player using datasouce, eigther i get player already occupied or a black screen.

please help me running the video on Transmit side as well.

NOTE: i am using web cam for video source

I have attached the actual file which i am using for video transmitting. i have successfully receive the video on receiver side.

Once again my problem is that unable to show the video on Transmitter side.
Question by:noshi316
    LVL 24

    Expert Comment

    by:Tomas Helgi Johannsson

    If I understand it correctly you want on the server (transmission) side see what the server is transmitting, rigfht ?
    Well one way (and the easiest )  to solve this would be to have a client on the server side for receiving the transmission locally
    to see the servers transmissions.

          Tomas Helgi
    LVL 1

    Author Comment

    No, i don't want to do what you said, i want to run the video on same stream/data source which i am sending on the network on transmission side
    LVL 1

    Accepted Solution

    I have found the solution of it my self.

    I made the datasource cloneable and then used cloned datasource for player and origional datasource for tramitting to RTP session

    LVL 24

    Expert Comment

    by:Tomas Helgi Johannsson

    No objections from me.
    Here are links to some info on Cloneable datasources in JMF.

        Tomas Helgi

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    Title # Comments Views Activity
    FizzBuzz challenge 9 64
    countHi challenge 25 59
    pairstar challenge 2 26
    countHi2 challenge 7 30
    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now