OLD | NEW |
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 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1160 ERROR_REC_SRTP_ERROR, // Generic sender SRTP failure. | 1160 ERROR_REC_SRTP_ERROR, // Generic sender SRTP failure. |
1161 ERROR_REC_SRTP_AUTH_FAILED, // Failed to authenticate packets. | 1161 ERROR_REC_SRTP_AUTH_FAILED, // Failed to authenticate packets. |
1162 ERROR_REC_CPU_MAX_CANT_DOWNGRADE, // Can't downgrade capture anymore. | 1162 ERROR_REC_CPU_MAX_CANT_DOWNGRADE, // Can't downgrade capture anymore. |
1163 ERROR_PLAY_SRTP_ERROR = 200, // Generic receiver SRTP failure. | 1163 ERROR_PLAY_SRTP_ERROR = 200, // Generic receiver SRTP failure. |
1164 ERROR_PLAY_SRTP_AUTH_FAILED, // Failed to authenticate packets. | 1164 ERROR_PLAY_SRTP_AUTH_FAILED, // Failed to authenticate packets. |
1165 ERROR_PLAY_SRTP_REPLAY, // Packet replay detected. | 1165 ERROR_PLAY_SRTP_REPLAY, // Packet replay detected. |
1166 }; | 1166 }; |
1167 | 1167 |
1168 VideoMediaChannel() : renderer_(NULL) {} | 1168 VideoMediaChannel() : renderer_(NULL) {} |
1169 virtual ~VideoMediaChannel() {} | 1169 virtual ~VideoMediaChannel() {} |
1170 // Allow video channel to unhook itself from an associated voice channel. | |
1171 virtual void DetachVoiceChannel() = 0; | |
1172 // TODO(pthatcher): Remove SetSendCodecs, | 1170 // TODO(pthatcher): Remove SetSendCodecs, |
1173 // SetSendRtpHeaderExtensions, SetMaxSendBandwidth, and SetOptions | 1171 // SetSendRtpHeaderExtensions, SetMaxSendBandwidth, and SetOptions |
1174 // once all implementations implement SetSendParameters. | 1172 // once all implementations implement SetSendParameters. |
1175 virtual bool SetSendParameters(const VideoSendParameters& params) { | 1173 virtual bool SetSendParameters(const VideoSendParameters& params) { |
1176 return (SetSendCodecs(params.codecs) && | 1174 return (SetSendCodecs(params.codecs) && |
1177 SetSendRtpHeaderExtensions(params.extensions) && | 1175 SetSendRtpHeaderExtensions(params.extensions) && |
1178 SetMaxSendBandwidth(params.max_bandwidth_bps) && | 1176 SetMaxSendBandwidth(params.max_bandwidth_bps) && |
1179 SetOptions(params.options)); | 1177 SetOptions(params.options)); |
1180 } | 1178 } |
1181 // TODO(pthatcher): Remove SetRecvCodecs and | 1179 // TODO(pthatcher): Remove SetRecvCodecs and |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1360 // Signal when the media channel is ready to send the stream. Arguments are: | 1358 // Signal when the media channel is ready to send the stream. Arguments are: |
1361 // writable(bool) | 1359 // writable(bool) |
1362 sigslot::signal1<bool> SignalReadyToSend; | 1360 sigslot::signal1<bool> SignalReadyToSend; |
1363 // Signal for notifying that the remote side has closed the DataChannel. | 1361 // Signal for notifying that the remote side has closed the DataChannel. |
1364 sigslot::signal1<uint32> SignalStreamClosedRemotely; | 1362 sigslot::signal1<uint32> SignalStreamClosedRemotely; |
1365 }; | 1363 }; |
1366 | 1364 |
1367 } // namespace cricket | 1365 } // namespace cricket |
1368 | 1366 |
1369 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ | 1367 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ |
OLD | NEW |