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

Unified Diff: webrtc/api/rtpreceiver.h

Issue 1816143002: Removed MediaStreamTrackInterface::set_state (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@track_state_listen_on_source2
Patch Set: Rebased Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/peerconnectioninterface_unittest.cc ('k') | webrtc/api/rtpreceiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/rtpreceiver.h
diff --git a/webrtc/api/rtpreceiver.h b/webrtc/api/rtpreceiver.h
index a62ed19dbf101cfc9307e44a8611a068ea70571c..b5818573da12602482475003f156526dec4dfc8e 100644
--- a/webrtc/api/rtpreceiver.h
+++ b/webrtc/api/rtpreceiver.h
@@ -19,6 +19,7 @@
#include "webrtc/api/mediastreamprovider.h"
#include "webrtc/api/rtpreceiverinterface.h"
+#include "webrtc/api/remoteaudiosource.h"
#include "webrtc/api/videotracksource.h"
#include "webrtc/base/basictypes.h"
#include "webrtc/media/base/videobroadcaster.h"
@@ -29,7 +30,8 @@ class AudioRtpReceiver : public ObserverInterface,
public AudioSourceInterface::AudioObserver,
public rtc::RefCountedObject<RtpReceiverInterface> {
public:
- AudioRtpReceiver(AudioTrackInterface* track,
+ AudioRtpReceiver(MediaStreamInterface* stream,
+ const std::string& track_id,
uint32_t ssrc,
AudioProviderInterface* provider);
@@ -41,6 +43,10 @@ class AudioRtpReceiver : public ObserverInterface,
// AudioSourceInterface::AudioObserver implementation
void OnSetVolume(double volume) override;
+ rtc::scoped_refptr<AudioTrackInterface> audio_track() const {
+ return track_.get();
+ }
+
// RtpReceiverInterface implementation
rtc::scoped_refptr<MediaStreamTrackInterface> track() const override {
return track_.get();
@@ -54,9 +60,9 @@ class AudioRtpReceiver : public ObserverInterface,
void Reconfigure();
const std::string id_;
- const rtc::scoped_refptr<AudioTrackInterface> track_;
const uint32_t ssrc_;
AudioProviderInterface* provider_; // Set to null in Stop().
+ const rtc::scoped_refptr<AudioTrackInterface> track_;
bool cached_track_enabled_;
};
« no previous file with comments | « webrtc/api/peerconnectioninterface_unittest.cc ('k') | webrtc/api/rtpreceiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698