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

Side by Side Diff: talk/session/media/channel.h

Issue 1668493002: Replace uses of cricket::VideoRenderer by rtc::VideoSinkInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 | « talk/media/webrtc/webrtcvideoengine2_unittest.cc ('k') | talk/session/media/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 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "talk/session/media/mediamonitor.h" 43 #include "talk/session/media/mediamonitor.h"
44 #include "talk/session/media/mediasession.h" 44 #include "talk/session/media/mediasession.h"
45 #include "talk/session/media/rtcpmuxfilter.h" 45 #include "talk/session/media/rtcpmuxfilter.h"
46 #include "talk/session/media/srtpfilter.h" 46 #include "talk/session/media/srtpfilter.h"
47 #include "webrtc/audio/audio_sink.h" 47 #include "webrtc/audio/audio_sink.h"
48 #include "webrtc/base/asyncudpsocket.h" 48 #include "webrtc/base/asyncudpsocket.h"
49 #include "webrtc/base/criticalsection.h" 49 #include "webrtc/base/criticalsection.h"
50 #include "webrtc/base/network.h" 50 #include "webrtc/base/network.h"
51 #include "webrtc/base/sigslot.h" 51 #include "webrtc/base/sigslot.h"
52 #include "webrtc/base/window.h" 52 #include "webrtc/base/window.h"
53 #include "webrtc/media/base/videosinkinterface.h"
53 #include "webrtc/p2p/base/transportcontroller.h" 54 #include "webrtc/p2p/base/transportcontroller.h"
54 #include "webrtc/p2p/client/socketmonitor.h" 55 #include "webrtc/p2p/client/socketmonitor.h"
55 56
56 namespace webrtc { 57 namespace webrtc {
57 class AudioSinkInterface; 58 class AudioSinkInterface;
58 } // namespace webrtc 59 } // namespace webrtc
59 60
60 namespace cricket { 61 namespace cricket {
61 62
62 struct CryptoParams; 63 struct CryptoParams;
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 const std::string& content_name, 448 const std::string& content_name,
448 bool rtcp); 449 bool rtcp);
449 ~VideoChannel(); 450 ~VideoChannel();
450 bool Init(); 451 bool Init();
451 452
452 // downcasts a MediaChannel 453 // downcasts a MediaChannel
453 virtual VideoMediaChannel* media_channel() const { 454 virtual VideoMediaChannel* media_channel() const {
454 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel()); 455 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel());
455 } 456 }
456 457
457 bool SetRenderer(uint32_t ssrc, VideoRenderer* renderer); 458 bool SetSink(uint32_t ssrc, rtc::VideoSinkInterface<VideoFrame>* sink);
458 459
459 // TODO(pthatcher): Refactor to use a "capture id" instead of an 460 // TODO(pthatcher): Refactor to use a "capture id" instead of an
460 // ssrc here as the "key". 461 // ssrc here as the "key".
461 // Passes ownership of the capturer to the channel. 462 // Passes ownership of the capturer to the channel.
462 bool AddScreencast(uint32_t ssrc, VideoCapturer* capturer); 463 bool AddScreencast(uint32_t ssrc, VideoCapturer* capturer);
463 bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer); 464 bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer);
464 bool RemoveScreencast(uint32_t ssrc); 465 bool RemoveScreencast(uint32_t ssrc);
465 // True if we've added a screencast. Doesn't matter if the capturer 466 // True if we've added a screencast. Doesn't matter if the capturer
466 // has been started or not. 467 // has been started or not.
467 bool IsScreencasting(); 468 bool IsScreencasting();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 virtual void OnMessage(rtc::Message* pmsg); 501 virtual void OnMessage(rtc::Message* pmsg);
501 virtual void GetSrtpCryptoSuites(std::vector<int>* crypto_suites) const; 502 virtual void GetSrtpCryptoSuites(std::vector<int>* crypto_suites) const;
502 virtual void OnConnectionMonitorUpdate( 503 virtual void OnConnectionMonitorUpdate(
503 ConnectionMonitor* monitor, const std::vector<ConnectionInfo>& infos); 504 ConnectionMonitor* monitor, const std::vector<ConnectionInfo>& infos);
504 virtual void OnMediaMonitorUpdate( 505 virtual void OnMediaMonitorUpdate(
505 VideoMediaChannel* media_channel, const VideoMediaInfo& info); 506 VideoMediaChannel* media_channel, const VideoMediaInfo& info);
506 virtual void OnScreencastWindowEvent(uint32_t ssrc, rtc::WindowEvent event); 507 virtual void OnScreencastWindowEvent(uint32_t ssrc, rtc::WindowEvent event);
507 virtual void OnStateChange(VideoCapturer* capturer, CaptureState ev); 508 virtual void OnStateChange(VideoCapturer* capturer, CaptureState ev);
508 bool GetLocalSsrc(const VideoCapturer* capturer, uint32_t* ssrc); 509 bool GetLocalSsrc(const VideoCapturer* capturer, uint32_t* ssrc);
509 510
510 VideoRenderer* renderer_;
511 ScreencastMap screencast_capturers_; 511 ScreencastMap screencast_capturers_;
512 rtc::scoped_ptr<VideoMediaMonitor> media_monitor_; 512 rtc::scoped_ptr<VideoMediaMonitor> media_monitor_;
513 513
514 rtc::WindowEvent previous_we_; 514 rtc::WindowEvent previous_we_;
515 515
516 // Last VideoSendParameters sent down to the media_channel() via 516 // Last VideoSendParameters sent down to the media_channel() via
517 // SetSendParameters. 517 // SetSendParameters.
518 VideoSendParameters last_send_params_; 518 VideoSendParameters last_send_params_;
519 // Last VideoRecvParameters sent down to the media_channel() via 519 // Last VideoRecvParameters sent down to the media_channel() via
520 // SetRecvParameters. 520 // SetRecvParameters.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 // SetSendParameters. 637 // SetSendParameters.
638 DataSendParameters last_send_params_; 638 DataSendParameters last_send_params_;
639 // Last DataRecvParameters sent down to the media_channel() via 639 // Last DataRecvParameters sent down to the media_channel() via
640 // SetRecvParameters. 640 // SetRecvParameters.
641 DataRecvParameters last_recv_params_; 641 DataRecvParameters last_recv_params_;
642 }; 642 };
643 643
644 } // namespace cricket 644 } // namespace cricket
645 645
646 #endif // TALK_SESSION_MEDIA_CHANNEL_H_ 646 #endif // TALK_SESSION_MEDIA_CHANNEL_H_
OLDNEW
« no previous file with comments | « talk/media/webrtc/webrtcvideoengine2_unittest.cc ('k') | talk/session/media/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698