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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 // New Ice candidate have been found. | 477 // New Ice candidate have been found. |
478 virtual void OnIceCandidate(const IceCandidateInterface* candidate) = 0; | 478 virtual void OnIceCandidate(const IceCandidateInterface* candidate) = 0; |
479 | 479 |
480 // TODO(bemasc): Remove this once callers transition to OnIceGatheringChange. | 480 // TODO(bemasc): Remove this once callers transition to OnIceGatheringChange. |
481 // All Ice candidates have been found. | 481 // All Ice candidates have been found. |
482 virtual void OnIceComplete() {} | 482 virtual void OnIceComplete() {} |
483 | 483 |
484 // Called when the ICE connection receiving status changes. | 484 // Called when the ICE connection receiving status changes. |
485 virtual void OnIceConnectionReceivingChange(bool receiving) {} | 485 virtual void OnIceConnectionReceivingChange(bool receiving) {} |
486 | 486 |
| 487 // Called when the first RTP packet is received. |
| 488 virtual void OnFirstMediaPacketReceived() {} |
| 489 |
487 protected: | 490 protected: |
488 // Dtor protected as objects shouldn't be deleted via this interface. | 491 // Dtor protected as objects shouldn't be deleted via this interface. |
489 ~PeerConnectionObserver() {} | 492 ~PeerConnectionObserver() {} |
490 }; | 493 }; |
491 | 494 |
492 // PeerConnectionFactoryInterface is the factory interface use for creating | 495 // PeerConnectionFactoryInterface is the factory interface use for creating |
493 // PeerConnection, MediaStream and media tracks. | 496 // PeerConnection, MediaStream and media tracks. |
494 // PeerConnectionFactoryInterface will create required libjingle threads, | 497 // PeerConnectionFactoryInterface will create required libjingle threads, |
495 // socket and network manager factory classes for networking. | 498 // socket and network manager factory classes for networking. |
496 // If an application decides to provide its own threads and network | 499 // If an application decides to provide its own threads and network |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 CreatePeerConnectionFactory( | 605 CreatePeerConnectionFactory( |
603 rtc::Thread* worker_thread, | 606 rtc::Thread* worker_thread, |
604 rtc::Thread* signaling_thread, | 607 rtc::Thread* signaling_thread, |
605 AudioDeviceModule* default_adm, | 608 AudioDeviceModule* default_adm, |
606 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 609 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
607 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 610 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
608 | 611 |
609 } // namespace webrtc | 612 } // namespace webrtc |
610 | 613 |
611 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 614 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |