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

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

Issue 2942503002: Detailed description will be added. (Closed)
Patch Set: Suggested changes to comments Created 3 years, 6 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 | « webrtc/media/base/h264_profile_level_id.cc ('k') | webrtc/media/engine/webrtcvoiceengine.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 * 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
11 #ifndef WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ 11 #ifndef WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_
12 #define WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ 12 #define WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_
13 13
14 #include <algorithm> 14 #include <algorithm>
15 #include <memory> 15 #include <memory>
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #include "webrtc/api/rtpparameters.h" 19 #include "webrtc/api/rtpparameters.h"
20 #include "webrtc/api/rtpreceiverinterface.h"
20 #include "webrtc/base/basictypes.h" 21 #include "webrtc/base/basictypes.h"
21 #include "webrtc/base/buffer.h" 22 #include "webrtc/base/buffer.h"
22 #include "webrtc/base/copyonwritebuffer.h" 23 #include "webrtc/base/copyonwritebuffer.h"
23 #include "webrtc/base/dscp.h" 24 #include "webrtc/base/dscp.h"
24 #include "webrtc/base/logging.h" 25 #include "webrtc/base/logging.h"
25 #include "webrtc/base/networkroute.h" 26 #include "webrtc/base/networkroute.h"
26 #include "webrtc/base/optional.h" 27 #include "webrtc/base/optional.h"
27 #include "webrtc/base/sigslot.h" 28 #include "webrtc/base/sigslot.h"
28 #include "webrtc/base/socket.h" 29 #include "webrtc/base/socket.h"
29 #include "webrtc/base/window.h" 30 #include "webrtc/base/window.h"
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 // The |ssrc| should be either 0 or a valid send stream ssrc. 1006 // The |ssrc| should be either 0 or a valid send stream ssrc.
1006 // The valid value for the |event| are 0 to 15 which corresponding to 1007 // The valid value for the |event| are 0 to 15 which corresponding to
1007 // DTMF event 0-9, *, #, A-D. 1008 // DTMF event 0-9, *, #, A-D.
1008 virtual bool InsertDtmf(uint32_t ssrc, int event, int duration) = 0; 1009 virtual bool InsertDtmf(uint32_t ssrc, int event, int duration) = 0;
1009 // Gets quality stats for the channel. 1010 // Gets quality stats for the channel.
1010 virtual bool GetStats(VoiceMediaInfo* info) = 0; 1011 virtual bool GetStats(VoiceMediaInfo* info) = 0;
1011 1012
1012 virtual void SetRawAudioSink( 1013 virtual void SetRawAudioSink(
1013 uint32_t ssrc, 1014 uint32_t ssrc,
1014 std::unique_ptr<webrtc::AudioSinkInterface> sink) = 0; 1015 std::unique_ptr<webrtc::AudioSinkInterface> sink) = 0;
1016
1017 virtual std::vector<webrtc::RtpSource> GetSources(uint32_t ssrc) const = 0;
1015 }; 1018 };
1016 1019
1017 // TODO(deadbeef): Rename to VideoSenderParameters, since they're intended to 1020 // TODO(deadbeef): Rename to VideoSenderParameters, since they're intended to
1018 // encapsulate all the parameters needed for a video RtpSender. 1021 // encapsulate all the parameters needed for a video RtpSender.
1019 struct VideoSendParameters : RtpSendParameters<VideoCodec> { 1022 struct VideoSendParameters : RtpSendParameters<VideoCodec> {
1020 // Use conference mode? This flag comes from the remote 1023 // Use conference mode? This flag comes from the remote
1021 // description's SDP line 'a=x-google-flag:conference', copied over 1024 // description's SDP line 'a=x-google-flag:conference', copied over
1022 // by VideoChannel::SetRemoteContent_w, and ultimately used by 1025 // by VideoChannel::SetRemoteContent_w, and ultimately used by
1023 // conference mode screencast logic in 1026 // conference mode screencast logic in
1024 // WebRtcVideoChannel::WebRtcVideoSendStream::CreateVideoEncoderConfig. 1027 // WebRtcVideoChannel::WebRtcVideoSendStream::CreateVideoEncoderConfig.
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 const char*, 1218 const char*,
1216 size_t> SignalDataReceived; 1219 size_t> SignalDataReceived;
1217 // Signal when the media channel is ready to send the stream. Arguments are: 1220 // Signal when the media channel is ready to send the stream. Arguments are:
1218 // writable(bool) 1221 // writable(bool)
1219 sigslot::signal1<bool> SignalReadyToSend; 1222 sigslot::signal1<bool> SignalReadyToSend;
1220 }; 1223 };
1221 1224
1222 } // namespace cricket 1225 } // namespace cricket
1223 1226
1224 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ 1227 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/h264_profile_level_id.cc ('k') | webrtc/media/engine/webrtcvoiceengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698