Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Unified Diff: webrtc/pc/mediasession.h

Issue 1956343002: Initial asymmetric codec support in MediaSessionDescription (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Check stream type to decide on whether or not to receive. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/pc/mediasession.cc » ('j') | webrtc/pc/mediasession.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/mediasession.h
diff --git a/webrtc/pc/mediasession.h b/webrtc/pc/mediasession.h
index 39ac26bd8dad104c5b10b0d450caf7cf67e85233..a4e78bd6597a2f8c8e6e01208cc372c80d130886 100644
--- a/webrtc/pc/mediasession.h
+++ b/webrtc/pc/mediasession.h
@@ -52,6 +52,8 @@ enum MediaContentDirection {
MD_SENDRECV
};
+std::string MediaContentDirectionToString(MediaContentDirection direction);
+
enum CryptoType {
CT_NONE,
CT_SDES,
@@ -395,8 +397,12 @@ class MediaSessionDescriptionFactory {
MediaSessionDescriptionFactory(ChannelManager* cmanager,
const TransportDescriptionFactory* factory);
- const AudioCodecs& audio_codecs() const { return audio_codecs_; }
- void set_audio_codecs(const AudioCodecs& codecs) { audio_codecs_ = codecs; }
+ const AudioCodecs& audio_codecs() const;
pthatcher1 2016/05/31 21:52:36 I'd prefer audio_sendrecv_codecs()
ossu 2016/06/02 13:28:02 Sure! I've addressed it in the second CL.
+ const AudioCodecs& audio_send_codecs() const;
+ const AudioCodecs& audio_recv_codecs() const;
+ void set_audio_codecs(const AudioCodecs& send_and_recv_codecs);
+ void set_audio_codecs(const AudioCodecs& send_codecs,
+ const AudioCodecs& recv_codecs);
pthatcher1 2016/05/31 21:52:36 This should probably both be SetAudioCodecs. Also
ossu 2016/06/02 13:28:02 I've kept it while we're redoing the rest of the c
void set_audio_rtp_header_extensions(const RtpHeaderExtensions& extensions) {
audio_rtp_extensions_ = extensions;
}
@@ -431,6 +437,9 @@ class MediaSessionDescriptionFactory {
private:
void GetCodecsToOffer(const SessionDescription* current_description,
+ const AudioCodecs& supported_audio_codecs,
+ const VideoCodecs& supported_video_codecs,
+ const DataCodecs& supported_data_codecs,
AudioCodecs* audio_codecs,
VideoCodecs* video_codecs,
DataCodecs* data_codecs) const;
@@ -502,7 +511,9 @@ class MediaSessionDescriptionFactory {
StreamParamsVec* current_streams,
SessionDescription* answer) const;
- AudioCodecs audio_codecs_;
+ AudioCodecs audio_send_codecs_;
+ AudioCodecs audio_recv_codecs_;
+ AudioCodecs audio_sendrecv_codecs_;
RtpHeaderExtensions audio_rtp_extensions_;
VideoCodecs video_codecs_;
RtpHeaderExtensions video_rtp_extensions_;
« no previous file with comments | « no previous file | webrtc/pc/mediasession.cc » ('j') | webrtc/pc/mediasession.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698