OLD | NEW |
---|---|
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 const AudioSenderConfig& audio_config, | 79 const AudioSenderConfig& audio_config, |
80 const CastInitializationCallback& cast_initialization_cb) = 0; | 80 const CastInitializationCallback& cast_initialization_cb) = 0; |
81 | 81 |
82 // 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. |
83 // Status of the initialization will be returned on cast_initialization_cb. | 83 // Status of the initialization will be returned on cast_initialization_cb. |
84 virtual void InitializeVideo( | 84 virtual void InitializeVideo( |
85 const VideoSenderConfig& video_config, | 85 const VideoSenderConfig& video_config, |
86 const CastInitializationCallback& cast_initialization_cb, | 86 const CastInitializationCallback& cast_initialization_cb, |
87 const CreateVideoEncodeAcceleratorCallback& create_vea_cb, | 87 const CreateVideoEncodeAcceleratorCallback& create_vea_cb, |
88 const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb) = 0; | 88 const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb) = 0; |
89 | |
90 // Change the target delay. This is only valid if the receiver | |
91 // supports the "extra_target_delay" rtp extension. | |
Alpha Left Google
2014/08/20 20:17:05
nit: "adaptive_playout_delay"
hubbe
2014/08/20 21:42:01
Done.
| |
92 virtual void SetTargetPlayoutDelay( | |
93 base::TimeDelta new_target_playout_delay) = 0; | |
89 }; | 94 }; |
90 | 95 |
91 } // namespace cast | 96 } // namespace cast |
92 } // namespace media | 97 } // namespace media |
93 | 98 |
94 #endif // MEDIA_CAST_CAST_SENDER_H_ | 99 #endif // MEDIA_CAST_CAST_SENDER_H_ |
OLD | NEW |