OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 const ContentInfo* GetFirstAudioContent(const SessionDescription* sdesc); | 540 const ContentInfo* GetFirstAudioContent(const SessionDescription* sdesc); |
541 const ContentInfo* GetFirstVideoContent(const SessionDescription* sdesc); | 541 const ContentInfo* GetFirstVideoContent(const SessionDescription* sdesc); |
542 const ContentInfo* GetFirstDataContent(const SessionDescription* sdesc); | 542 const ContentInfo* GetFirstDataContent(const SessionDescription* sdesc); |
543 const AudioContentDescription* GetFirstAudioContentDescription( | 543 const AudioContentDescription* GetFirstAudioContentDescription( |
544 const SessionDescription* sdesc); | 544 const SessionDescription* sdesc); |
545 const VideoContentDescription* GetFirstVideoContentDescription( | 545 const VideoContentDescription* GetFirstVideoContentDescription( |
546 const SessionDescription* sdesc); | 546 const SessionDescription* sdesc); |
547 const DataContentDescription* GetFirstDataContentDescription( | 547 const DataContentDescription* GetFirstDataContentDescription( |
548 const SessionDescription* sdesc); | 548 const SessionDescription* sdesc); |
549 | 549 |
550 // Functions for translating media candidate names. | |
551 | |
552 // For converting between media ICE component and G-ICE channel | |
553 // names. For example: | |
554 // "rtp" <=> 1 | |
555 // "rtcp" <=> 2 | |
556 // "video_rtp" <=> 1 | |
557 // "video_rtcp" <=> 2 | |
558 // Will not convert in the general case of arbitrary channel names, | |
559 // but is useful for cases where we have candidates for media | |
560 // channels. | |
561 // returns false if there is no mapping. | |
562 bool GetMediaChannelNameFromComponent( | |
563 int component, cricket::MediaType media_type, std::string* channel_name); | |
564 bool GetMediaComponentFromChannelName( | |
565 const std::string& channel_name, int* component); | |
566 bool GetMediaTypeFromChannelName( | |
567 const std::string& channel_name, cricket::MediaType* media_type); | |
568 | |
569 void GetSupportedAudioCryptoSuites(std::vector<std::string>* crypto_suites); | 550 void GetSupportedAudioCryptoSuites(std::vector<std::string>* crypto_suites); |
570 void GetSupportedVideoCryptoSuites(std::vector<std::string>* crypto_suites); | 551 void GetSupportedVideoCryptoSuites(std::vector<std::string>* crypto_suites); |
571 void GetSupportedDataCryptoSuites(std::vector<std::string>* crypto_suites); | 552 void GetSupportedDataCryptoSuites(std::vector<std::string>* crypto_suites); |
572 void GetSupportedDefaultCryptoSuites(std::vector<std::string>* crypto_suites); | 553 void GetSupportedDefaultCryptoSuites(std::vector<std::string>* crypto_suites); |
573 } // namespace cricket | 554 } // namespace cricket |
574 | 555 |
575 #endif // TALK_SESSION_MEDIA_MEDIASESSION_H_ | 556 #endif // TALK_SESSION_MEDIA_MEDIASESSION_H_ |
OLD | NEW |