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 | |
507 protected: | 504 protected: |
508 // Dtor protected as objects shouldn't be deleted via this interface. | 505 // Dtor protected as objects shouldn't be deleted via this interface. |
509 ~PeerConnectionObserver() {} | 506 ~PeerConnectionObserver() {} |
510 }; | 507 }; |
511 | 508 |
512 // PeerConnectionFactoryInterface is the factory interface use for creating | 509 // PeerConnectionFactoryInterface is the factory interface use for creating |
513 // PeerConnection, MediaStream and media tracks. | 510 // PeerConnection, MediaStream and media tracks. |
514 // PeerConnectionFactoryInterface will create required libjingle threads, | 511 // PeerConnectionFactoryInterface will create required libjingle threads, |
515 // socket and network manager factory classes for networking. | 512 // socket and network manager factory classes for networking. |
516 // If an application decides to provide its own threads and network | 513 // If an application decides to provide its own threads and network |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 CreatePeerConnectionFactory( | 621 CreatePeerConnectionFactory( |
625 rtc::Thread* worker_thread, | 622 rtc::Thread* worker_thread, |
626 rtc::Thread* signaling_thread, | 623 rtc::Thread* signaling_thread, |
627 AudioDeviceModule* default_adm, | 624 AudioDeviceModule* default_adm, |
628 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 625 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
629 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 626 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
630 | 627 |
631 } // namespace webrtc | 628 } // namespace webrtc |
632 | 629 |
633 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 630 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |