2013-07-10 00:45:36 +00:00
|
|
|
/*
|
2016-02-10 07:54:43 -08:00
|
|
|
* Copyright 2012 The WebRTC project authors. All Rights Reserved.
|
2013-07-10 00:45:36 +00:00
|
|
|
*
|
2016-02-10 07:54:43 -08:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2013-07-10 00:45:36 +00:00
|
|
|
*/
|
|
|
|
|
|
2016-02-10 10:53:12 +01:00
|
|
|
#ifndef WEBRTC_API_VIDEOSOURCEPROXY_H_
|
|
|
|
|
#define WEBRTC_API_VIDEOSOURCEPROXY_H_
|
2013-07-10 00:45:36 +00:00
|
|
|
|
2016-02-10 10:53:12 +01:00
|
|
|
#include "webrtc/api/proxy.h"
|
|
|
|
|
#include "webrtc/api/videosourceinterface.h"
|
2013-07-10 00:45:36 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
// VideoSourceProxy makes sure the real VideoSourceInterface implementation is
|
|
|
|
|
// destroyed on the signaling thread and marshals all method calls to the
|
|
|
|
|
// signaling thread.
|
|
|
|
|
BEGIN_PROXY_MAP(VideoSource)
|
|
|
|
|
PROXY_CONSTMETHOD0(SourceState, state)
|
2015-12-15 04:27:11 -08:00
|
|
|
PROXY_CONSTMETHOD0(bool, remote)
|
2013-07-10 00:45:36 +00:00
|
|
|
PROXY_METHOD0(cricket::VideoCapturer*, GetVideoCapturer)
|
2015-02-17 13:53:56 +00:00
|
|
|
PROXY_METHOD0(void, Stop)
|
|
|
|
|
PROXY_METHOD0(void, Restart)
|
2016-03-03 01:51:52 -08:00
|
|
|
PROXY_METHOD2(void, AddOrUpdateSink,
|
|
|
|
|
rtc::VideoSinkInterface<cricket::VideoFrame>*,
|
|
|
|
|
const rtc::VideoSinkWants&)
|
2016-01-28 04:47:08 -08:00
|
|
|
PROXY_METHOD1(void, RemoveSink, rtc::VideoSinkInterface<cricket::VideoFrame>*)
|
2013-07-10 00:45:36 +00:00
|
|
|
PROXY_CONSTMETHOD0(const cricket::VideoOptions*, options)
|
|
|
|
|
PROXY_METHOD1(void, RegisterObserver, ObserverInterface*)
|
|
|
|
|
PROXY_METHOD1(void, UnregisterObserver, ObserverInterface*)
|
|
|
|
|
END_PROXY()
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2016-02-10 10:53:12 +01:00
|
|
|
#endif // WEBRTC_API_VIDEOSOURCEPROXY_H_
|