| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 // All video frames for the session should be inserted to this object. | 98 // All video frames for the session should be inserted to this object. |
| 99 virtual scoped_refptr<VideoFrameInput> video_frame_input() = 0; | 99 virtual scoped_refptr<VideoFrameInput> video_frame_input() = 0; |
| 100 | 100 |
| 101 // All audio frames for the session should be inserted to this object. | 101 // All audio frames for the session should be inserted to this object. |
| 102 virtual scoped_refptr<AudioFrameInput> audio_frame_input() = 0; | 102 virtual scoped_refptr<AudioFrameInput> audio_frame_input() = 0; |
| 103 | 103 |
| 104 // Initialize the audio stack. Must be called in order to send audio frames. | 104 // Initialize the audio stack. Must be called in order to send audio frames. |
| 105 // |status_change_cb| will be run as operational status changes. | 105 // |status_change_cb| will be run as operational status changes. |
| 106 virtual void InitializeAudio( | 106 virtual void InitializeAudio( |
| 107 const AudioSenderConfig& audio_config, | 107 const FrameSenderConfig& audio_config, |
| 108 const StatusChangeCallback& status_change_cb) = 0; | 108 const StatusChangeCallback& status_change_cb) = 0; |
| 109 | 109 |
| 110 // Initialize the video stack. Must be called in order to send video frames. | 110 // Initialize the video stack. Must be called in order to send video frames. |
| 111 // |status_change_cb| will be run as operational status changes. | 111 // |status_change_cb| will be run as operational status changes. |
| 112 // | 112 // |
| 113 // TODO(miu): Remove the VEA-specific callbacks. http://crbug.com/454029 | 113 // TODO(miu): Remove the VEA-specific callbacks. http://crbug.com/454029 |
| 114 virtual void InitializeVideo( | 114 virtual void InitializeVideo( |
| 115 const VideoSenderConfig& video_config, | 115 const FrameSenderConfig& video_config, |
| 116 const StatusChangeCallback& status_change_cb, | 116 const StatusChangeCallback& status_change_cb, |
| 117 const CreateVideoEncodeAcceleratorCallback& create_vea_cb, | 117 const CreateVideoEncodeAcceleratorCallback& create_vea_cb, |
| 118 const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb) = 0; | 118 const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb) = 0; |
| 119 | 119 |
| 120 // Change the target delay. This is only valid if the receiver | 120 // Change the target delay. This is only valid if the receiver |
| 121 // supports the "adaptive_target_delay" rtp extension. | 121 // supports the "adaptive_target_delay" rtp extension. |
| 122 virtual void SetTargetPlayoutDelay( | 122 virtual void SetTargetPlayoutDelay( |
| 123 base::TimeDelta new_target_playout_delay) = 0; | 123 base::TimeDelta new_target_playout_delay) = 0; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace cast | 126 } // namespace cast |
| 127 } // namespace media | 127 } // namespace media |
| 128 | 128 |
| 129 #endif // MEDIA_CAST_CAST_SENDER_H_ | 129 #endif // MEDIA_CAST_CAST_SENDER_H_ |
| OLD | NEW |