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

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

Issue 1378513003: Change 'mute' parameter of MediaChannel::SetAudioSend()/SetVideoSend() to 'enable'. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 2 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
« no previous file with comments | « talk/media/base/fakemediaengine.h ('k') | talk/media/base/videoengine_unittest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 1063
1064 VoiceMediaChannel() {} 1064 VoiceMediaChannel() {}
1065 virtual ~VoiceMediaChannel() {} 1065 virtual ~VoiceMediaChannel() {}
1066 virtual bool SetSendParameters(const AudioSendParameters& params) = 0; 1066 virtual bool SetSendParameters(const AudioSendParameters& params) = 0;
1067 virtual bool SetRecvParameters(const AudioRecvParameters& params) = 0; 1067 virtual bool SetRecvParameters(const AudioRecvParameters& params) = 0;
1068 // Starts or stops playout of received audio. 1068 // Starts or stops playout of received audio.
1069 virtual bool SetPlayout(bool playout) = 0; 1069 virtual bool SetPlayout(bool playout) = 0;
1070 // Starts or stops sending (and potentially capture) of local audio. 1070 // Starts or stops sending (and potentially capture) of local audio.
1071 virtual bool SetSend(SendFlags flag) = 0; 1071 virtual bool SetSend(SendFlags flag) = 0;
1072 // Configure stream for sending. 1072 // Configure stream for sending.
1073 virtual bool SetAudioSend(uint32 ssrc, bool mute, const AudioOptions* options, 1073 virtual bool SetAudioSend(uint32 ssrc, bool enable,
1074 const AudioOptions* options,
1074 AudioRenderer* renderer) = 0; 1075 AudioRenderer* renderer) = 0;
1075 // Sets the renderer object to be used for the specified remote audio stream. 1076 // Sets the renderer object to be used for the specified remote audio stream.
1076 virtual bool SetRemoteRenderer(uint32 ssrc, AudioRenderer* renderer) = 0; 1077 virtual bool SetRemoteRenderer(uint32 ssrc, AudioRenderer* renderer) = 0;
1077 // Gets current energy levels for all incoming streams. 1078 // Gets current energy levels for all incoming streams.
1078 virtual bool GetActiveStreams(AudioInfo::StreamList* actives) = 0; 1079 virtual bool GetActiveStreams(AudioInfo::StreamList* actives) = 0;
1079 // Get the current energy level of the stream sent to the speaker. 1080 // Get the current energy level of the stream sent to the speaker.
1080 virtual int GetOutputLevel() = 0; 1081 virtual int GetOutputLevel() = 0;
1081 // Get the time in milliseconds since last recorded keystroke, or negative. 1082 // Get the time in milliseconds since last recorded keystroke, or negative.
1082 virtual int GetTimeSinceLastTyping() = 0; 1083 virtual int GetTimeSinceLastTyping() = 0;
1083 // Temporarily exposed field for tuning typing detect options. 1084 // Temporarily exposed field for tuning typing detect options.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 1137
1137 virtual bool SetSendParameters(const VideoSendParameters& params) = 0; 1138 virtual bool SetSendParameters(const VideoSendParameters& params) = 0;
1138 virtual bool SetRecvParameters(const VideoRecvParameters& params) = 0; 1139 virtual bool SetRecvParameters(const VideoRecvParameters& params) = 0;
1139 // Gets the currently set codecs/payload types to be used for outgoing media. 1140 // Gets the currently set codecs/payload types to be used for outgoing media.
1140 virtual bool GetSendCodec(VideoCodec* send_codec) = 0; 1141 virtual bool GetSendCodec(VideoCodec* send_codec) = 0;
1141 // Sets the format of a specified outgoing stream. 1142 // Sets the format of a specified outgoing stream.
1142 virtual bool SetSendStreamFormat(uint32 ssrc, const VideoFormat& format) = 0; 1143 virtual bool SetSendStreamFormat(uint32 ssrc, const VideoFormat& format) = 0;
1143 // Starts or stops transmission (and potentially capture) of local video. 1144 // Starts or stops transmission (and potentially capture) of local video.
1144 virtual bool SetSend(bool send) = 0; 1145 virtual bool SetSend(bool send) = 0;
1145 // Configure stream for sending. 1146 // Configure stream for sending.
1146 virtual bool SetVideoSend(uint32 ssrc, bool mute, 1147 virtual bool SetVideoSend(uint32 ssrc, bool enable,
1147 const VideoOptions* options) = 0; 1148 const VideoOptions* options) = 0;
1148 // Sets the renderer object to be used for the specified stream. 1149 // Sets the renderer object to be used for the specified stream.
1149 // If SSRC is 0, the renderer is used for the 'default' stream. 1150 // If SSRC is 0, the renderer is used for the 'default' stream.
1150 virtual bool SetRenderer(uint32 ssrc, VideoRenderer* renderer) = 0; 1151 virtual bool SetRenderer(uint32 ssrc, VideoRenderer* renderer) = 0;
1151 // If |ssrc| is 0, replace the default capturer (engine capturer) with 1152 // If |ssrc| is 0, replace the default capturer (engine capturer) with
1152 // |capturer|. If |ssrc| is non zero create a new stream with |ssrc| as SSRC. 1153 // |capturer|. If |ssrc| is non zero create a new stream with |ssrc| as SSRC.
1153 virtual bool SetCapturer(uint32 ssrc, VideoCapturer* capturer) = 0; 1154 virtual bool SetCapturer(uint32 ssrc, VideoCapturer* capturer) = 0;
1154 // Gets quality stats for the channel. 1155 // Gets quality stats for the channel.
1155 virtual bool GetStats(VideoMediaInfo* info) = 0; 1156 virtual bool GetStats(VideoMediaInfo* info) = 0;
1156 // Send an intra frame to the receivers. 1157 // Send an intra frame to the receivers.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 // Signal when the media channel is ready to send the stream. Arguments are: 1292 // Signal when the media channel is ready to send the stream. Arguments are:
1292 // writable(bool) 1293 // writable(bool)
1293 sigslot::signal1<bool> SignalReadyToSend; 1294 sigslot::signal1<bool> SignalReadyToSend;
1294 // Signal for notifying that the remote side has closed the DataChannel. 1295 // Signal for notifying that the remote side has closed the DataChannel.
1295 sigslot::signal1<uint32> SignalStreamClosedRemotely; 1296 sigslot::signal1<uint32> SignalStreamClosedRemotely;
1296 }; 1297 };
1297 1298
1298 } // namespace cricket 1299 } // namespace cricket
1299 1300
1300 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ 1301 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_
OLDNEW
« no previous file with comments | « talk/media/base/fakemediaengine.h ('k') | talk/media/base/videoengine_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698