| 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 const std::vector<RtpHeaderExtension>& extensions, | 434 const std::vector<RtpHeaderExtension>& extensions, |
| 435 const std::string& name) { | 435 const std::string& name) { |
| 436 for (std::vector<RtpHeaderExtension>::const_iterator it = extensions.begin(); | 436 for (std::vector<RtpHeaderExtension>::const_iterator it = extensions.begin(); |
| 437 it != extensions.end(); ++it) { | 437 it != extensions.end(); ++it) { |
| 438 if (it->uri == name) | 438 if (it->uri == name) |
| 439 return &(*it); | 439 return &(*it); |
| 440 } | 440 } |
| 441 return NULL; | 441 return NULL; |
| 442 } | 442 } |
| 443 | 443 |
| 444 enum MediaChannelOptions { | |
| 445 // Tune the stream for conference mode. | |
| 446 OPT_CONFERENCE = 0x0001 | |
| 447 }; | |
| 448 | |
| 449 enum VoiceMediaChannelOptions { | |
| 450 // Tune the audio stream for vcs with different target levels. | |
| 451 OPT_AGC_MINUS_10DB = 0x80000000 | |
| 452 }; | |
| 453 | |
| 454 class MediaChannel : public sigslot::has_slots<> { | 444 class MediaChannel : public sigslot::has_slots<> { |
| 455 public: | 445 public: |
| 456 class NetworkInterface { | 446 class NetworkInterface { |
| 457 public: | 447 public: |
| 458 enum SocketType { ST_RTP, ST_RTCP }; | 448 enum SocketType { ST_RTP, ST_RTCP }; |
| 459 virtual bool SendPacket(rtc::Buffer* packet, | 449 virtual bool SendPacket(rtc::Buffer* packet, |
| 460 const rtc::PacketOptions& options) = 0; | 450 const rtc::PacketOptions& options) = 0; |
| 461 virtual bool SendRtcp(rtc::Buffer* packet, | 451 virtual bool SendRtcp(rtc::Buffer* packet, |
| 462 const rtc::PacketOptions& options) = 0; | 452 const rtc::PacketOptions& options) = 0; |
| 463 virtual int SetOption(SocketType type, rtc::Socket::Option opt, | 453 virtual int SetOption(SocketType type, rtc::Socket::Option opt, |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 // Signal when the media channel is ready to send the stream. Arguments are: | 1208 // Signal when the media channel is ready to send the stream. Arguments are: |
| 1219 // writable(bool) | 1209 // writable(bool) |
| 1220 sigslot::signal1<bool> SignalReadyToSend; | 1210 sigslot::signal1<bool> SignalReadyToSend; |
| 1221 // Signal for notifying that the remote side has closed the DataChannel. | 1211 // Signal for notifying that the remote side has closed the DataChannel. |
| 1222 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; | 1212 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; |
| 1223 }; | 1213 }; |
| 1224 | 1214 |
| 1225 } // namespace cricket | 1215 } // namespace cricket |
| 1226 | 1216 |
| 1227 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ | 1217 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ |
| OLD | NEW |