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

Side by Side Diff: talk/app/webrtc/mediastreaminterface.h

Issue 1522903002: Add a 'remote' property to MediaSourceInterface. Also adding an implementation to the relevant sour… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years 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
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 public: 78 public:
79 enum SourceState { 79 enum SourceState {
80 kInitializing, 80 kInitializing,
81 kLive, 81 kLive,
82 kEnded, 82 kEnded,
83 kMuted 83 kMuted
84 }; 84 };
85 85
86 virtual SourceState state() const = 0; 86 virtual SourceState state() const = 0;
87 87
88 virtual bool remote() const = 0;
89
88 protected: 90 protected:
89 virtual ~MediaSourceInterface() {} 91 virtual ~MediaSourceInterface() {}
90 }; 92 };
91 93
92 // Information about a track. 94 // Information about a track.
93 class MediaStreamTrackInterface : public rtc::RefCountInterface, 95 class MediaStreamTrackInterface : public rtc::RefCountInterface,
94 public NotifierInterface { 96 public NotifierInterface {
95 public: 97 public:
96 enum TrackState { 98 enum TrackState {
97 kInitializing, // Track is beeing negotiated. 99 kInitializing, // Track is beeing negotiated.
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; 271 virtual bool RemoveTrack(AudioTrackInterface* track) = 0;
270 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; 272 virtual bool RemoveTrack(VideoTrackInterface* track) = 0;
271 273
272 protected: 274 protected:
273 virtual ~MediaStreamInterface() {} 275 virtual ~MediaStreamInterface() {}
274 }; 276 };
275 277
276 } // namespace webrtc 278 } // namespace webrtc
277 279
278 #endif // TALK_APP_WEBRTC_MEDIASTREAMINTERFACE_H_ 280 #endif // TALK_APP_WEBRTC_MEDIASTREAMINTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698