OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 const WebString& label, | 96 const WebString& label, |
97 const WebRTCDataChannelInit&) = 0; | 97 const WebRTCDataChannelInit&) = 0; |
98 // Gets senders used by the peer connection. These are wrappers referencing | 98 // Gets senders used by the peer connection. These are wrappers referencing |
99 // webrtc-layer senders, multiple |WebRTCRtpSender| objects referencing the | 99 // webrtc-layer senders, multiple |WebRTCRtpSender| objects referencing the |
100 // same webrtc-layer sender have the same |id|. | 100 // same webrtc-layer sender have the same |id|. |
101 virtual WebVector<std::unique_ptr<WebRTCRtpSender>> GetSenders() = 0; | 101 virtual WebVector<std::unique_ptr<WebRTCRtpSender>> GetSenders() = 0; |
102 // Gets receivers used by the peer connection. These are wrappers referencing | 102 // Gets receivers used by the peer connection. These are wrappers referencing |
103 // webrtc-layer receivers, multiple |WebRTCRtpReceiver| objects referencing | 103 // webrtc-layer receivers, multiple |WebRTCRtpReceiver| objects referencing |
104 // the same webrtc-layer receiver have the same |id|. | 104 // the same webrtc-layer receiver have the same |id|. |
105 virtual WebVector<std::unique_ptr<WebRTCRtpReceiver>> GetReceivers() = 0; | 105 virtual WebVector<std::unique_ptr<WebRTCRtpReceiver>> GetReceivers() = 0; |
| 106 // Adds the track to the peer connection, returning the resulting sender on |
| 107 // success and null on failure. |
| 108 virtual std::unique_ptr<WebRTCRtpSender> AddTrack( |
| 109 const WebMediaStreamTrack&, |
| 110 const WebVector<WebMediaStream>&) = 0; |
| 111 // Removes the sender, returning whether successful. On success, the sender's |
| 112 // track must have been set to null. |
| 113 virtual bool RemoveTrack(WebRTCRtpSender*) = 0; |
106 virtual WebRTCDTMFSenderHandler* CreateDTMFSender( | 114 virtual WebRTCDTMFSenderHandler* CreateDTMFSender( |
107 const WebMediaStreamTrack&) = 0; | 115 const WebMediaStreamTrack&) = 0; |
108 virtual void Stop() = 0; | 116 virtual void Stop() = 0; |
109 }; | 117 }; |
110 | 118 |
111 } // namespace blink | 119 } // namespace blink |
112 | 120 |
113 #endif // WebRTCPeerConnectionHandler_h | 121 #endif // WebRTCPeerConnectionHandler_h |
OLD | NEW |