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"
|
2016-03-20 09:38:40 -07:00
|
|
|
#include "webrtc/api/mediastreaminterface.h"
|
2013-07-10 00:45:36 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2016-03-08 01:27:48 +01:00
|
|
|
// VideoTrackSourceInterface makes sure the real VideoTrackSourceInterface
|
|
|
|
|
// implementation is
|
2013-07-10 00:45:36 +00:00
|
|
|
// destroyed on the signaling thread and marshals all method calls to the
|
|
|
|
|
// signaling thread.
|
2016-04-15 03:49:07 -07:00
|
|
|
BEGIN_PROXY_MAP(VideoTrackSource)
|
2016-04-07 07:45:54 -07:00
|
|
|
PROXY_CONSTMETHOD0(SourceState, state)
|
|
|
|
|
PROXY_CONSTMETHOD0(bool, remote)
|
|
|
|
|
PROXY_METHOD0(void, Stop)
|
|
|
|
|
PROXY_METHOD0(void, Restart)
|
|
|
|
|
PROXY_CONSTMETHOD0(bool, is_screencast)
|
|
|
|
|
PROXY_CONSTMETHOD0(rtc::Optional<bool>, needs_denoising)
|
|
|
|
|
PROXY_METHOD1(bool, GetStats, Stats*)
|
|
|
|
|
PROXY_WORKER_METHOD2(void,
|
|
|
|
|
AddOrUpdateSink,
|
|
|
|
|
rtc::VideoSinkInterface<cricket::VideoFrame>*,
|
|
|
|
|
const rtc::VideoSinkWants&)
|
|
|
|
|
PROXY_WORKER_METHOD1(void,
|
|
|
|
|
RemoveSink,
|
|
|
|
|
rtc::VideoSinkInterface<cricket::VideoFrame>*)
|
|
|
|
|
PROXY_METHOD1(void, RegisterObserver, ObserverInterface*)
|
|
|
|
|
PROXY_METHOD1(void, UnregisterObserver, ObserverInterface*)
|
2016-04-15 03:49:07 -07:00
|
|
|
END_PROXY()
|
2013-07-10 00:45:36 +00:00
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2016-02-10 10:53:12 +01:00
|
|
|
#endif // WEBRTC_API_VIDEOSOURCEPROXY_H_
|