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

Side by Side Diff: webrtc/media/base/mediachannel.h

Issue 1917193008: Adding getParameters/setParameters APIs to RtpReceiver. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Adding nil check and removing unneeded methods. 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 ERROR_PLAY_SRTP_ERROR, // Generic SRTP failure. 899 ERROR_PLAY_SRTP_ERROR, // Generic SRTP failure.
900 ERROR_PLAY_SRTP_AUTH_FAILED, // Failed to authenticate packets. 900 ERROR_PLAY_SRTP_AUTH_FAILED, // Failed to authenticate packets.
901 ERROR_PLAY_SRTP_REPLAY, // Packet replay detected. 901 ERROR_PLAY_SRTP_REPLAY, // Packet replay detected.
902 }; 902 };
903 903
904 VoiceMediaChannel() {} 904 VoiceMediaChannel() {}
905 VoiceMediaChannel(const MediaConfig& config) : MediaChannel(config) {} 905 VoiceMediaChannel(const MediaConfig& config) : MediaChannel(config) {}
906 virtual ~VoiceMediaChannel() {} 906 virtual ~VoiceMediaChannel() {}
907 virtual bool SetSendParameters(const AudioSendParameters& params) = 0; 907 virtual bool SetSendParameters(const AudioSendParameters& params) = 0;
908 virtual bool SetRecvParameters(const AudioRecvParameters& params) = 0; 908 virtual bool SetRecvParameters(const AudioRecvParameters& params) = 0;
909 virtual webrtc::RtpParameters GetRtpParameters(uint32_t ssrc) const = 0; 909 virtual webrtc::RtpParameters GetRtpSendParameters(uint32_t ssrc) const = 0;
910 virtual bool SetRtpParameters(uint32_t ssrc, 910 virtual bool SetRtpSendParameters(
911 const webrtc::RtpParameters& parameters) = 0; 911 uint32_t ssrc,
912 const webrtc::RtpParameters& parameters) = 0;
913 virtual webrtc::RtpParameters GetRtpReceiveParameters(
914 uint32_t ssrc) const = 0;
915 virtual bool SetRtpReceiveParameters(
916 uint32_t ssrc,
917 const webrtc::RtpParameters& parameters) = 0;
912 // Starts or stops playout of received audio. 918 // Starts or stops playout of received audio.
913 virtual bool SetPlayout(bool playout) = 0; 919 virtual bool SetPlayout(bool playout) = 0;
914 // Starts or stops sending (and potentially capture) of local audio. 920 // Starts or stops sending (and potentially capture) of local audio.
915 virtual void SetSend(bool send) = 0; 921 virtual void SetSend(bool send) = 0;
916 // Configure stream for sending. 922 // Configure stream for sending.
917 virtual bool SetAudioSend(uint32_t ssrc, 923 virtual bool SetAudioSend(uint32_t ssrc,
918 bool enable, 924 bool enable,
919 const AudioOptions* options, 925 const AudioOptions* options,
920 AudioSource* source) = 0; 926 AudioSource* source) = 0;
921 // Gets current energy levels for all incoming streams. 927 // Gets current energy levels for all incoming streams.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 ERROR_PLAY_SRTP_AUTH_FAILED, // Failed to authenticate packets. 984 ERROR_PLAY_SRTP_AUTH_FAILED, // Failed to authenticate packets.
979 ERROR_PLAY_SRTP_REPLAY, // Packet replay detected. 985 ERROR_PLAY_SRTP_REPLAY, // Packet replay detected.
980 }; 986 };
981 987
982 VideoMediaChannel() {} 988 VideoMediaChannel() {}
983 VideoMediaChannel(const MediaConfig& config) : MediaChannel(config) {} 989 VideoMediaChannel(const MediaConfig& config) : MediaChannel(config) {}
984 virtual ~VideoMediaChannel() {} 990 virtual ~VideoMediaChannel() {}
985 991
986 virtual bool SetSendParameters(const VideoSendParameters& params) = 0; 992 virtual bool SetSendParameters(const VideoSendParameters& params) = 0;
987 virtual bool SetRecvParameters(const VideoRecvParameters& params) = 0; 993 virtual bool SetRecvParameters(const VideoRecvParameters& params) = 0;
988 virtual webrtc::RtpParameters GetRtpParameters(uint32_t ssrc) const = 0; 994 virtual webrtc::RtpParameters GetRtpSendParameters(uint32_t ssrc) const = 0;
989 virtual bool SetRtpParameters(uint32_t ssrc, 995 virtual bool SetRtpSendParameters(
990 const webrtc::RtpParameters& parameters) = 0; 996 uint32_t ssrc,
997 const webrtc::RtpParameters& parameters) = 0;
998 virtual webrtc::RtpParameters GetRtpReceiveParameters(
999 uint32_t ssrc) const = 0;
1000 virtual bool SetRtpReceiveParameters(
1001 uint32_t ssrc,
1002 const webrtc::RtpParameters& parameters) = 0;
991 // Gets the currently set codecs/payload types to be used for outgoing media. 1003 // Gets the currently set codecs/payload types to be used for outgoing media.
992 virtual bool GetSendCodec(VideoCodec* send_codec) = 0; 1004 virtual bool GetSendCodec(VideoCodec* send_codec) = 0;
993 // Starts or stops transmission (and potentially capture) of local video. 1005 // Starts or stops transmission (and potentially capture) of local video.
994 virtual bool SetSend(bool send) = 0; 1006 virtual bool SetSend(bool send) = 0;
995 // Configure stream for sending. 1007 // Configure stream for sending.
996 virtual bool SetVideoSend(uint32_t ssrc, 1008 virtual bool SetVideoSend(uint32_t ssrc,
997 bool enable, 1009 bool enable,
998 const VideoOptions* options) = 0; 1010 const VideoOptions* options) = 0;
999 // Sets the sink object to be used for the specified stream. 1011 // Sets the sink object to be used for the specified stream.
1000 // If SSRC is 0, the renderer is used for the 'default' stream. 1012 // If SSRC is 0, the renderer is used for the 'default' stream.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 // Signal when the media channel is ready to send the stream. Arguments are: 1138 // Signal when the media channel is ready to send the stream. Arguments are:
1127 // writable(bool) 1139 // writable(bool)
1128 sigslot::signal1<bool> SignalReadyToSend; 1140 sigslot::signal1<bool> SignalReadyToSend;
1129 // Signal for notifying that the remote side has closed the DataChannel. 1141 // Signal for notifying that the remote side has closed the DataChannel.
1130 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; 1142 sigslot::signal1<uint32_t> SignalStreamClosedRemotely;
1131 }; 1143 };
1132 1144
1133 } // namespace cricket 1145 } // namespace cricket
1134 1146
1135 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ 1147 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698