• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 951
  • Last Modified:

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

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
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVTransmit2.java

code to recieve video over rtp
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVReceive.html#source

My problem is i am not able to play video in AVTransmit2.java.
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.




ServerTransmision.java
0
noshi316
Asked:
noshi316
  • 2
  • 2
1 Solution
 
Tomas Helgi JohannssonCommented:
          Hi!

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.

Regards,
      Tomas Helgi
0
 
noshi316Author Commented:
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
0
 
noshi316Author Commented:
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

0
 
Tomas Helgi JohannssonCommented:
     Hi!

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

http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/guide/JMFArchitecture.html
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/Clone.html

Regards,
    Tomas Helgi
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now