Chromium Code Reviews| 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 20 matching lines...) Expand all Loading... | |
| 31 #include <string> | 31 #include <string> |
| 32 #include <vector> | 32 #include <vector> |
| 33 #include <map> | 33 #include <map> |
| 34 #include <set> | 34 #include <set> |
| 35 #include <utility> | 35 #include <utility> |
| 36 | 36 |
| 37 #include "talk/media/base/mediachannel.h" | 37 #include "talk/media/base/mediachannel.h" |
| 38 #include "talk/media/base/mediaengine.h" | 38 #include "talk/media/base/mediaengine.h" |
| 39 #include "talk/media/base/streamparams.h" | 39 #include "talk/media/base/streamparams.h" |
| 40 #include "talk/media/base/videocapturer.h" | 40 #include "talk/media/base/videocapturer.h" |
| 41 #include "webrtc/p2p/base/transportcontroller.h" | |
| 42 #include "webrtc/p2p/client/socketmonitor.h" | |
| 43 #include "talk/session/media/audiomonitor.h" | 41 #include "talk/session/media/audiomonitor.h" |
| 44 #include "talk/session/media/bundlefilter.h" | 42 #include "talk/session/media/bundlefilter.h" |
| 45 #include "talk/session/media/mediamonitor.h" | 43 #include "talk/session/media/mediamonitor.h" |
| 46 #include "talk/session/media/mediasession.h" | 44 #include "talk/session/media/mediasession.h" |
| 47 #include "talk/session/media/rtcpmuxfilter.h" | 45 #include "talk/session/media/rtcpmuxfilter.h" |
| 48 #include "talk/session/media/srtpfilter.h" | 46 #include "talk/session/media/srtpfilter.h" |
| 49 #include "webrtc/base/asyncudpsocket.h" | 47 #include "webrtc/base/asyncudpsocket.h" |
| 50 #include "webrtc/base/criticalsection.h" | 48 #include "webrtc/base/criticalsection.h" |
| 51 #include "webrtc/base/network.h" | 49 #include "webrtc/base/network.h" |
| 52 #include "webrtc/base/sigslot.h" | 50 #include "webrtc/base/sigslot.h" |
| 53 #include "webrtc/base/window.h" | 51 #include "webrtc/base/window.h" |
| 52 #include "webrtc/p2p/base/transportcontroller.h" | |
| 53 #include "webrtc/p2p/client/socketmonitor.h" | |
| 54 | 54 |
| 55 namespace cricket { | 55 namespace cricket { |
| 56 | 56 |
| 57 struct CryptoParams; | 57 struct CryptoParams; |
| 58 class MediaContentDescription; | 58 class MediaContentDescription; |
| 59 struct ViewRequest; | 59 struct ViewRequest; |
| 60 | 60 |
| 61 enum SinkType { | 61 enum SinkType { |
| 62 SINK_PRE_CRYPTO, // Sink packets before encryption or after decryption. | 62 SINK_PRE_CRYPTO, // Sink packets before encryption or after decryption. |
| 63 SINK_POST_CRYPTO // Sink packets after encryption or before decryption. | 63 SINK_POST_CRYPTO // Sink packets after encryption or before decryption. |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 360 | 360 |
| 361 // Returns if the telephone-event has been negotiated. | 361 // Returns if the telephone-event has been negotiated. |
| 362 bool CanInsertDtmf(); | 362 bool CanInsertDtmf(); |
| 363 // Send and/or play a DTMF |event| according to the |flags|. | 363 // Send and/or play a DTMF |event| according to the |flags|. |
| 364 // The DTMF out-of-band signal will be used on sending. | 364 // The DTMF out-of-band signal will be used on sending. |
| 365 // The |ssrc| should be either 0 or a valid send stream ssrc. | 365 // The |ssrc| should be either 0 or a valid send stream ssrc. |
| 366 // The valid value for the |event| are 0 which corresponding to DTMF | 366 // The valid value for the |event| are 0 which corresponding to DTMF |
| 367 // event 0-9, *, #, A-D. | 367 // event 0-9, *, #, A-D. |
| 368 bool InsertDtmf(uint32_t ssrc, int event_code, int duration); | 368 bool InsertDtmf(uint32_t ssrc, int event_code, int duration); |
| 369 bool SetOutputVolume(uint32_t ssrc, double volume); | 369 bool SetOutputVolume(uint32_t ssrc, double volume); |
| 370 void SetRawAudioSink(uint32_t ssrc, | |
| 371 rtc::scoped_ptr<webrtc::AudioSinkInterface> sink); | |
|
the sun
2015/12/11 16:32:05
This file should forward declare AudioSinkInterfac
tommi (sloooow) - chröme
2015/12/11 17:51:18
Added fwd decl. Just so that I'm not misunderstan
the sun
2015/12/11 19:46:28
The inclusion of AudioSinkInterface must have been
| |
| 372 | |
| 370 // Get statistics about the current media session. | 373 // Get statistics about the current media session. |
| 371 bool GetStats(VoiceMediaInfo* stats); | 374 bool GetStats(VoiceMediaInfo* stats); |
| 372 | 375 |
| 373 // Monitoring functions | 376 // Monitoring functions |
| 374 sigslot::signal2<VoiceChannel*, const std::vector<ConnectionInfo>&> | 377 sigslot::signal2<VoiceChannel*, const std::vector<ConnectionInfo>&> |
| 375 SignalConnectionMonitor; | 378 SignalConnectionMonitor; |
| 376 | 379 |
| 377 void StartMediaMonitor(int cms); | 380 void StartMediaMonitor(int cms); |
| 378 void StopMediaMonitor(); | 381 void StopMediaMonitor(); |
| 379 sigslot::signal2<VoiceChannel*, const VoiceMediaInfo&> SignalMediaMonitor; | 382 sigslot::signal2<VoiceChannel*, const VoiceMediaInfo&> SignalMediaMonitor; |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 636 // SetSendParameters. | 639 // SetSendParameters. |
| 637 DataSendParameters last_send_params_; | 640 DataSendParameters last_send_params_; |
| 638 // Last DataRecvParameters sent down to the media_channel() via | 641 // Last DataRecvParameters sent down to the media_channel() via |
| 639 // SetRecvParameters. | 642 // SetRecvParameters. |
| 640 DataRecvParameters last_recv_params_; | 643 DataRecvParameters last_recv_params_; |
| 641 }; | 644 }; |
| 642 | 645 |
| 643 } // namespace cricket | 646 } // namespace cricket |
| 644 | 647 |
| 645 #endif // TALK_SESSION_MEDIA_CHANNEL_H_ | 648 #endif // TALK_SESSION_MEDIA_CHANNEL_H_ |
| OLD | NEW |