OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 namespace cricket { | 26 namespace cricket { |
27 | 27 |
28 class VideoMediaChannel; | 28 class VideoMediaChannel; |
29 class WebRtcVideoDecoderFactory; | 29 class WebRtcVideoDecoderFactory; |
30 class WebRtcVideoEncoderFactory; | 30 class WebRtcVideoEncoderFactory; |
31 | 31 |
32 // Video engine implementation that does nothing and can be used in | 32 // Video engine implementation that does nothing and can be used in |
33 // CompositeMediaEngine. | 33 // CompositeMediaEngine. |
34 class NullWebRtcVideoEngine { | 34 class NullWebRtcVideoEngine { |
35 public: | 35 public: |
36 NullWebRtcVideoEngine() {} | 36 std::vector<VideoCodec> codecs() const { return std::vector<VideoCodec>(); } |
37 ~NullWebRtcVideoEngine() {} | |
38 | 37 |
39 void SetExternalDecoderFactory(WebRtcVideoDecoderFactory* decoder_factory) {} | 38 RtpCapabilities GetCapabilities() const { return RtpCapabilities(); } |
40 void SetExternalEncoderFactory(WebRtcVideoEncoderFactory* encoder_factory) {} | |
41 | |
42 void Init() {} | |
43 | |
44 const std::vector<VideoCodec>& codecs() { | |
45 return codecs_; | |
46 } | |
47 | |
48 RtpCapabilities GetCapabilities() { | |
49 RtpCapabilities capabilities; | |
50 return capabilities; | |
51 } | |
52 | 39 |
53 VideoMediaChannel* CreateChannel(webrtc::Call* call, | 40 VideoMediaChannel* CreateChannel(webrtc::Call* call, |
54 const MediaConfig& config, | 41 const MediaConfig& config, |
55 const VideoOptions& options) { | 42 const VideoOptions& options) { |
56 return nullptr; | 43 return nullptr; |
57 } | 44 } |
58 | |
59 private: | |
60 std::vector<VideoCodec> codecs_; | |
61 }; | 45 }; |
62 | 46 |
63 } // namespace cricket | 47 } // namespace cricket |
64 | 48 |
65 #endif // WEBRTC_MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_ | 49 #endif // WEBRTC_MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_ |
OLD | NEW |