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 transport sender. The cast sender | 5 // This is the main interface for the cast transport sender. It accepts encoded |
6 // handles the cast pipeline from encoded frames (both audio and video), to | 6 // frames (both audio and video), encrypts their encoded data, packetizes them |
7 // encryption, packetization and transport. | 7 // and feeds them into a transport (e.g., UDP). |
8 | 8 |
9 // Construction of the Cast Sender and the Cast Transport Sender should be done | 9 // Construction of the Cast Sender and the Cast Transport Sender should be done |
10 // in the following order: | 10 // in the following order: |
11 // 1. Create CastTransportSender. | 11 // 1. Create CastTransportSender. |
12 // 2. Create CastSender (accepts CastTransportSender as an input). | 12 // 2. Create CastSender (accepts CastTransportSender as an input). |
13 // 3. Call CastTransportSender::SetPacketReceiver to ensure that the packets | 13 // 3. Call CastTransportSender::SetPacketReceiver to ensure that the packets |
14 // received by the CastTransportSender will be sent to the CastSender. | 14 // received by the CastTransportSender will be sent to the CastSender. |
15 // Steps 3 can be done interchangeably. | 15 // Steps 3 can be done interchangeably. |
16 | 16 |
17 // Destruction: The CastTransportSender is assumed to be valid as long as the | 17 // Destruction: The CastTransportSender is assumed to be valid as long as the |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 virtual void ResendPackets( | 95 virtual void ResendPackets( |
96 bool is_audio, | 96 bool is_audio, |
97 const MissingFramesAndPacketsMap& missing_packets) = 0; | 97 const MissingFramesAndPacketsMap& missing_packets) = 0; |
98 }; | 98 }; |
99 | 99 |
100 } // namespace transport | 100 } // namespace transport |
101 } // namespace cast | 101 } // namespace cast |
102 } // namespace media | 102 } // namespace media |
103 | 103 |
104 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_SENDER_H_ | 104 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_SENDER_H_ |
OLD | NEW |