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.
Related Article

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.