SSRC_ Streaming Media protocol in RTP

Source: Internet
Author: User

In the RTP protocol, the source of the ssrc,synchronization source is defined as the RTP packet stream, and the ssrc identifier of the 32-bit value in the RTP header is identified so that it does not depend on the network address. Usually the change of microphone, audio interface, camera, video interface will lead to SSRC changes.
In Opal and OpenH323, when the ssrc of the RTP stream in the same session is changed, the RTP packet is discarded, which causes the media stream of the audio or video to be interrupted and cannot be restored, and the default value should be changed to allow the ssrc of the RTP stream to change. The code is in Rtp.cxx, as follows:

     if (ignoreothersources     && frame. Getsyncsource ()!= Syncsourcein) {
      ptrace (2, "Rtp\tpacket from ssrc=" << frame. Getsyncsource ()
             << "ignored, expecting ssrc=" << Syncsourcein);
        return e_ignorepacket; Non fatal error, just ignore 
    }
1 2 3 4 5 6 1 2 3 4 5-6
You need to set the ignoreothersources to False.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: