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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 319 |
320 // Notifications from WebRtcSession relating to BaseChannels. | 320 // Notifications from WebRtcSession relating to BaseChannels. |
321 void OnVoiceChannelDestroyed(); | 321 void OnVoiceChannelDestroyed(); |
322 void OnVideoChannelDestroyed(); | 322 void OnVideoChannelDestroyed(); |
323 void OnDataChannelCreated(); | 323 void OnDataChannelCreated(); |
324 void OnDataChannelDestroyed(); | 324 void OnDataChannelDestroyed(); |
325 // Called when the cricket::DataChannel receives a message indicating that a | 325 // Called when the cricket::DataChannel receives a message indicating that a |
326 // webrtc::DataChannel should be opened. | 326 // webrtc::DataChannel should be opened. |
327 void OnDataChannelOpenMessage(const std::string& label, | 327 void OnDataChannelOpenMessage(const std::string& label, |
328 const InternalDataChannelInit& config); | 328 const InternalDataChannelInit& config); |
| 329 void OnFirstMediaPacketReceived(); |
329 | 330 |
330 RtpSenderInterface* FindSenderById(const std::string& id); | 331 RtpSenderInterface* FindSenderById(const std::string& id); |
331 | 332 |
332 std::vector<rtc::scoped_refptr<RtpSenderInterface>>::iterator | 333 std::vector<rtc::scoped_refptr<RtpSenderInterface>>::iterator |
333 FindSenderForTrack(MediaStreamTrackInterface* track); | 334 FindSenderForTrack(MediaStreamTrackInterface* track); |
334 std::vector<rtc::scoped_refptr<RtpReceiverInterface>>::iterator | 335 std::vector<rtc::scoped_refptr<RtpReceiverInterface>>::iterator |
335 FindReceiverForTrack(MediaStreamTrackInterface* track); | 336 FindReceiverForTrack(MediaStreamTrackInterface* track); |
336 | 337 |
337 TrackInfos* GetRemoteTracks(cricket::MediaType media_type); | 338 TrackInfos* GetRemoteTracks(cricket::MediaType media_type); |
338 TrackInfos* GetLocalTracks(cricket::MediaType media_type); | 339 TrackInfos* GetLocalTracks(cricket::MediaType media_type); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 // because its destruction fires signals (such as VoiceChannelDestroyed) | 392 // because its destruction fires signals (such as VoiceChannelDestroyed) |
392 // which will trigger some final actions in PeerConnection... | 393 // which will trigger some final actions in PeerConnection... |
393 rtc::scoped_ptr<WebRtcSession> session_; | 394 rtc::scoped_ptr<WebRtcSession> session_; |
394 // ... But stats_ depends on session_ so it should be destroyed even earlier. | 395 // ... But stats_ depends on session_ so it should be destroyed even earlier. |
395 rtc::scoped_ptr<StatsCollector> stats_; | 396 rtc::scoped_ptr<StatsCollector> stats_; |
396 }; | 397 }; |
397 | 398 |
398 } // namespace webrtc | 399 } // namespace webrtc |
399 | 400 |
400 #endif // TALK_APP_WEBRTC_PEERCONNECTION_H_ | 401 #endif // TALK_APP_WEBRTC_PEERCONNECTION_H_ |
OLD | NEW |