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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 // TODO(deadbeef): These interfaces are effectively just a way for the | 49 // TODO(deadbeef): These interfaces are effectively just a way for the |
50 // RtpSenders/Receivers to get to the BaseChannels. These interfaces should be | 50 // RtpSenders/Receivers to get to the BaseChannels. These interfaces should be |
51 // refactored away eventually, as the classes converge. | 51 // refactored away eventually, as the classes converge. |
52 | 52 |
53 // This interface is called by AudioTrackHandler classes in mediastreamhandler.h | 53 // This interface is called by AudioTrackHandler classes in mediastreamhandler.h |
54 // to change the settings of an audio track connected to certain PeerConnection. | 54 // to change the settings of an audio track connected to certain PeerConnection. |
55 class AudioProviderInterface { | 55 class AudioProviderInterface { |
56 public: | 56 public: |
57 // Enable/disable the audio playout of a remote audio track with |ssrc|. | 57 // Enable/disable the audio playout of a remote audio track with |ssrc|. |
58 virtual void SetAudioPlayout(uint32 ssrc, bool enable, | 58 virtual void SetAudioPlayout(uint32_t ssrc, |
| 59 bool enable, |
59 cricket::AudioRenderer* renderer) = 0; | 60 cricket::AudioRenderer* renderer) = 0; |
60 // Enable/disable sending audio on the local audio track with |ssrc|. | 61 // Enable/disable sending audio on the local audio track with |ssrc|. |
61 // When |enable| is true |options| should be applied to the audio track. | 62 // When |enable| is true |options| should be applied to the audio track. |
62 virtual void SetAudioSend(uint32 ssrc, bool enable, | 63 virtual void SetAudioSend(uint32_t ssrc, |
| 64 bool enable, |
63 const cricket::AudioOptions& options, | 65 const cricket::AudioOptions& options, |
64 cricket::AudioRenderer* renderer) = 0; | 66 cricket::AudioRenderer* renderer) = 0; |
65 | 67 |
66 // Sets the audio playout volume of a remote audio track with |ssrc|. | 68 // Sets the audio playout volume of a remote audio track with |ssrc|. |
67 // |volume| is in the range of [0, 10]. | 69 // |volume| is in the range of [0, 10]. |
68 virtual void SetAudioPlayoutVolume(uint32 ssrc, double volume) = 0; | 70 virtual void SetAudioPlayoutVolume(uint32_t ssrc, double volume) = 0; |
69 | 71 |
70 protected: | 72 protected: |
71 virtual ~AudioProviderInterface() {} | 73 virtual ~AudioProviderInterface() {} |
72 }; | 74 }; |
73 | 75 |
74 // This interface is called by VideoTrackHandler classes in mediastreamhandler.h | 76 // This interface is called by VideoTrackHandler classes in mediastreamhandler.h |
75 // to change the settings of a video track connected to a certain | 77 // to change the settings of a video track connected to a certain |
76 // PeerConnection. | 78 // PeerConnection. |
77 class VideoProviderInterface { | 79 class VideoProviderInterface { |
78 public: | 80 public: |
79 virtual bool SetCaptureDevice(uint32 ssrc, | 81 virtual bool SetCaptureDevice(uint32_t ssrc, |
80 cricket::VideoCapturer* camera) = 0; | 82 cricket::VideoCapturer* camera) = 0; |
81 // Enable/disable the video playout of a remote video track with |ssrc|. | 83 // Enable/disable the video playout of a remote video track with |ssrc|. |
82 virtual void SetVideoPlayout(uint32 ssrc, bool enable, | 84 virtual void SetVideoPlayout(uint32_t ssrc, |
| 85 bool enable, |
83 cricket::VideoRenderer* renderer) = 0; | 86 cricket::VideoRenderer* renderer) = 0; |
84 // Enable sending video on the local video track with |ssrc|. | 87 // Enable sending video on the local video track with |ssrc|. |
85 virtual void SetVideoSend(uint32 ssrc, bool enable, | 88 virtual void SetVideoSend(uint32_t ssrc, |
| 89 bool enable, |
86 const cricket::VideoOptions* options) = 0; | 90 const cricket::VideoOptions* options) = 0; |
87 | 91 |
88 protected: | 92 protected: |
89 virtual ~VideoProviderInterface() {} | 93 virtual ~VideoProviderInterface() {} |
90 }; | 94 }; |
91 | 95 |
92 } // namespace webrtc | 96 } // namespace webrtc |
93 | 97 |
94 #endif // TALK_APP_WEBRTC_MEDIASTREAMPROVIDER_H_ | 98 #endif // TALK_APP_WEBRTC_MEDIASTREAMPROVIDER_H_ |
OLD | NEW |