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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 // New Ice candidate have been found. | 494 // New Ice candidate have been found. |
495 virtual void OnIceCandidate(const IceCandidateInterface* candidate) = 0; | 495 virtual void OnIceCandidate(const IceCandidateInterface* candidate) = 0; |
496 | 496 |
497 // TODO(bemasc): Remove this once callers transition to OnIceGatheringChange. | 497 // TODO(bemasc): Remove this once callers transition to OnIceGatheringChange. |
498 // All Ice candidates have been found. | 498 // All Ice candidates have been found. |
499 virtual void OnIceComplete() {} | 499 virtual void OnIceComplete() {} |
500 | 500 |
501 // Called when the ICE connection receiving status changes. | 501 // Called when the ICE connection receiving status changes. |
502 virtual void OnIceConnectionReceivingChange(bool receiving) {} | 502 virtual void OnIceConnectionReceivingChange(bool receiving) {} |
503 | 503 |
| 504 // Called when the first RTP packet is received. |
| 505 virtual void OnFirstMediaPacketReceived() {} |
| 506 |
504 protected: | 507 protected: |
505 // Dtor protected as objects shouldn't be deleted via this interface. | 508 // Dtor protected as objects shouldn't be deleted via this interface. |
506 ~PeerConnectionObserver() {} | 509 ~PeerConnectionObserver() {} |
507 }; | 510 }; |
508 | 511 |
509 // PeerConnectionFactoryInterface is the factory interface use for creating | 512 // PeerConnectionFactoryInterface is the factory interface use for creating |
510 // PeerConnection, MediaStream and media tracks. | 513 // PeerConnection, MediaStream and media tracks. |
511 // PeerConnectionFactoryInterface will create required libjingle threads, | 514 // PeerConnectionFactoryInterface will create required libjingle threads, |
512 // socket and network manager factory classes for networking. | 515 // socket and network manager factory classes for networking. |
513 // If an application decides to provide its own threads and network | 516 // If an application decides to provide its own threads and network |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 CreatePeerConnectionFactory( | 624 CreatePeerConnectionFactory( |
622 rtc::Thread* worker_thread, | 625 rtc::Thread* worker_thread, |
623 rtc::Thread* signaling_thread, | 626 rtc::Thread* signaling_thread, |
624 AudioDeviceModule* default_adm, | 627 AudioDeviceModule* default_adm, |
625 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 628 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
626 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 629 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
627 | 630 |
628 } // namespace webrtc | 631 } // namespace webrtc |
629 | 632 |
630 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 633 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |