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

Side by Side Diff: media/cast/cast_sender.h

Issue 387933005: Cast: Refactor RTCP handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « media/cast/cast_config.cc ('k') | media/cast/cast_sender_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This is the main interface for the cast sender. 5 // This is the main interface for the cast sender.
6 // 6 //
7 // The AudioFrameInput, VideoFrameInput and PacketReciever interfaces should 7 // The AudioFrameInput, VideoFrameInput and PacketReciever interfaces should
8 // be accessed from the main thread. 8 // be accessed from the main thread.
9 9
10 #ifndef MEDIA_CAST_CAST_SENDER_H_ 10 #ifndef MEDIA_CAST_CAST_SENDER_H_
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 CastTransportSender* const transport_sender); 66 CastTransportSender* const transport_sender);
67 67
68 virtual ~CastSender() {} 68 virtual ~CastSender() {}
69 69
70 // All video frames for the session should be inserted to this object. 70 // All video frames for the session should be inserted to this object.
71 virtual scoped_refptr<VideoFrameInput> video_frame_input() = 0; 71 virtual scoped_refptr<VideoFrameInput> video_frame_input() = 0;
72 72
73 // All audio frames for the session should be inserted to this object. 73 // All audio frames for the session should be inserted to this object.
74 virtual scoped_refptr<AudioFrameInput> audio_frame_input() = 0; 74 virtual scoped_refptr<AudioFrameInput> audio_frame_input() = 0;
75 75
76 // All RTCP packets for the session should be inserted to this object.
77 // This function and the callback must be called on the main thread.
78 virtual PacketReceiverCallback packet_receiver() = 0;
79
80 // Initialize the audio stack. Must be called in order to send audio frames. 76 // Initialize the audio stack. Must be called in order to send audio frames.
81 // Status of the initialization will be returned on cast_initialization_cb. 77 // Status of the initialization will be returned on cast_initialization_cb.
82 virtual void InitializeAudio( 78 virtual void InitializeAudio(
83 const AudioSenderConfig& audio_config, 79 const AudioSenderConfig& audio_config,
84 const CastInitializationCallback& cast_initialization_cb) = 0; 80 const CastInitializationCallback& cast_initialization_cb) = 0;
85 81
86 // Initialize the video stack. Must be called in order to send video frames. 82 // Initialize the video stack. Must be called in order to send video frames.
87 // Status of the initialization will be returned on cast_initialization_cb. 83 // Status of the initialization will be returned on cast_initialization_cb.
88 virtual void InitializeVideo( 84 virtual void InitializeVideo(
89 const VideoSenderConfig& video_config, 85 const VideoSenderConfig& video_config,
90 const CastInitializationCallback& cast_initialization_cb, 86 const CastInitializationCallback& cast_initialization_cb,
91 const CreateVideoEncodeAcceleratorCallback& create_vea_cb, 87 const CreateVideoEncodeAcceleratorCallback& create_vea_cb,
92 const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb) = 0; 88 const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb) = 0;
93 }; 89 };
94 90
95 } // namespace cast 91 } // namespace cast
96 } // namespace media 92 } // namespace media
97 93
98 #endif // MEDIA_CAST_CAST_SENDER_H_ 94 #endif // MEDIA_CAST_CAST_SENDER_H_
OLDNEW
« no previous file with comments | « media/cast/cast_config.cc ('k') | media/cast/cast_sender_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698