| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |