| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2  *  Copyright 2004 The WebRTC project authors. All Rights Reserved. | 
| 3  * | 3  * | 
| 4  *  Use of this source code is governed by a BSD-style license | 4  *  Use of this source code is governed by a BSD-style license | 
| 5  *  that can be found in the LICENSE file in the root of the source | 5  *  that can be found in the LICENSE file in the root of the source | 
| 6  *  tree. An additional intellectual property rights grant can be found | 6  *  tree. An additional intellectual property rights grant can be found | 
| 7  *  in the file PATENTS.  All contributing project authors may | 7  *  in the file PATENTS.  All contributing project authors may | 
| 8  *  be found in the AUTHORS file in the root of the source tree. | 8  *  be found in the AUTHORS file in the root of the source tree. | 
| 9  */ | 9  */ | 
| 10 | 10 | 
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 354   bool CanInsertDtmf(); | 354   bool CanInsertDtmf(); | 
| 355   // Send and/or play a DTMF |event| according to the |flags|. | 355   // Send and/or play a DTMF |event| according to the |flags|. | 
| 356   // The DTMF out-of-band signal will be used on sending. | 356   // The DTMF out-of-band signal will be used on sending. | 
| 357   // The |ssrc| should be either 0 or a valid send stream ssrc. | 357   // The |ssrc| should be either 0 or a valid send stream ssrc. | 
| 358   // The valid value for the |event| are 0 which corresponding to DTMF | 358   // The valid value for the |event| are 0 which corresponding to DTMF | 
| 359   // event 0-9, *, #, A-D. | 359   // event 0-9, *, #, A-D. | 
| 360   bool InsertDtmf(uint32_t ssrc, int event_code, int duration); | 360   bool InsertDtmf(uint32_t ssrc, int event_code, int duration); | 
| 361   bool SetOutputVolume(uint32_t ssrc, double volume); | 361   bool SetOutputVolume(uint32_t ssrc, double volume); | 
| 362   void SetRawAudioSink(uint32_t ssrc, | 362   void SetRawAudioSink(uint32_t ssrc, | 
| 363                        std::unique_ptr<webrtc::AudioSinkInterface> sink); | 363                        std::unique_ptr<webrtc::AudioSinkInterface> sink); | 
|  | 364   webrtc::RtpParameters GetRtpParameters(uint32_t ssrc) const; | 
|  | 365   bool SetRtpParameters(uint32_t ssrc, const webrtc::RtpParameters& parameters); | 
| 364 | 366 | 
| 365   // Get statistics about the current media session. | 367   // Get statistics about the current media session. | 
| 366   bool GetStats(VoiceMediaInfo* stats); | 368   bool GetStats(VoiceMediaInfo* stats); | 
| 367 | 369 | 
| 368   // Monitoring functions | 370   // Monitoring functions | 
| 369   sigslot::signal2<VoiceChannel*, const std::vector<ConnectionInfo>&> | 371   sigslot::signal2<VoiceChannel*, const std::vector<ConnectionInfo>&> | 
| 370       SignalConnectionMonitor; | 372       SignalConnectionMonitor; | 
| 371 | 373 | 
| 372   void StartMediaMonitor(int cms); | 374   void StartMediaMonitor(int cms); | 
| 373   void StopMediaMonitor(); | 375   void StopMediaMonitor(); | 
| 374   sigslot::signal2<VoiceChannel*, const VoiceMediaInfo&> SignalMediaMonitor; | 376   sigslot::signal2<VoiceChannel*, const VoiceMediaInfo&> SignalMediaMonitor; | 
| 375 | 377 | 
| 376   void StartAudioMonitor(int cms); | 378   void StartAudioMonitor(int cms); | 
| 377   void StopAudioMonitor(); | 379   void StopAudioMonitor(); | 
| 378   bool IsAudioMonitorRunning() const; | 380   bool IsAudioMonitorRunning() const; | 
| 379   sigslot::signal2<VoiceChannel*, const AudioInfo&> SignalAudioMonitor; | 381   sigslot::signal2<VoiceChannel*, const AudioInfo&> SignalAudioMonitor; | 
| 380 | 382 | 
| 381   int GetInputLevel_w(); | 383   int GetInputLevel_w(); | 
| 382   int GetOutputLevel_w(); | 384   int GetOutputLevel_w(); | 
| 383   void GetActiveStreams_w(AudioInfo::StreamList* actives); | 385   void GetActiveStreams_w(AudioInfo::StreamList* actives); | 
|  | 386   webrtc::RtpParameters GetRtpParameters_w(uint32_t ssrc) const; | 
|  | 387   bool SetRtpParameters_w(uint32_t ssrc, webrtc::RtpParameters parameters); | 
| 384 | 388 | 
| 385  private: | 389  private: | 
| 386   // overrides from BaseChannel | 390   // overrides from BaseChannel | 
| 387   virtual void OnChannelRead(TransportChannel* channel, | 391   virtual void OnChannelRead(TransportChannel* channel, | 
| 388                              const char* data, size_t len, | 392                              const char* data, size_t len, | 
| 389                              const rtc::PacketTime& packet_time, | 393                              const rtc::PacketTime& packet_time, | 
| 390                              int flags); | 394                              int flags); | 
| 391   virtual void ChangeState(); | 395   virtual void ChangeState(); | 
| 392   virtual const ContentInfo* GetFirstContent(const SessionDescription* sdesc); | 396   virtual const ContentInfo* GetFirstContent(const SessionDescription* sdesc); | 
| 393   virtual bool SetLocalContent_w(const MediaContentDescription* content, | 397   virtual bool SetLocalContent_w(const MediaContentDescription* content, | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 445   bool GetStats(VideoMediaInfo* stats); | 449   bool GetStats(VideoMediaInfo* stats); | 
| 446 | 450 | 
| 447   sigslot::signal2<VideoChannel*, const std::vector<ConnectionInfo>&> | 451   sigslot::signal2<VideoChannel*, const std::vector<ConnectionInfo>&> | 
| 448       SignalConnectionMonitor; | 452       SignalConnectionMonitor; | 
| 449 | 453 | 
| 450   void StartMediaMonitor(int cms); | 454   void StartMediaMonitor(int cms); | 
| 451   void StopMediaMonitor(); | 455   void StopMediaMonitor(); | 
| 452   sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor; | 456   sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor; | 
| 453 | 457 | 
| 454   bool SetVideoSend(uint32_t ssrc, bool enable, const VideoOptions* options); | 458   bool SetVideoSend(uint32_t ssrc, bool enable, const VideoOptions* options); | 
|  | 459   webrtc::RtpParameters GetRtpParameters(uint32_t ssrc) const; | 
|  | 460   bool SetRtpParameters(uint32_t ssrc, const webrtc::RtpParameters& parameters); | 
| 455 | 461 | 
| 456  private: | 462  private: | 
| 457   // overrides from BaseChannel | 463   // overrides from BaseChannel | 
| 458   virtual void ChangeState(); | 464   virtual void ChangeState(); | 
| 459   virtual const ContentInfo* GetFirstContent(const SessionDescription* sdesc); | 465   virtual const ContentInfo* GetFirstContent(const SessionDescription* sdesc); | 
| 460   virtual bool SetLocalContent_w(const MediaContentDescription* content, | 466   virtual bool SetLocalContent_w(const MediaContentDescription* content, | 
| 461                                  ContentAction action, | 467                                  ContentAction action, | 
| 462                                  std::string* error_desc); | 468                                  std::string* error_desc); | 
| 463   virtual bool SetRemoteContent_w(const MediaContentDescription* content, | 469   virtual bool SetRemoteContent_w(const MediaContentDescription* content, | 
| 464                                   ContentAction action, | 470                                   ContentAction action, | 
| 465                                   std::string* error_desc); | 471                                   std::string* error_desc); | 
| 466   bool GetStats_w(VideoMediaInfo* stats); | 472   bool GetStats_w(VideoMediaInfo* stats); | 
|  | 473   webrtc::RtpParameters GetRtpParameters_w(uint32_t ssrc) const; | 
|  | 474   bool SetRtpParameters_w(uint32_t ssrc, webrtc::RtpParameters parameters); | 
| 467 | 475 | 
| 468   virtual void OnMessage(rtc::Message* pmsg); | 476   virtual void OnMessage(rtc::Message* pmsg); | 
| 469   virtual void GetSrtpCryptoSuites(std::vector<int>* crypto_suites) const; | 477   virtual void GetSrtpCryptoSuites(std::vector<int>* crypto_suites) const; | 
| 470   virtual void OnConnectionMonitorUpdate( | 478   virtual void OnConnectionMonitorUpdate( | 
| 471       ConnectionMonitor* monitor, const std::vector<ConnectionInfo>& infos); | 479       ConnectionMonitor* monitor, const std::vector<ConnectionInfo>& infos); | 
| 472   virtual void OnMediaMonitorUpdate( | 480   virtual void OnMediaMonitorUpdate( | 
| 473       VideoMediaChannel* media_channel, const VideoMediaInfo& info); | 481       VideoMediaChannel* media_channel, const VideoMediaInfo& info); | 
| 474 | 482 | 
| 475   std::unique_ptr<VideoMediaMonitor> media_monitor_; | 483   std::unique_ptr<VideoMediaMonitor> media_monitor_; | 
| 476 | 484 | 
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 598   // SetSendParameters. | 606   // SetSendParameters. | 
| 599   DataSendParameters last_send_params_; | 607   DataSendParameters last_send_params_; | 
| 600   // Last DataRecvParameters sent down to the media_channel() via | 608   // Last DataRecvParameters sent down to the media_channel() via | 
| 601   // SetRecvParameters. | 609   // SetRecvParameters. | 
| 602   DataRecvParameters last_recv_params_; | 610   DataRecvParameters last_recv_params_; | 
| 603 }; | 611 }; | 
| 604 | 612 | 
| 605 }  // namespace cricket | 613 }  // namespace cricket | 
| 606 | 614 | 
| 607 #endif  // WEBRTC_PC_CHANNEL_H_ | 615 #endif  // WEBRTC_PC_CHANNEL_H_ | 
| OLD | NEW | 
|---|