Home | History | Annotate | Download | only in media

Lines Matching full:sdesc

323 static void GetCurrentStreamParams(const SessionDescription* sdesc,
325 if (!sdesc)
328 const ContentInfos& contents = sdesc->contents();
550 // Updates the transport infos of the |sdesc| according to the given
555 SessionDescription* sdesc) {
557 if (!sdesc || !bundle_group.FirstContentName()) {
564 sdesc->GetTransportInfoByName(selected_content_name);
577 sdesc->transport_infos().begin();
578 it != sdesc->transport_infos().end(); ++it) {
589 // Gets the CryptoParamsVec of the given |content_name| from |sdesc|, and
591 static bool GetCryptosByName(const SessionDescription* sdesc,
594 if (!sdesc || !cryptos) {
598 const ContentInfo* content = sdesc->GetContentByName(content_name);
644 static bool IsRtpContent(SessionDescription* sdesc,
647 ContentInfo* content = sdesc->GetContentByName(content_name);
659 // Updates the crypto parameters of the |sdesc| according to the given
664 SessionDescription* sdesc) {
666 if (!sdesc || !bundle_group.FirstContentName()) {
676 if (!IsRtpContent(sdesc, *it)) {
681 if (!sdesc->GetTransportInfoByName(*it)->description.secure()) {
686 if (!GetCryptosByName(sdesc, *it, &common_cryptos)) {
695 if (!GetCryptosByName(sdesc, *it, &cryptos)) {
709 if (!IsRtpContent(sdesc, *it)) {
712 ContentInfo* content = sdesc->GetContentByName(*it);
1951 static const ContentInfo* GetFirstMediaContent(const SessionDescription* sdesc,
1953 if (sdesc == NULL)
1956 return GetFirstMediaContent(sdesc->contents(), media_type);
1959 const ContentInfo* GetFirstAudioContent(const SessionDescription* sdesc) {
1960 return GetFirstMediaContent(sdesc, MEDIA_TYPE_AUDIO);
1963 const ContentInfo* GetFirstVideoContent(const SessionDescription* sdesc) {
1964 return GetFirstMediaContent(sdesc, MEDIA_TYPE_VIDEO);
1967 const ContentInfo* GetFirstDataContent(const SessionDescription* sdesc) {
1968 return GetFirstMediaContent(sdesc, MEDIA_TYPE_DATA);
1972 const SessionDescription* sdesc, MediaType media_type) {
1973 const ContentInfo* content = GetFirstMediaContent(sdesc, media_type);
1979 const SessionDescription* sdesc) {
1981 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_AUDIO));
1985 const SessionDescription* sdesc) {
1987 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_VIDEO));
1991 const SessionDescription* sdesc) {
1993 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA));