OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 27 matching lines...) Expand all Loading... |
38 | 38 |
39 } // namespace cricket | 39 } // namespace cricket |
40 | 40 |
41 namespace webrtc { | 41 namespace webrtc { |
42 | 42 |
43 // This interface is called by AudioTrackHandler classes in mediastreamhandler.h | 43 // This interface is called by AudioTrackHandler classes in mediastreamhandler.h |
44 // to change the settings of an audio track connected to certain PeerConnection. | 44 // to change the settings of an audio track connected to certain PeerConnection. |
45 class AudioProviderInterface { | 45 class AudioProviderInterface { |
46 public: | 46 public: |
47 // Enable/disable the audio playout of a remote audio track with |ssrc|. | 47 // Enable/disable the audio playout of a remote audio track with |ssrc|. |
48 virtual void SetAudioPlayout(uint32 ssrc, bool enable, | 48 virtual void SetAudioPlayout(uint32_t ssrc, |
| 49 bool enable, |
49 cricket::AudioRenderer* renderer) = 0; | 50 cricket::AudioRenderer* renderer) = 0; |
50 // Enable/disable sending audio on the local audio track with |ssrc|. | 51 // Enable/disable sending audio on the local audio track with |ssrc|. |
51 // When |enable| is true |options| should be applied to the audio track. | 52 // When |enable| is true |options| should be applied to the audio track. |
52 virtual void SetAudioSend(uint32 ssrc, bool enable, | 53 virtual void SetAudioSend(uint32_t ssrc, |
| 54 bool enable, |
53 const cricket::AudioOptions& options, | 55 const cricket::AudioOptions& options, |
54 cricket::AudioRenderer* renderer) = 0; | 56 cricket::AudioRenderer* renderer) = 0; |
55 | 57 |
56 // Sets the audio playout volume of a remote audio track with |ssrc|. | 58 // Sets the audio playout volume of a remote audio track with |ssrc|. |
57 // |volume| is in the range of [0, 10]. | 59 // |volume| is in the range of [0, 10]. |
58 virtual void SetAudioPlayoutVolume(uint32 ssrc, double volume) = 0; | 60 virtual void SetAudioPlayoutVolume(uint32_t ssrc, double volume) = 0; |
59 | 61 |
60 protected: | 62 protected: |
61 virtual ~AudioProviderInterface() {} | 63 virtual ~AudioProviderInterface() {} |
62 }; | 64 }; |
63 | 65 |
64 // This interface is called by VideoTrackHandler classes in mediastreamhandler.h | 66 // This interface is called by VideoTrackHandler classes in mediastreamhandler.h |
65 // to change the settings of a video track connected to a certain | 67 // to change the settings of a video track connected to a certain |
66 // PeerConnection. | 68 // PeerConnection. |
67 class VideoProviderInterface { | 69 class VideoProviderInterface { |
68 public: | 70 public: |
69 virtual bool SetCaptureDevice(uint32 ssrc, | 71 virtual bool SetCaptureDevice(uint32_t ssrc, |
70 cricket::VideoCapturer* camera) = 0; | 72 cricket::VideoCapturer* camera) = 0; |
71 // Enable/disable the video playout of a remote video track with |ssrc|. | 73 // Enable/disable the video playout of a remote video track with |ssrc|. |
72 virtual void SetVideoPlayout(uint32 ssrc, bool enable, | 74 virtual void SetVideoPlayout(uint32_t ssrc, |
| 75 bool enable, |
73 cricket::VideoRenderer* renderer) = 0; | 76 cricket::VideoRenderer* renderer) = 0; |
74 // Enable sending video on the local video track with |ssrc|. | 77 // Enable sending video on the local video track with |ssrc|. |
75 virtual void SetVideoSend(uint32 ssrc, bool enable, | 78 virtual void SetVideoSend(uint32_t ssrc, |
| 79 bool enable, |
76 const cricket::VideoOptions* options) = 0; | 80 const cricket::VideoOptions* options) = 0; |
77 | 81 |
78 protected: | 82 protected: |
79 virtual ~VideoProviderInterface() {} | 83 virtual ~VideoProviderInterface() {} |
80 }; | 84 }; |
81 | 85 |
82 } // namespace webrtc | 86 } // namespace webrtc |
83 | 87 |
84 #endif // TALK_APP_WEBRTC_MEDIASTREAMPROVIDER_H_ | 88 #endif // TALK_APP_WEBRTC_MEDIASTREAMPROVIDER_H_ |
OLD | NEW |