Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What do I have to do to synchronize the audio and video streams if they are transmitted on separate RTP sessions?

0
Posted

What do I have to do to synchronize the audio and video streams if they are transmitted on separate RTP sessions?

0

JMF supports audio and video synchronization over RTP based on the model specified in the RTP spec. Each RTP data stream is matched with the corresponding RTCP stream to correctly determine the media timestamps. That is then used to synchronize the streams sent from the same user as identified by the cname (canonical name) of that user. Even when the streams are sent from different sessions (RTPManager), the streams from the same user will be synchronized as long as the streams all carry the same cname.So from the programming point of view, if you create two sessions (RTPManager’s) for audio and video, you’ll need to make sure both sessions are initialized with the same cname (inside SourceDescription) in order to guarantee A/V synchronization.Check the AVTransmit on the solutions page for more detail: http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVTransmit.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123