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