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

Side by Side Diff: webrtc/api/ortc/ortcrtpsenderinterface.h

Issue 2675173003: Adding "adapter" ORTC objects on top of ChannelManager/BaseChannel/etc. (Closed)
Patch Set: Add memcheck suppression for end-to-end tests. Created 3 years, 10 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/api/ortc/ortcrtpreceiverinterface.h ('k') | webrtc/api/ortc/packettransportinterface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 // This file contains interfaces for RtpSenders:
12 // http://publications.ortc.org/2016/20161202/#rtcrtpsender*
13 //
14 // However, underneath the RtpSender is an RtpTransport, rather than a
15 // DtlsTransport. This is to allow different types of RTP transports (besides
16 // DTLS-SRTP) to be used.
17
18 #ifndef WEBRTC_API_ORTC_ORTCRTPSENDERINTERFACE_H_
19 #define WEBRTC_API_ORTC_ORTCRTPSENDERINTERFACE_H_
20
21 #include "webrtc/api/mediatypes.h"
22 #include "webrtc/api/mediastreaminterface.h"
23 #include "webrtc/api/ortc/rtptransportinterface.h"
24 #include "webrtc/api/rtcerror.h"
25 #include "webrtc/api/rtpparameters.h"
26
27 namespace webrtc {
28
29 // Note: Since sender capabilities may depend on how the OrtcFactory was
30 // created, instead of a static "GetCapabilities" method on this interface,
31 // there is a "GetRtpSenderCapabilities" method on the OrtcFactory.
32 class OrtcRtpSenderInterface {
33 public:
34 virtual ~OrtcRtpSenderInterface() {}
35
36 // Sets the source of media that will be sent by this sender.
37 //
38 // If Send has already been called, will immediately switch to sending this
39 // track. If |track| is null, will stop sending media.
40 //
41 // Returns INVALID_PARAMETER error if an audio track is set on a video
42 // RtpSender, or vice-versa.
43 virtual RTCError SetTrack(MediaStreamTrackInterface* track) = 0;
44 // Returns previously set (or constructed-with) track.
45 virtual rtc::scoped_refptr<MediaStreamTrackInterface> GetTrack() const = 0;
46
47 // Once supported, will switch to sending media on a new transport. However,
48 // this is not currently supported and will always return an error.
49 virtual RTCError SetTransport(RtpTransportInterface* transport) = 0;
50 // Returns previously set (or constructed-with) transport.
51 virtual RtpTransportInterface* GetTransport() const = 0;
52
53 // Start sending media with |parameters| (if |parameters| contains an active
54 // encoding).
55 //
56 // There are no limitations to how the parameters can be changed after the
57 // initial call to Send, as long as they're valid (for example, they can't
58 // use the same payload type for two codecs).
59 virtual RTCError Send(const RtpParameters& parameters) = 0;
60 // Returns parameters that were last successfully passed into Send, or empty
61 // parameters if that hasn't yet occurred.
62 //
63 // Note that for parameters that are described as having an "implementation
64 // default" value chosen, GetParameters() will return those chosen defaults,
65 // with the exception of SSRCs which have special behavior. See
66 // rtpparameters.h for more details.
67 virtual RtpParameters GetParameters() const = 0;
68
69 // Audio or video sender?
70 virtual cricket::MediaType GetKind() const = 0;
71
72 // TODO(deadbeef): SSRC conflict signal.
73 };
74
75 } // namespace webrtc
76
77 #endif // WEBRTC_API_ORTC_ORTCRTPSENDERINTERFACE_H_
OLDNEW
« no previous file with comments | « webrtc/api/ortc/ortcrtpreceiverinterface.h ('k') | webrtc/api/ortc/packettransportinterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698