Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Side by Side Diff: webrtc/pc/channel.h

Issue 1917193008: Adding getParameters/setParameters APIs to RtpReceiver. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: objc compile errors Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine_unittest.cc ('k') | webrtc/pc/channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 bool CanInsertDtmf(); 396 bool CanInsertDtmf();
397 // Send and/or play a DTMF |event| according to the |flags|. 397 // Send and/or play a DTMF |event| according to the |flags|.
398 // The DTMF out-of-band signal will be used on sending. 398 // The DTMF out-of-band signal will be used on sending.
399 // The |ssrc| should be either 0 or a valid send stream ssrc. 399 // The |ssrc| should be either 0 or a valid send stream ssrc.
400 // The valid value for the |event| are 0 which corresponding to DTMF 400 // The valid value for the |event| are 0 which corresponding to DTMF
401 // event 0-9, *, #, A-D. 401 // event 0-9, *, #, A-D.
402 bool InsertDtmf(uint32_t ssrc, int event_code, int duration); 402 bool InsertDtmf(uint32_t ssrc, int event_code, int duration);
403 bool SetOutputVolume(uint32_t ssrc, double volume); 403 bool SetOutputVolume(uint32_t ssrc, double volume);
404 void SetRawAudioSink(uint32_t ssrc, 404 void SetRawAudioSink(uint32_t ssrc,
405 std::unique_ptr<webrtc::AudioSinkInterface> sink); 405 std::unique_ptr<webrtc::AudioSinkInterface> sink);
406 webrtc::RtpParameters GetRtpParameters(uint32_t ssrc) const; 406 webrtc::RtpParameters GetRtpSendParameters(uint32_t ssrc) const;
407 bool SetRtpParameters(uint32_t ssrc, const webrtc::RtpParameters& parameters); 407 bool SetRtpSendParameters(uint32_t ssrc,
408 const webrtc::RtpParameters& parameters);
409 webrtc::RtpParameters GetRtpReceiveParameters(uint32_t ssrc) const;
410 bool SetRtpReceiveParameters(uint32_t ssrc,
411 const webrtc::RtpParameters& parameters);
408 412
409 // Get statistics about the current media session. 413 // Get statistics about the current media session.
410 bool GetStats(VoiceMediaInfo* stats); 414 bool GetStats(VoiceMediaInfo* stats);
411 415
412 // Monitoring functions 416 // Monitoring functions
413 sigslot::signal2<VoiceChannel*, const std::vector<ConnectionInfo>&> 417 sigslot::signal2<VoiceChannel*, const std::vector<ConnectionInfo>&>
414 SignalConnectionMonitor; 418 SignalConnectionMonitor;
415 419
416 void StartMediaMonitor(int cms); 420 void StartMediaMonitor(int cms);
417 void StopMediaMonitor(); 421 void StopMediaMonitor();
418 sigslot::signal2<VoiceChannel*, const VoiceMediaInfo&> SignalMediaMonitor; 422 sigslot::signal2<VoiceChannel*, const VoiceMediaInfo&> SignalMediaMonitor;
419 423
420 void StartAudioMonitor(int cms); 424 void StartAudioMonitor(int cms);
421 void StopAudioMonitor(); 425 void StopAudioMonitor();
422 bool IsAudioMonitorRunning() const; 426 bool IsAudioMonitorRunning() const;
423 sigslot::signal2<VoiceChannel*, const AudioInfo&> SignalAudioMonitor; 427 sigslot::signal2<VoiceChannel*, const AudioInfo&> SignalAudioMonitor;
424 428
425 int GetInputLevel_w(); 429 int GetInputLevel_w();
426 int GetOutputLevel_w(); 430 int GetOutputLevel_w();
427 void GetActiveStreams_w(AudioInfo::StreamList* actives); 431 void GetActiveStreams_w(AudioInfo::StreamList* actives);
428 webrtc::RtpParameters GetRtpParameters_w(uint32_t ssrc) const; 432 webrtc::RtpParameters GetRtpSendParameters_w(uint32_t ssrc) const;
429 bool SetRtpParameters_w(uint32_t ssrc, webrtc::RtpParameters parameters); 433 bool SetRtpSendParameters_w(uint32_t ssrc, webrtc::RtpParameters parameters);
434 webrtc::RtpParameters GetRtpReceiveParameters_w(uint32_t ssrc) const;
435 bool SetRtpReceiveParameters_w(uint32_t ssrc,
436 webrtc::RtpParameters parameters);
430 437
431 private: 438 private:
432 // overrides from BaseChannel 439 // overrides from BaseChannel
433 void OnChannelRead(TransportChannel* channel, 440 void OnChannelRead(TransportChannel* channel,
434 const char* data, 441 const char* data,
435 size_t len, 442 size_t len,
436 const rtc::PacketTime& packet_time, 443 const rtc::PacketTime& packet_time,
437 int flags) override; 444 int flags) override;
438 void ChangeState_w() override; 445 void ChangeState_w() override;
439 const ContentInfo* GetFirstContent(const SessionDescription* sdesc) override; 446 const ContentInfo* GetFirstContent(const SessionDescription* sdesc) override;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 bool GetStats(VideoMediaInfo* stats); 504 bool GetStats(VideoMediaInfo* stats);
498 505
499 sigslot::signal2<VideoChannel*, const std::vector<ConnectionInfo>&> 506 sigslot::signal2<VideoChannel*, const std::vector<ConnectionInfo>&>
500 SignalConnectionMonitor; 507 SignalConnectionMonitor;
501 508
502 void StartMediaMonitor(int cms); 509 void StartMediaMonitor(int cms);
503 void StopMediaMonitor(); 510 void StopMediaMonitor();
504 sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor; 511 sigslot::signal2<VideoChannel*, const VideoMediaInfo&> SignalMediaMonitor;
505 512
506 bool SetVideoSend(uint32_t ssrc, bool enable, const VideoOptions* options); 513 bool SetVideoSend(uint32_t ssrc, bool enable, const VideoOptions* options);
507 webrtc::RtpParameters GetRtpParameters(uint32_t ssrc) const; 514 webrtc::RtpParameters GetRtpSendParameters(uint32_t ssrc) const;
508 bool SetRtpParameters(uint32_t ssrc, const webrtc::RtpParameters& parameters); 515 bool SetRtpSendParameters(uint32_t ssrc,
516 const webrtc::RtpParameters& parameters);
517 webrtc::RtpParameters GetRtpReceiveParameters(uint32_t ssrc) const;
518 bool SetRtpReceiveParameters(uint32_t ssrc,
519 const webrtc::RtpParameters& parameters);
509 520
510 private: 521 private:
511 // overrides from BaseChannel 522 // overrides from BaseChannel
512 void ChangeState_w() override; 523 void ChangeState_w() override;
513 const ContentInfo* GetFirstContent(const SessionDescription* sdesc) override; 524 const ContentInfo* GetFirstContent(const SessionDescription* sdesc) override;
514 bool SetLocalContent_w(const MediaContentDescription* content, 525 bool SetLocalContent_w(const MediaContentDescription* content,
515 ContentAction action, 526 ContentAction action,
516 std::string* error_desc) override; 527 std::string* error_desc) override;
517 bool SetRemoteContent_w(const MediaContentDescription* content, 528 bool SetRemoteContent_w(const MediaContentDescription* content,
518 ContentAction action, 529 ContentAction action,
519 std::string* error_desc) override; 530 std::string* error_desc) override;
520 bool GetStats_w(VideoMediaInfo* stats); 531 bool GetStats_w(VideoMediaInfo* stats);
521 webrtc::RtpParameters GetRtpParameters_w(uint32_t ssrc) const; 532 webrtc::RtpParameters GetRtpSendParameters_w(uint32_t ssrc) const;
522 bool SetRtpParameters_w(uint32_t ssrc, webrtc::RtpParameters parameters); 533 bool SetRtpSendParameters_w(uint32_t ssrc, webrtc::RtpParameters parameters);
534 webrtc::RtpParameters GetRtpReceiveParameters_w(uint32_t ssrc) const;
535 bool SetRtpReceiveParameters_w(uint32_t ssrc,
536 webrtc::RtpParameters parameters);
523 537
524 void OnMessage(rtc::Message* pmsg) override; 538 void OnMessage(rtc::Message* pmsg) override;
525 void GetSrtpCryptoSuites_n(std::vector<int>* crypto_suites) const override; 539 void GetSrtpCryptoSuites_n(std::vector<int>* crypto_suites) const override;
526 void OnConnectionMonitorUpdate( 540 void OnConnectionMonitorUpdate(
527 ConnectionMonitor* monitor, 541 ConnectionMonitor* monitor,
528 const std::vector<ConnectionInfo>& infos) override; 542 const std::vector<ConnectionInfo>& infos) override;
529 void OnMediaMonitorUpdate(VideoMediaChannel* media_channel, 543 void OnMediaMonitorUpdate(VideoMediaChannel* media_channel,
530 const VideoMediaInfo& info); 544 const VideoMediaInfo& info);
531 545
532 std::unique_ptr<VideoMediaMonitor> media_monitor_; 546 std::unique_ptr<VideoMediaMonitor> media_monitor_;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 // SetSendParameters. 671 // SetSendParameters.
658 DataSendParameters last_send_params_; 672 DataSendParameters last_send_params_;
659 // Last DataRecvParameters sent down to the media_channel() via 673 // Last DataRecvParameters sent down to the media_channel() via
660 // SetRecvParameters. 674 // SetRecvParameters.
661 DataRecvParameters last_recv_params_; 675 DataRecvParameters last_recv_params_;
662 }; 676 };
663 677
664 } // namespace cricket 678 } // namespace cricket
665 679
666 #endif // WEBRTC_PC_CHANNEL_H_ 680 #endif // WEBRTC_PC_CHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine_unittest.cc ('k') | webrtc/pc/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698